[2025-04-09 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:00:05 [end_date_ymd] => 2025-04-09 00:00:05 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:00:05' and `end` < '2025-04-09 00: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-09 00:00:18] Production.INFO: count ==401 [2025-04-09 00:00:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:00:05 - End Time 2025-04-09 00:00:05 [2025-04-09 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865724', 'tblTempUsageDetail_20' ) start [2025-04-09 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865724', 'tblTempUsageDetail_20' ) end [2025-04-09 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865724', 'tblTempVendorCDR_20' ) start [2025-04-09 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865724', 'tblTempVendorCDR_20' ) end [2025-04-09 00:00:18] Production.INFO: ProcessCDR(1,14865724,1,1,2) [2025-04-09 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865724', 'tblTempUsageDetail_20' ) start [2025-04-09 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865724', 'tblTempUsageDetail_20' ) end [2025-04-09 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:00:23] Production.INFO: ==3755== Releasing lock... [2025-04-09 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:00:23] Production.INFO: 33 MB #Memory Used# [2025-04-09 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:01:05 [end_date_ymd] => 2025-04-09 00:01:05 [RateCDR] => 1 ) [2025-04-09 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:01:05' and `end` < '2025-04-09 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:01:18] Production.INFO: count ==90 [2025-04-09 00:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:01:05 - End Time 2025-04-09 00:01:05 [2025-04-09 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865730', 'tblTempUsageDetail_20' ) start [2025-04-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865730', 'tblTempUsageDetail_20' ) end [2025-04-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865730', 'tblTempVendorCDR_20' ) start [2025-04-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865730', 'tblTempVendorCDR_20' ) end [2025-04-09 00:01:18] Production.INFO: ProcessCDR(1,14865730,1,1,2) [2025-04-09 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865730', 'tblTempUsageDetail_20' ) start [2025-04-09 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865730', 'tblTempUsageDetail_20' ) end [2025-04-09 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:01:23] Production.INFO: ==3845== Releasing lock... [2025-04-09 00:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:01:23] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:02:04 [end_date_ymd] => 2025-04-09 00:02:04 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:02:04' and `end` < '2025-04-09 00: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-09 00:02:17] Production.INFO: count ==89 [2025-04-09 00:02:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:02:04 - End Time 2025-04-09 00:02:04 [2025-04-09 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865735', 'tblTempUsageDetail_20' ) start [2025-04-09 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865735', 'tblTempUsageDetail_20' ) end [2025-04-09 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865735', 'tblTempVendorCDR_20' ) start [2025-04-09 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865735', 'tblTempVendorCDR_20' ) end [2025-04-09 00:02:17] Production.INFO: ProcessCDR(1,14865735,1,1,2) [2025-04-09 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865735', 'tblTempUsageDetail_20' ) start [2025-04-09 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865735', 'tblTempUsageDetail_20' ) end [2025-04-09 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:02:21] Production.INFO: ==3925== Releasing lock... [2025-04-09 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:03:05 [end_date_ymd] => 2025-04-09 00:03:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:03:05' and `end` < '2025-04-09 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-09 00:03:23] Production.INFO: count ==89 [2025-04-09 00:03:23] Production.ERROR: pbx CDR StartTime 2025-04-08 21:03:05 - End Time 2025-04-09 00:03:05 [2025-04-09 00:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865740', 'tblTempUsageDetail_20' ) start [2025-04-09 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865740', 'tblTempUsageDetail_20' ) end [2025-04-09 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865740', 'tblTempVendorCDR_20' ) start [2025-04-09 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865740', 'tblTempVendorCDR_20' ) end [2025-04-09 00:03:23] Production.INFO: ProcessCDR(1,14865740,1,1,2) [2025-04-09 00:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865740', 'tblTempUsageDetail_20' ) start [2025-04-09 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865740', 'tblTempUsageDetail_20' ) end [2025-04-09 00:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:03:28] Production.INFO: ==4010== Releasing lock... [2025-04-09 00:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:03:28] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:04:06 [end_date_ymd] => 2025-04-09 00:04:06 [RateCDR] => 1 ) [2025-04-09 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-08 21:04:06' and `end` < '2025-04-09 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-09 00:04:22] Production.INFO: count ==89 [2025-04-09 00:04:22] Production.ERROR: pbx CDR StartTime 2025-04-08 21:04:06 - End Time 2025-04-09 00:04:06 [2025-04-09 00:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865745', 'tblTempUsageDetail_20' ) start [2025-04-09 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865745', 'tblTempUsageDetail_20' ) end [2025-04-09 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865745', 'tblTempVendorCDR_20' ) start [2025-04-09 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865745', 'tblTempVendorCDR_20' ) end [2025-04-09 00:04:22] Production.INFO: ProcessCDR(1,14865745,1,1,2) [2025-04-09 00:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865745', 'tblTempUsageDetail_20' ) start [2025-04-09 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865745', 'tblTempUsageDetail_20' ) end [2025-04-09 00:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:04:26] Production.INFO: ==4097== Releasing lock... [2025-04-09 00:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:04:26] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:05:06 [end_date_ymd] => 2025-04-09 00:05:06 [RateCDR] => 1 ) [2025-04-09 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:05:06' and `end` < '2025-04-09 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:05:33] Production.INFO: count ==92 [2025-04-09 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-08 21:05:06 - End Time 2025-04-09 00:05:06 [2025-04-09 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865750', 'tblTempUsageDetail_20' ) start [2025-04-09 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865750', 'tblTempUsageDetail_20' ) end [2025-04-09 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865750', 'tblTempVendorCDR_20' ) start [2025-04-09 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865750', 'tblTempVendorCDR_20' ) end [2025-04-09 00:05:33] Production.INFO: ProcessCDR(1,14865750,1,1,2) [2025-04-09 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:05:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865750', 'tblTempUsageDetail_20' ) start [2025-04-09 00:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865750', 'tblTempUsageDetail_20' ) end [2025-04-09 00:05:38] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:05:38] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:05:38] Production.INFO: ==4219== Releasing lock... [2025-04-09 00:05:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:05:38] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:06:05 [end_date_ymd] => 2025-04-09 00:06:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:06:05' and `end` < '2025-04-09 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-09 00:06:27] Production.INFO: count ==92 [2025-04-09 00:06:27] Production.ERROR: pbx CDR StartTime 2025-04-08 21:06:05 - End Time 2025-04-09 00:06:05 [2025-04-09 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865755', 'tblTempUsageDetail_20' ) start [2025-04-09 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865755', 'tblTempUsageDetail_20' ) end [2025-04-09 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865755', 'tblTempVendorCDR_20' ) start [2025-04-09 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865755', 'tblTempVendorCDR_20' ) end [2025-04-09 00:06:27] Production.INFO: ProcessCDR(1,14865755,1,1,2) [2025-04-09 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865755', 'tblTempUsageDetail_20' ) start [2025-04-09 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865755', 'tblTempUsageDetail_20' ) end [2025-04-09 00:06:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:06:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:06:30] Production.INFO: ==4300== Releasing lock... [2025-04-09 00:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:06:30] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:07:06 [end_date_ymd] => 2025-04-09 00:07:06 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:07:06' and `end` < '2025-04-09 00: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-09 00:07:27] Production.INFO: count ==90 [2025-04-09 00:07:27] Production.ERROR: pbx CDR StartTime 2025-04-08 21:07:06 - End Time 2025-04-09 00:07:06 [2025-04-09 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865760', 'tblTempUsageDetail_20' ) start [2025-04-09 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865760', 'tblTempUsageDetail_20' ) end [2025-04-09 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865760', 'tblTempVendorCDR_20' ) start [2025-04-09 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865760', 'tblTempVendorCDR_20' ) end [2025-04-09 00:07:27] Production.INFO: ProcessCDR(1,14865760,1,1,2) [2025-04-09 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865760', 'tblTempUsageDetail_20' ) start [2025-04-09 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865760', 'tblTempUsageDetail_20' ) end [2025-04-09 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:07:30] Production.INFO: ==4385== Releasing lock... [2025-04-09 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:07:30] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:08:04 [end_date_ymd] => 2025-04-09 00:08:04 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:08:04' and `end` < '2025-04-09 00: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-09 00:08:28] Production.INFO: count ==87 [2025-04-09 00:08:28] Production.ERROR: pbx CDR StartTime 2025-04-08 21:08:04 - End Time 2025-04-09 00:08:04 [2025-04-09 00:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865765', 'tblTempUsageDetail_20' ) start [2025-04-09 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865765', 'tblTempUsageDetail_20' ) end [2025-04-09 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865765', 'tblTempVendorCDR_20' ) start [2025-04-09 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865765', 'tblTempVendorCDR_20' ) end [2025-04-09 00:08:28] Production.INFO: ProcessCDR(1,14865765,1,1,2) [2025-04-09 00:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865765', 'tblTempUsageDetail_20' ) start [2025-04-09 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865765', 'tblTempUsageDetail_20' ) end [2025-04-09 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:08:32] Production.INFO: ==4465== Releasing lock... [2025-04-09 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:08:32] Production.INFO: 29 MB #Memory Used# [2025-04-09 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:09:05 [end_date_ymd] => 2025-04-09 00:09:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:09:05' and `end` < '2025-04-09 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-09 00:09:18] Production.INFO: count ==85 [2025-04-09 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:09:05 - End Time 2025-04-09 00:09:05 [2025-04-09 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865770', 'tblTempUsageDetail_20' ) start [2025-04-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865770', 'tblTempUsageDetail_20' ) end [2025-04-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865770', 'tblTempVendorCDR_20' ) start [2025-04-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865770', 'tblTempVendorCDR_20' ) end [2025-04-09 00:09:18] Production.INFO: ProcessCDR(1,14865770,1,1,2) [2025-04-09 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865770', 'tblTempUsageDetail_20' ) start [2025-04-09 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865770', 'tblTempUsageDetail_20' ) end [2025-04-09 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:09:21] Production.INFO: ==4535== Releasing lock... [2025-04-09 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:10:07 [end_date_ymd] => 2025-04-09 00:10:07 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:10:07' and `end` < '2025-04-09 00: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-09 00:10:20] Production.INFO: count ==85 [2025-04-09 00:10:20] Production.ERROR: pbx CDR StartTime 2025-04-08 21:10:07 - End Time 2025-04-09 00:10:07 [2025-04-09 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865776', 'tblTempUsageDetail_20' ) start [2025-04-09 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865776', 'tblTempUsageDetail_20' ) end [2025-04-09 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865776', 'tblTempVendorCDR_20' ) start [2025-04-09 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865776', 'tblTempVendorCDR_20' ) end [2025-04-09 00:10:20] Production.INFO: ProcessCDR(1,14865776,1,1,2) [2025-04-09 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865776', 'tblTempUsageDetail_20' ) start [2025-04-09 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865776', 'tblTempUsageDetail_20' ) end [2025-04-09 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:10:23] Production.INFO: ==4617== Releasing lock... [2025-04-09 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:11:05 [end_date_ymd] => 2025-04-09 00:11:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:11:05' and `end` < '2025-04-09 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-09 00:11:18] Production.INFO: count ==85 [2025-04-09 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:11:05 - End Time 2025-04-09 00:11:05 [2025-04-09 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865781', 'tblTempUsageDetail_20' ) start [2025-04-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865781', 'tblTempUsageDetail_20' ) end [2025-04-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865781', 'tblTempVendorCDR_20' ) start [2025-04-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865781', 'tblTempVendorCDR_20' ) end [2025-04-09 00:11:18] Production.INFO: ProcessCDR(1,14865781,1,1,2) [2025-04-09 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865781', 'tblTempUsageDetail_20' ) start [2025-04-09 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865781', 'tblTempUsageDetail_20' ) end [2025-04-09 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:11:22] Production.INFO: ==4692== Releasing lock... [2025-04-09 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:12:06 [end_date_ymd] => 2025-04-09 00:12:06 [RateCDR] => 1 ) [2025-04-09 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:12:06' and `end` < '2025-04-09 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:12:18] Production.INFO: count ==85 [2025-04-09 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:12:06 - End Time 2025-04-09 00:12:06 [2025-04-09 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865786', 'tblTempUsageDetail_20' ) start [2025-04-09 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865786', 'tblTempUsageDetail_20' ) end [2025-04-09 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865786', 'tblTempVendorCDR_20' ) start [2025-04-09 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865786', 'tblTempVendorCDR_20' ) end [2025-04-09 00:12:19] Production.INFO: ProcessCDR(1,14865786,1,1,2) [2025-04-09 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865786', 'tblTempUsageDetail_20' ) start [2025-04-09 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865786', 'tblTempUsageDetail_20' ) end [2025-04-09 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:12:22] Production.INFO: ==4766== Releasing lock... [2025-04-09 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:13:05 [end_date_ymd] => 2025-04-09 00:13:05 [RateCDR] => 1 ) [2025-04-09 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:13:05' and `end` < '2025-04-09 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:13:17] Production.INFO: count ==85 [2025-04-09 00:13:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:13:05 - End Time 2025-04-09 00:13:05 [2025-04-09 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865791', 'tblTempUsageDetail_20' ) start [2025-04-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865791', 'tblTempUsageDetail_20' ) end [2025-04-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865791', 'tblTempVendorCDR_20' ) start [2025-04-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865791', 'tblTempVendorCDR_20' ) end [2025-04-09 00:13:17] Production.INFO: ProcessCDR(1,14865791,1,1,2) [2025-04-09 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865791', 'tblTempUsageDetail_20' ) start [2025-04-09 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865791', 'tblTempUsageDetail_20' ) end [2025-04-09 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:13:21] Production.INFO: ==4844== Releasing lock... [2025-04-09 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:14:06 [end_date_ymd] => 2025-04-09 00:14:06 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:14:06' and `end` < '2025-04-09 00: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-09 00:14:19] Production.INFO: count ==85 [2025-04-09 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:14:06 - End Time 2025-04-09 00:14:06 [2025-04-09 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865796', 'tblTempUsageDetail_20' ) start [2025-04-09 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865796', 'tblTempUsageDetail_20' ) end [2025-04-09 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865796', 'tblTempVendorCDR_20' ) start [2025-04-09 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865796', 'tblTempVendorCDR_20' ) end [2025-04-09 00:14:19] Production.INFO: ProcessCDR(1,14865796,1,1,2) [2025-04-09 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865796', 'tblTempUsageDetail_20' ) start [2025-04-09 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865796', 'tblTempUsageDetail_20' ) end [2025-04-09 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:14:22] Production.INFO: ==4925== Releasing lock... [2025-04-09 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:15:04 [end_date_ymd] => 2025-04-09 00:15:04 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:15:04' and `end` < '2025-04-09 00: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-09 00:15:17] Production.INFO: count ==85 [2025-04-09 00:15:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:15:04 - End Time 2025-04-09 00:15:04 [2025-04-09 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865801', 'tblTempUsageDetail_20' ) start [2025-04-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865801', 'tblTempUsageDetail_20' ) end [2025-04-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865801', 'tblTempVendorCDR_20' ) start [2025-04-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865801', 'tblTempVendorCDR_20' ) end [2025-04-09 00:15:17] Production.INFO: ProcessCDR(1,14865801,1,1,2) [2025-04-09 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865801', 'tblTempUsageDetail_20' ) start [2025-04-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865801', 'tblTempUsageDetail_20' ) end [2025-04-09 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:15:21] Production.INFO: ==4996== Releasing lock... [2025-04-09 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:16:06 [end_date_ymd] => 2025-04-09 00:16:06 [RateCDR] => 1 ) [2025-04-09 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:16:06' and `end` < '2025-04-09 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:16:18] Production.INFO: count ==79 [2025-04-09 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:16:06 - End Time 2025-04-09 00:16:06 [2025-04-09 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865806', 'tblTempUsageDetail_20' ) start [2025-04-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865806', 'tblTempUsageDetail_20' ) end [2025-04-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865806', 'tblTempVendorCDR_20' ) start [2025-04-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865806', 'tblTempVendorCDR_20' ) end [2025-04-09 00:16:18] Production.INFO: ProcessCDR(1,14865806,1,1,2) [2025-04-09 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865806', 'tblTempUsageDetail_20' ) start [2025-04-09 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865806', 'tblTempUsageDetail_20' ) end [2025-04-09 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:16:22] Production.INFO: ==5070== Releasing lock... [2025-04-09 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:17:05 [end_date_ymd] => 2025-04-09 00:17:05 [RateCDR] => 1 ) [2025-04-09 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:17:05' and `end` < '2025-04-09 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:17:18] Production.INFO: count ==81 [2025-04-09 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:17:05 - End Time 2025-04-09 00:17:05 [2025-04-09 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865811', 'tblTempUsageDetail_20' ) start [2025-04-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865811', 'tblTempUsageDetail_20' ) end [2025-04-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865811', 'tblTempVendorCDR_20' ) start [2025-04-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865811', 'tblTempVendorCDR_20' ) end [2025-04-09 00:17:18] Production.INFO: ProcessCDR(1,14865811,1,1,2) [2025-04-09 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865811', 'tblTempUsageDetail_20' ) start [2025-04-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865811', 'tblTempUsageDetail_20' ) end [2025-04-09 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:17:21] Production.INFO: ==5146== Releasing lock... [2025-04-09 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:18:05 [end_date_ymd] => 2025-04-09 00:18:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:18:05' and `end` < '2025-04-09 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-09 00:18:18] Production.INFO: count ==78 [2025-04-09 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:18:05 - End Time 2025-04-09 00:18:05 [2025-04-09 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865816', 'tblTempUsageDetail_20' ) start [2025-04-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865816', 'tblTempUsageDetail_20' ) end [2025-04-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865816', 'tblTempVendorCDR_20' ) start [2025-04-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865816', 'tblTempVendorCDR_20' ) end [2025-04-09 00:18:18] Production.INFO: ProcessCDR(1,14865816,1,1,2) [2025-04-09 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865816', 'tblTempUsageDetail_20' ) start [2025-04-09 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865816', 'tblTempUsageDetail_20' ) end [2025-04-09 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:18:21] Production.INFO: ==5220== Releasing lock... [2025-04-09 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:19:05 [end_date_ymd] => 2025-04-09 00:19:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:19:05' and `end` < '2025-04-09 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-09 00:19:17] Production.INFO: count ==78 [2025-04-09 00:19:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:19:05 - End Time 2025-04-09 00:19:05 [2025-04-09 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865821', 'tblTempUsageDetail_20' ) start [2025-04-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865821', 'tblTempUsageDetail_20' ) end [2025-04-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865821', 'tblTempVendorCDR_20' ) start [2025-04-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865821', 'tblTempVendorCDR_20' ) end [2025-04-09 00:19:17] Production.INFO: ProcessCDR(1,14865821,1,1,2) [2025-04-09 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865821', 'tblTempUsageDetail_20' ) start [2025-04-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865821', 'tblTempUsageDetail_20' ) end [2025-04-09 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:19:21] Production.INFO: ==5293== Releasing lock... [2025-04-09 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:20:06 [end_date_ymd] => 2025-04-09 00:20:06 [RateCDR] => 1 ) [2025-04-09 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:20:06' and `end` < '2025-04-09 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:20:19] Production.INFO: count ==86 [2025-04-09 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:20:06 - End Time 2025-04-09 00:20:06 [2025-04-09 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865827', 'tblTempUsageDetail_20' ) start [2025-04-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865827', 'tblTempUsageDetail_20' ) end [2025-04-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865827', 'tblTempVendorCDR_20' ) start [2025-04-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865827', 'tblTempVendorCDR_20' ) end [2025-04-09 00:20:19] Production.INFO: ProcessCDR(1,14865827,1,1,2) [2025-04-09 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865827', 'tblTempUsageDetail_20' ) start [2025-04-09 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865827', 'tblTempUsageDetail_20' ) end [2025-04-09 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:20:23] Production.INFO: ==5405== Releasing lock... [2025-04-09 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:21:04 [end_date_ymd] => 2025-04-09 00:21:04 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:21:04' and `end` < '2025-04-09 00: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-09 00:21:17] Production.INFO: count ==85 [2025-04-09 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:21:04 - End Time 2025-04-09 00:21:04 [2025-04-09 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865832', 'tblTempUsageDetail_20' ) start [2025-04-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865832', 'tblTempUsageDetail_20' ) end [2025-04-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865832', 'tblTempVendorCDR_20' ) start [2025-04-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865832', 'tblTempVendorCDR_20' ) end [2025-04-09 00:21:17] Production.INFO: ProcessCDR(1,14865832,1,1,2) [2025-04-09 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865832', 'tblTempUsageDetail_20' ) start [2025-04-09 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865832', 'tblTempUsageDetail_20' ) end [2025-04-09 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:21:21] Production.INFO: ==5479== Releasing lock... [2025-04-09 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:22:05 [end_date_ymd] => 2025-04-09 00:22:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:22:05' and `end` < '2025-04-09 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-09 00:22:18] Production.INFO: count ==85 [2025-04-09 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:22:05 - End Time 2025-04-09 00:22:05 [2025-04-09 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865837', 'tblTempUsageDetail_20' ) start [2025-04-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865837', 'tblTempUsageDetail_20' ) end [2025-04-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865837', 'tblTempVendorCDR_20' ) start [2025-04-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865837', 'tblTempVendorCDR_20' ) end [2025-04-09 00:22:18] Production.INFO: ProcessCDR(1,14865837,1,1,2) [2025-04-09 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865837', 'tblTempUsageDetail_20' ) start [2025-04-09 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865837', 'tblTempUsageDetail_20' ) end [2025-04-09 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:22:22] Production.INFO: ==5553== Releasing lock... [2025-04-09 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:23:05 [end_date_ymd] => 2025-04-09 00:23:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:23:05' and `end` < '2025-04-09 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-09 00:23:17] Production.INFO: count ==84 [2025-04-09 00:23:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:23:05 - End Time 2025-04-09 00:23:05 [2025-04-09 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865842', 'tblTempUsageDetail_20' ) start [2025-04-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865842', 'tblTempUsageDetail_20' ) end [2025-04-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865842', 'tblTempVendorCDR_20' ) start [2025-04-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865842', 'tblTempVendorCDR_20' ) end [2025-04-09 00:23:17] Production.INFO: ProcessCDR(1,14865842,1,1,2) [2025-04-09 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865842', 'tblTempUsageDetail_20' ) start [2025-04-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865842', 'tblTempUsageDetail_20' ) end [2025-04-09 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:23:21] Production.INFO: ==5625== Releasing lock... [2025-04-09 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:24:05 [end_date_ymd] => 2025-04-09 00:24:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:24:05' and `end` < '2025-04-09 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-09 00:24:18] Production.INFO: count ==84 [2025-04-09 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:24:05 - End Time 2025-04-09 00:24:05 [2025-04-09 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865847', 'tblTempUsageDetail_20' ) start [2025-04-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865847', 'tblTempUsageDetail_20' ) end [2025-04-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865847', 'tblTempVendorCDR_20' ) start [2025-04-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865847', 'tblTempVendorCDR_20' ) end [2025-04-09 00:24:18] Production.INFO: ProcessCDR(1,14865847,1,1,2) [2025-04-09 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865847', 'tblTempUsageDetail_20' ) start [2025-04-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865847', 'tblTempUsageDetail_20' ) end [2025-04-09 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:24:21] Production.INFO: ==5701== Releasing lock... [2025-04-09 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:25:06 [end_date_ymd] => 2025-04-09 00:25:06 [RateCDR] => 1 ) [2025-04-09 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-08 21:25:06' and `end` < '2025-04-09 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-09 00:25:18] Production.INFO: count ==83 [2025-04-09 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:25:06 - End Time 2025-04-09 00:25:06 [2025-04-09 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865852', 'tblTempUsageDetail_20' ) start [2025-04-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865852', 'tblTempUsageDetail_20' ) end [2025-04-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865852', 'tblTempVendorCDR_20' ) start [2025-04-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865852', 'tblTempVendorCDR_20' ) end [2025-04-09 00:25:18] Production.INFO: ProcessCDR(1,14865852,1,1,2) [2025-04-09 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865852', 'tblTempUsageDetail_20' ) start [2025-04-09 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865852', 'tblTempUsageDetail_20' ) end [2025-04-09 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:25:22] Production.INFO: ==5772== Releasing lock... [2025-04-09 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:26:05 [end_date_ymd] => 2025-04-09 00:26:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:26:05' and `end` < '2025-04-09 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-09 00:26:17] Production.INFO: count ==83 [2025-04-09 00:26:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:26:05 - End Time 2025-04-09 00:26:05 [2025-04-09 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865857', 'tblTempUsageDetail_20' ) start [2025-04-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865857', 'tblTempUsageDetail_20' ) end [2025-04-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865857', 'tblTempVendorCDR_20' ) start [2025-04-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865857', 'tblTempVendorCDR_20' ) end [2025-04-09 00:26:17] Production.INFO: ProcessCDR(1,14865857,1,1,2) [2025-04-09 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865857', 'tblTempUsageDetail_20' ) start [2025-04-09 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865857', 'tblTempUsageDetail_20' ) end [2025-04-09 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:26:21] Production.INFO: ==5843== Releasing lock... [2025-04-09 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:27:05 [end_date_ymd] => 2025-04-09 00:27:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:27:05' and `end` < '2025-04-09 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-09 00:27:18] Production.INFO: count ==82 [2025-04-09 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:27:05 - End Time 2025-04-09 00:27:05 [2025-04-09 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865862', 'tblTempUsageDetail_20' ) start [2025-04-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865862', 'tblTempUsageDetail_20' ) end [2025-04-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865862', 'tblTempVendorCDR_20' ) start [2025-04-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865862', 'tblTempVendorCDR_20' ) end [2025-04-09 00:27:18] Production.INFO: ProcessCDR(1,14865862,1,1,2) [2025-04-09 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865862', 'tblTempUsageDetail_20' ) start [2025-04-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865862', 'tblTempUsageDetail_20' ) end [2025-04-09 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:27:21] Production.INFO: ==5916== Releasing lock... [2025-04-09 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:28:05 [end_date_ymd] => 2025-04-09 00:28:05 [RateCDR] => 1 ) [2025-04-09 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:28:05' and `end` < '2025-04-09 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:28:18] Production.INFO: count ==82 [2025-04-09 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:28:05 - End Time 2025-04-09 00:28:05 [2025-04-09 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865867', 'tblTempUsageDetail_20' ) start [2025-04-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865867', 'tblTempUsageDetail_20' ) end [2025-04-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865867', 'tblTempVendorCDR_20' ) start [2025-04-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865867', 'tblTempVendorCDR_20' ) end [2025-04-09 00:28:18] Production.INFO: ProcessCDR(1,14865867,1,1,2) [2025-04-09 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865867', 'tblTempUsageDetail_20' ) start [2025-04-09 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865867', 'tblTempUsageDetail_20' ) end [2025-04-09 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:28:21] Production.INFO: ==5985== Releasing lock... [2025-04-09 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:29:06 [end_date_ymd] => 2025-04-09 00:29:06 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:29:06' and `end` < '2025-04-09 00: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-09 00:29:19] Production.INFO: count ==82 [2025-04-09 00:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:29:06 - End Time 2025-04-09 00:29:06 [2025-04-09 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865872', 'tblTempUsageDetail_20' ) start [2025-04-09 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865872', 'tblTempUsageDetail_20' ) end [2025-04-09 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865872', 'tblTempVendorCDR_20' ) start [2025-04-09 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865872', 'tblTempVendorCDR_20' ) end [2025-04-09 00:29:19] Production.INFO: ProcessCDR(1,14865872,1,1,2) [2025-04-09 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865872', 'tblTempUsageDetail_20' ) start [2025-04-09 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865872', 'tblTempUsageDetail_20' ) end [2025-04-09 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:29:22] Production.INFO: ==6062== Releasing lock... [2025-04-09 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:30:06 [end_date_ymd] => 2025-04-09 00:30:06 [RateCDR] => 1 ) [2025-04-09 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-08 21:30:06' and `end` < '2025-04-09 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-09 00:30:18] Production.INFO: count ==78 [2025-04-09 00:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:30:06 - End Time 2025-04-09 00:30:06 [2025-04-09 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865877', 'tblTempUsageDetail_20' ) start [2025-04-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865877', 'tblTempUsageDetail_20' ) end [2025-04-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865877', 'tblTempVendorCDR_20' ) start [2025-04-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865877', 'tblTempVendorCDR_20' ) end [2025-04-09 00:30:18] Production.INFO: ProcessCDR(1,14865877,1,1,2) [2025-04-09 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865877', 'tblTempUsageDetail_20' ) start [2025-04-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865877', 'tblTempUsageDetail_20' ) end [2025-04-09 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:30:22] Production.INFO: ==6137== Releasing lock... [2025-04-09 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:31:05 [end_date_ymd] => 2025-04-09 00:31:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:31:05' and `end` < '2025-04-09 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-09 00:31:18] Production.INFO: count ==77 [2025-04-09 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:31:05 - End Time 2025-04-09 00:31:05 [2025-04-09 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865883', 'tblTempUsageDetail_20' ) start [2025-04-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865883', 'tblTempUsageDetail_20' ) end [2025-04-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865883', 'tblTempVendorCDR_20' ) start [2025-04-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865883', 'tblTempVendorCDR_20' ) end [2025-04-09 00:31:18] Production.INFO: ProcessCDR(1,14865883,1,1,2) [2025-04-09 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865883', 'tblTempUsageDetail_20' ) start [2025-04-09 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865883', 'tblTempUsageDetail_20' ) end [2025-04-09 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:31:21] Production.INFO: ==6214== Releasing lock... [2025-04-09 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:32:05 [end_date_ymd] => 2025-04-09 00:32:05 [RateCDR] => 1 ) [2025-04-09 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:32:05' and `end` < '2025-04-09 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:32:18] Production.INFO: count ==77 [2025-04-09 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:32:05 - End Time 2025-04-09 00:32:05 [2025-04-09 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865888', 'tblTempUsageDetail_20' ) start [2025-04-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865888', 'tblTempUsageDetail_20' ) end [2025-04-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865888', 'tblTempVendorCDR_20' ) start [2025-04-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865888', 'tblTempVendorCDR_20' ) end [2025-04-09 00:32:18] Production.INFO: ProcessCDR(1,14865888,1,1,2) [2025-04-09 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865888', 'tblTempUsageDetail_20' ) start [2025-04-09 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865888', 'tblTempUsageDetail_20' ) end [2025-04-09 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:32:21] Production.INFO: ==6290== Releasing lock... [2025-04-09 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:33:05 [end_date_ymd] => 2025-04-09 00:33:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:33:05' and `end` < '2025-04-09 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-09 00:33:18] Production.INFO: count ==77 [2025-04-09 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:33:05 - End Time 2025-04-09 00:33:05 [2025-04-09 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865890', 'tblTempUsageDetail_20' ) start [2025-04-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865890', 'tblTempUsageDetail_20' ) end [2025-04-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865890', 'tblTempVendorCDR_20' ) start [2025-04-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865890', 'tblTempVendorCDR_20' ) end [2025-04-09 00:33:18] Production.INFO: ProcessCDR(1,14865890,1,1,2) [2025-04-09 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865890', 'tblTempUsageDetail_20' ) start [2025-04-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865890', 'tblTempUsageDetail_20' ) end [2025-04-09 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:33:21] Production.INFO: ==6362== Releasing lock... [2025-04-09 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:34:05 [end_date_ymd] => 2025-04-09 00:34:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:34:05' and `end` < '2025-04-09 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-09 00:34:18] Production.INFO: count ==77 [2025-04-09 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:34:05 - End Time 2025-04-09 00:34:05 [2025-04-09 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865898', 'tblTempUsageDetail_20' ) start [2025-04-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865898', 'tblTempUsageDetail_20' ) end [2025-04-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865898', 'tblTempVendorCDR_20' ) start [2025-04-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865898', 'tblTempVendorCDR_20' ) end [2025-04-09 00:34:18] Production.INFO: ProcessCDR(1,14865898,1,1,2) [2025-04-09 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865898', 'tblTempUsageDetail_20' ) start [2025-04-09 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865898', 'tblTempUsageDetail_20' ) end [2025-04-09 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:34:21] Production.INFO: ==6438== Releasing lock... [2025-04-09 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:35:05 [end_date_ymd] => 2025-04-09 00:35:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:35:05' and `end` < '2025-04-09 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-09 00:35:18] Production.INFO: count ==76 [2025-04-09 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:35:05 - End Time 2025-04-09 00:35:05 [2025-04-09 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865903', 'tblTempUsageDetail_20' ) start [2025-04-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865903', 'tblTempUsageDetail_20' ) end [2025-04-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865903', 'tblTempVendorCDR_20' ) start [2025-04-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865903', 'tblTempVendorCDR_20' ) end [2025-04-09 00:35:18] Production.INFO: ProcessCDR(1,14865903,1,1,2) [2025-04-09 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865903', 'tblTempUsageDetail_20' ) start [2025-04-09 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865903', 'tblTempUsageDetail_20' ) end [2025-04-09 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:35:21] Production.INFO: ==6510== Releasing lock... [2025-04-09 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:36:05 [end_date_ymd] => 2025-04-09 00:36:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:36:05' and `end` < '2025-04-09 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-09 00:36:17] Production.INFO: count ==76 [2025-04-09 00:36:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:36:05 - End Time 2025-04-09 00:36:05 [2025-04-09 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865908', 'tblTempUsageDetail_20' ) start [2025-04-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865908', 'tblTempUsageDetail_20' ) end [2025-04-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865908', 'tblTempVendorCDR_20' ) start [2025-04-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865908', 'tblTempVendorCDR_20' ) end [2025-04-09 00:36:17] Production.INFO: ProcessCDR(1,14865908,1,1,2) [2025-04-09 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865908', 'tblTempUsageDetail_20' ) start [2025-04-09 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865908', 'tblTempUsageDetail_20' ) end [2025-04-09 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:36:21] Production.INFO: ==6622== Releasing lock... [2025-04-09 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:37:05 [end_date_ymd] => 2025-04-09 00:37:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:37:05' and `end` < '2025-04-09 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-09 00:37:18] Production.INFO: count ==82 [2025-04-09 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:37:05 - End Time 2025-04-09 00:37:05 [2025-04-09 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865913', 'tblTempUsageDetail_20' ) start [2025-04-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865913', 'tblTempUsageDetail_20' ) end [2025-04-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865913', 'tblTempVendorCDR_20' ) start [2025-04-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865913', 'tblTempVendorCDR_20' ) end [2025-04-09 00:37:18] Production.INFO: ProcessCDR(1,14865913,1,1,2) [2025-04-09 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865913', 'tblTempUsageDetail_20' ) start [2025-04-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865913', 'tblTempUsageDetail_20' ) end [2025-04-09 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:37:21] Production.INFO: ==6695== Releasing lock... [2025-04-09 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:38:06 [end_date_ymd] => 2025-04-09 00:38:06 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:38:06' and `end` < '2025-04-09 00: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-09 00:38:19] Production.INFO: count ==81 [2025-04-09 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:38:06 - End Time 2025-04-09 00:38:06 [2025-04-09 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865918', 'tblTempUsageDetail_20' ) start [2025-04-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865918', 'tblTempUsageDetail_20' ) end [2025-04-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865918', 'tblTempVendorCDR_20' ) start [2025-04-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865918', 'tblTempVendorCDR_20' ) end [2025-04-09 00:38:19] Production.INFO: ProcessCDR(1,14865918,1,1,2) [2025-04-09 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865918', 'tblTempUsageDetail_20' ) start [2025-04-09 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865918', 'tblTempUsageDetail_20' ) end [2025-04-09 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:38:22] Production.INFO: ==6770== Releasing lock... [2025-04-09 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:39:05 [end_date_ymd] => 2025-04-09 00:39:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:39:05' and `end` < '2025-04-09 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-09 00:39:18] Production.INFO: count ==81 [2025-04-09 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:39:05 - End Time 2025-04-09 00:39:05 [2025-04-09 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865923', 'tblTempUsageDetail_20' ) start [2025-04-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865923', 'tblTempUsageDetail_20' ) end [2025-04-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865923', 'tblTempVendorCDR_20' ) start [2025-04-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865923', 'tblTempVendorCDR_20' ) end [2025-04-09 00:39:18] Production.INFO: ProcessCDR(1,14865923,1,1,2) [2025-04-09 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865923', 'tblTempUsageDetail_20' ) start [2025-04-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865923', 'tblTempUsageDetail_20' ) end [2025-04-09 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:39:21] Production.INFO: ==6841== Releasing lock... [2025-04-09 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:40:06 [end_date_ymd] => 2025-04-09 00:40:06 [RateCDR] => 1 ) [2025-04-09 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-08 21:40:06' and `end` < '2025-04-09 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-09 00:40:19] Production.INFO: count ==81 [2025-04-09 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:40:06 - End Time 2025-04-09 00:40:06 [2025-04-09 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865928', 'tblTempUsageDetail_20' ) start [2025-04-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865928', 'tblTempUsageDetail_20' ) end [2025-04-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865928', 'tblTempVendorCDR_20' ) start [2025-04-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865928', 'tblTempVendorCDR_20' ) end [2025-04-09 00:40:19] Production.INFO: ProcessCDR(1,14865928,1,1,2) [2025-04-09 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865928', 'tblTempUsageDetail_20' ) start [2025-04-09 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865928', 'tblTempUsageDetail_20' ) end [2025-04-09 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:40:23] Production.INFO: ==6917== Releasing lock... [2025-04-09 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:41:05 [end_date_ymd] => 2025-04-09 00:41:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:41:05' and `end` < '2025-04-09 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-09 00:41:18] Production.INFO: count ==79 [2025-04-09 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:41:05 - End Time 2025-04-09 00:41:05 [2025-04-09 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865934', 'tblTempUsageDetail_20' ) start [2025-04-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865934', 'tblTempUsageDetail_20' ) end [2025-04-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865934', 'tblTempVendorCDR_20' ) start [2025-04-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865934', 'tblTempVendorCDR_20' ) end [2025-04-09 00:41:18] Production.INFO: ProcessCDR(1,14865934,1,1,2) [2025-04-09 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865934', 'tblTempUsageDetail_20' ) start [2025-04-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865934', 'tblTempUsageDetail_20' ) end [2025-04-09 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:41:21] Production.INFO: ==6991== Releasing lock... [2025-04-09 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:42:05 [end_date_ymd] => 2025-04-09 00:42:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:42:05' and `end` < '2025-04-09 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-09 00:42:18] Production.INFO: count ==78 [2025-04-09 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:42:05 - End Time 2025-04-09 00:42:05 [2025-04-09 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865939', 'tblTempUsageDetail_20' ) start [2025-04-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865939', 'tblTempUsageDetail_20' ) end [2025-04-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865939', 'tblTempVendorCDR_20' ) start [2025-04-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865939', 'tblTempVendorCDR_20' ) end [2025-04-09 00:42:18] Production.INFO: ProcessCDR(1,14865939,1,1,2) [2025-04-09 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865939', 'tblTempUsageDetail_20' ) start [2025-04-09 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865939', 'tblTempUsageDetail_20' ) end [2025-04-09 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:42:22] Production.INFO: ==7061== Releasing lock... [2025-04-09 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:43:05 [end_date_ymd] => 2025-04-09 00:43:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:43:05' and `end` < '2025-04-09 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-09 00:43:17] Production.INFO: count ==77 [2025-04-09 00:43:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:43:05 - End Time 2025-04-09 00:43:05 [2025-04-09 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865944', 'tblTempUsageDetail_20' ) start [2025-04-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865944', 'tblTempUsageDetail_20' ) end [2025-04-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865944', 'tblTempVendorCDR_20' ) start [2025-04-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865944', 'tblTempVendorCDR_20' ) end [2025-04-09 00:43:17] Production.INFO: ProcessCDR(1,14865944,1,1,2) [2025-04-09 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865944', 'tblTempUsageDetail_20' ) start [2025-04-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865944', 'tblTempUsageDetail_20' ) end [2025-04-09 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:43:21] Production.INFO: ==7137== Releasing lock... [2025-04-09 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:44:05 [end_date_ymd] => 2025-04-09 00:44:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:44:05' and `end` < '2025-04-09 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-09 00:44:18] Production.INFO: count ==77 [2025-04-09 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:44:05 - End Time 2025-04-09 00:44:05 [2025-04-09 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865949', 'tblTempUsageDetail_20' ) start [2025-04-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865949', 'tblTempUsageDetail_20' ) end [2025-04-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865949', 'tblTempVendorCDR_20' ) start [2025-04-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865949', 'tblTempVendorCDR_20' ) end [2025-04-09 00:44:18] Production.INFO: ProcessCDR(1,14865949,1,1,2) [2025-04-09 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865949', 'tblTempUsageDetail_20' ) start [2025-04-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865949', 'tblTempUsageDetail_20' ) end [2025-04-09 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:44:22] Production.INFO: ==7214== Releasing lock... [2025-04-09 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:45:05 [end_date_ymd] => 2025-04-09 00:45:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:45:05' and `end` < '2025-04-09 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-09 00:45:17] Production.INFO: count ==77 [2025-04-09 00:45:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:45:05 - End Time 2025-04-09 00:45:05 [2025-04-09 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865954', 'tblTempUsageDetail_20' ) start [2025-04-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865954', 'tblTempUsageDetail_20' ) end [2025-04-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865954', 'tblTempVendorCDR_20' ) start [2025-04-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865954', 'tblTempVendorCDR_20' ) end [2025-04-09 00:45:17] Production.INFO: ProcessCDR(1,14865954,1,1,2) [2025-04-09 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865954', 'tblTempUsageDetail_20' ) start [2025-04-09 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865954', 'tblTempUsageDetail_20' ) end [2025-04-09 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:45:21] Production.INFO: ==7285== Releasing lock... [2025-04-09 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:46:05 [end_date_ymd] => 2025-04-09 00:46:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:46:05' and `end` < '2025-04-09 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-09 00:46:18] Production.INFO: count ==76 [2025-04-09 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:46:05 - End Time 2025-04-09 00:46:05 [2025-04-09 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865959', 'tblTempUsageDetail_20' ) start [2025-04-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865959', 'tblTempUsageDetail_20' ) end [2025-04-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865959', 'tblTempVendorCDR_20' ) start [2025-04-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865959', 'tblTempVendorCDR_20' ) end [2025-04-09 00:46:18] Production.INFO: ProcessCDR(1,14865959,1,1,2) [2025-04-09 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865959', 'tblTempUsageDetail_20' ) start [2025-04-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865959', 'tblTempUsageDetail_20' ) end [2025-04-09 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:46:21] Production.INFO: ==7365== Releasing lock... [2025-04-09 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:47:05 [end_date_ymd] => 2025-04-09 00:47:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:47:05' and `end` < '2025-04-09 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-09 00:47:17] Production.INFO: count ==76 [2025-04-09 00:47:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:47:05 - End Time 2025-04-09 00:47:05 [2025-04-09 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865964', 'tblTempUsageDetail_20' ) start [2025-04-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865964', 'tblTempUsageDetail_20' ) end [2025-04-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865964', 'tblTempVendorCDR_20' ) start [2025-04-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865964', 'tblTempVendorCDR_20' ) end [2025-04-09 00:47:17] Production.INFO: ProcessCDR(1,14865964,1,1,2) [2025-04-09 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865964', 'tblTempUsageDetail_20' ) start [2025-04-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865964', 'tblTempUsageDetail_20' ) end [2025-04-09 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:47:21] Production.INFO: ==7436== Releasing lock... [2025-04-09 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:48:05 [end_date_ymd] => 2025-04-09 00:48:05 [RateCDR] => 1 ) [2025-04-09 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:48:05' and `end` < '2025-04-09 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:48:18] Production.INFO: count ==76 [2025-04-09 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:48:05 - End Time 2025-04-09 00:48:05 [2025-04-09 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865969', 'tblTempUsageDetail_20' ) start [2025-04-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865969', 'tblTempUsageDetail_20' ) end [2025-04-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865969', 'tblTempVendorCDR_20' ) start [2025-04-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865969', 'tblTempVendorCDR_20' ) end [2025-04-09 00:48:18] Production.INFO: ProcessCDR(1,14865969,1,1,2) [2025-04-09 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865969', 'tblTempUsageDetail_20' ) start [2025-04-09 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865969', 'tblTempUsageDetail_20' ) end [2025-04-09 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:48:21] Production.INFO: ==7509== Releasing lock... [2025-04-09 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:49:05 [end_date_ymd] => 2025-04-09 00:49:05 [RateCDR] => 1 ) [2025-04-09 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:49:05' and `end` < '2025-04-09 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:49:18] Production.INFO: count ==73 [2025-04-09 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:49:05 - End Time 2025-04-09 00:49:05 [2025-04-09 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865974', 'tblTempUsageDetail_20' ) start [2025-04-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865974', 'tblTempUsageDetail_20' ) end [2025-04-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865974', 'tblTempVendorCDR_20' ) start [2025-04-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865974', 'tblTempVendorCDR_20' ) end [2025-04-09 00:49:18] Production.INFO: ProcessCDR(1,14865974,1,1,2) [2025-04-09 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865974', 'tblTempUsageDetail_20' ) start [2025-04-09 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865974', 'tblTempUsageDetail_20' ) end [2025-04-09 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:49:21] Production.INFO: ==7583== Releasing lock... [2025-04-09 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:50:06 [end_date_ymd] => 2025-04-09 00:50:06 [RateCDR] => 1 ) [2025-04-09 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-08 21:50:06' and `end` < '2025-04-09 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-09 00:50:19] Production.INFO: count ==81 [2025-04-09 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 21:50:06 - End Time 2025-04-09 00:50:06 [2025-04-09 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865980', 'tblTempUsageDetail_20' ) start [2025-04-09 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865980', 'tblTempUsageDetail_20' ) end [2025-04-09 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865980', 'tblTempVendorCDR_20' ) start [2025-04-09 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865980', 'tblTempVendorCDR_20' ) end [2025-04-09 00:50:19] Production.INFO: ProcessCDR(1,14865980,1,1,2) [2025-04-09 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865980', 'tblTempUsageDetail_20' ) start [2025-04-09 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865980', 'tblTempUsageDetail_20' ) end [2025-04-09 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:50:24] Production.INFO: ==7656== Releasing lock... [2025-04-09 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:50:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:51:05 [end_date_ymd] => 2025-04-09 00:51:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:51:05' and `end` < '2025-04-09 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-09 00:51:18] Production.INFO: count ==89 [2025-04-09 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:51:05 - End Time 2025-04-09 00:51:05 [2025-04-09 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865985', 'tblTempUsageDetail_20' ) start [2025-04-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865985', 'tblTempUsageDetail_20' ) end [2025-04-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865985', 'tblTempVendorCDR_20' ) start [2025-04-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865985', 'tblTempVendorCDR_20' ) end [2025-04-09 00:51:18] Production.INFO: ProcessCDR(1,14865985,1,1,2) [2025-04-09 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865985', 'tblTempUsageDetail_20' ) start [2025-04-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865985', 'tblTempUsageDetail_20' ) end [2025-04-09 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:51:22] Production.INFO: ==7767== Releasing lock... [2025-04-09 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:52:05 [end_date_ymd] => 2025-04-09 00:52:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:52:05' and `end` < '2025-04-09 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-09 00:52:17] Production.INFO: count ==86 [2025-04-09 00:52:17] Production.ERROR: pbx CDR StartTime 2025-04-08 21:52:05 - End Time 2025-04-09 00:52:05 [2025-04-09 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865990', 'tblTempUsageDetail_20' ) start [2025-04-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865990', 'tblTempUsageDetail_20' ) end [2025-04-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865990', 'tblTempVendorCDR_20' ) start [2025-04-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865990', 'tblTempVendorCDR_20' ) end [2025-04-09 00:52:17] Production.INFO: ProcessCDR(1,14865990,1,1,2) [2025-04-09 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865990', 'tblTempUsageDetail_20' ) start [2025-04-09 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865990', 'tblTempUsageDetail_20' ) end [2025-04-09 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:52:21] Production.INFO: ==7840== Releasing lock... [2025-04-09 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:53:06 [end_date_ymd] => 2025-04-09 00:53:06 [RateCDR] => 1 ) [2025-04-09 00: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-08 21:53:06' and `end` < '2025-04-09 00: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-09 00:53:18] Production.INFO: count ==84 [2025-04-09 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:53:06 - End Time 2025-04-09 00:53:06 [2025-04-09 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865995', 'tblTempUsageDetail_20' ) start [2025-04-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865995', 'tblTempUsageDetail_20' ) end [2025-04-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865995', 'tblTempVendorCDR_20' ) start [2025-04-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865995', 'tblTempVendorCDR_20' ) end [2025-04-09 00:53:18] Production.INFO: ProcessCDR(1,14865995,1,1,2) [2025-04-09 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865995', 'tblTempUsageDetail_20' ) start [2025-04-09 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865995', 'tblTempUsageDetail_20' ) end [2025-04-09 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:53:22] Production.INFO: ==7911== Releasing lock... [2025-04-09 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:54:05 [end_date_ymd] => 2025-04-09 00:54:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:54:05' and `end` < '2025-04-09 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-09 00:54:18] Production.INFO: count ==83 [2025-04-09 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:54:05 - End Time 2025-04-09 00:54:05 [2025-04-09 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866000', 'tblTempUsageDetail_20' ) start [2025-04-09 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866000', 'tblTempUsageDetail_20' ) end [2025-04-09 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866000', 'tblTempVendorCDR_20' ) start [2025-04-09 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866000', 'tblTempVendorCDR_20' ) end [2025-04-09 00:54:18] Production.INFO: ProcessCDR(1,14866000,1,1,2) [2025-04-09 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866000', 'tblTempUsageDetail_20' ) start [2025-04-09 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866000', 'tblTempUsageDetail_20' ) end [2025-04-09 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:54:21] Production.INFO: ==7982== Releasing lock... [2025-04-09 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:55:05 [end_date_ymd] => 2025-04-09 00:55:05 [RateCDR] => 1 ) [2025-04-09 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:55:05' and `end` < '2025-04-09 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:55:18] Production.INFO: count ==83 [2025-04-09 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:55:05 - End Time 2025-04-09 00:55:05 [2025-04-09 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866005', 'tblTempUsageDetail_20' ) start [2025-04-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866005', 'tblTempUsageDetail_20' ) end [2025-04-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866005', 'tblTempVendorCDR_20' ) start [2025-04-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866005', 'tblTempVendorCDR_20' ) end [2025-04-09 00:55:18] Production.INFO: ProcessCDR(1,14866005,1,1,2) [2025-04-09 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866005', 'tblTempUsageDetail_20' ) start [2025-04-09 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866005', 'tblTempUsageDetail_20' ) end [2025-04-09 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:55:22] Production.INFO: ==8053== Releasing lock... [2025-04-09 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:56:05 [end_date_ymd] => 2025-04-09 00:56:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:56:05' and `end` < '2025-04-09 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-09 00:56:18] Production.INFO: count ==83 [2025-04-09 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:56:05 - End Time 2025-04-09 00:56:05 [2025-04-09 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866010', 'tblTempUsageDetail_20' ) start [2025-04-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866010', 'tblTempUsageDetail_20' ) end [2025-04-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866010', 'tblTempVendorCDR_20' ) start [2025-04-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866010', 'tblTempVendorCDR_20' ) end [2025-04-09 00:56:18] Production.INFO: ProcessCDR(1,14866010,1,1,2) [2025-04-09 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866010', 'tblTempUsageDetail_20' ) start [2025-04-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866010', 'tblTempUsageDetail_20' ) end [2025-04-09 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:56:21] Production.INFO: ==8127== Releasing lock... [2025-04-09 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:57:05 [end_date_ymd] => 2025-04-09 00:57:05 [RateCDR] => 1 ) [2025-04-09 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:57:05' and `end` < '2025-04-09 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:57:18] Production.INFO: count ==83 [2025-04-09 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:57:05 - End Time 2025-04-09 00:57:05 [2025-04-09 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866015', 'tblTempUsageDetail_20' ) start [2025-04-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866015', 'tblTempUsageDetail_20' ) end [2025-04-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866015', 'tblTempVendorCDR_20' ) start [2025-04-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866015', 'tblTempVendorCDR_20' ) end [2025-04-09 00:57:18] Production.INFO: ProcessCDR(1,14866015,1,1,2) [2025-04-09 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866015', 'tblTempUsageDetail_20' ) start [2025-04-09 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866015', 'tblTempUsageDetail_20' ) end [2025-04-09 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:57:21] Production.INFO: ==8199== Releasing lock... [2025-04-09 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:58:05 [end_date_ymd] => 2025-04-09 00:58:05 [RateCDR] => 1 ) [2025-04-09 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-08 21:58:05' and `end` < '2025-04-09 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-09 00:58:18] Production.INFO: count ==90 [2025-04-09 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:58:05 - End Time 2025-04-09 00:58:05 [2025-04-09 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866020', 'tblTempUsageDetail_20' ) start [2025-04-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866020', 'tblTempUsageDetail_20' ) end [2025-04-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866020', 'tblTempVendorCDR_20' ) start [2025-04-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866020', 'tblTempVendorCDR_20' ) end [2025-04-09 00:58:18] Production.INFO: ProcessCDR(1,14866020,1,1,2) [2025-04-09 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866020', 'tblTempUsageDetail_20' ) start [2025-04-09 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866020', 'tblTempUsageDetail_20' ) end [2025-04-09 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:58:21] Production.INFO: ==8269== Releasing lock... [2025-04-09 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 21:59:05 [end_date_ymd] => 2025-04-09 00:59:05 [RateCDR] => 1 ) [2025-04-09 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 21:59:05' and `end` < '2025-04-09 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 00:59:18] Production.INFO: count ==89 [2025-04-09 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 21:59:05 - End Time 2025-04-09 00:59:05 [2025-04-09 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866025', 'tblTempUsageDetail_20' ) start [2025-04-09 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866025', 'tblTempUsageDetail_20' ) end [2025-04-09 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866025', 'tblTempVendorCDR_20' ) start [2025-04-09 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866025', 'tblTempVendorCDR_20' ) end [2025-04-09 00:59:18] Production.INFO: ProcessCDR(1,14866025,1,1,2) [2025-04-09 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866025', 'tblTempUsageDetail_20' ) start [2025-04-09 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866025', 'tblTempUsageDetail_20' ) end [2025-04-09 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 00:59:23] Production.INFO: ==8341== Releasing lock... [2025-04-09 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 00:59:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:00:05 [end_date_ymd] => 2025-04-09 01:00:05 [RateCDR] => 1 ) [2025-04-09 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:00:05' and `end` < '2025-04-09 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:00:18] Production.INFO: count ==96 [2025-04-09 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:00:05 - End Time 2025-04-09 01:00:05 [2025-04-09 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866031', 'tblTempUsageDetail_20' ) start [2025-04-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866031', 'tblTempUsageDetail_20' ) end [2025-04-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866031', 'tblTempVendorCDR_20' ) start [2025-04-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866031', 'tblTempVendorCDR_20' ) end [2025-04-09 01:00:18] Production.INFO: ProcessCDR(1,14866031,1,1,2) [2025-04-09 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866031', 'tblTempUsageDetail_20' ) start [2025-04-09 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866031', 'tblTempUsageDetail_20' ) end [2025-04-09 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:00:21] Production.INFO: ==8421== Releasing lock... [2025-04-09 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:01:06 [end_date_ymd] => 2025-04-09 01:01:06 [RateCDR] => 1 ) [2025-04-09 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-08 22:01:06' and `end` < '2025-04-09 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-09 01:01:18] Production.INFO: count ==102 [2025-04-09 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:01:06 - End Time 2025-04-09 01:01:06 [2025-04-09 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866036', 'tblTempUsageDetail_20' ) start [2025-04-09 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866036', 'tblTempUsageDetail_20' ) end [2025-04-09 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866036', 'tblTempVendorCDR_20' ) start [2025-04-09 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866036', 'tblTempVendorCDR_20' ) end [2025-04-09 01:01:18] Production.INFO: ProcessCDR(1,14866036,1,1,2) [2025-04-09 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866036', 'tblTempUsageDetail_20' ) start [2025-04-09 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866036', 'tblTempUsageDetail_20' ) end [2025-04-09 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:01:22] Production.INFO: ==8511== Releasing lock... [2025-04-09 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:02:05 [end_date_ymd] => 2025-04-09 01:02:05 [RateCDR] => 1 ) [2025-04-09 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:02:05' and `end` < '2025-04-09 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:02:18] Production.INFO: count ==103 [2025-04-09 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:02:05 - End Time 2025-04-09 01:02:05 [2025-04-09 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866041', 'tblTempUsageDetail_20' ) start [2025-04-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866041', 'tblTempUsageDetail_20' ) end [2025-04-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866041', 'tblTempVendorCDR_20' ) start [2025-04-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866041', 'tblTempVendorCDR_20' ) end [2025-04-09 01:02:18] Production.INFO: ProcessCDR(1,14866041,1,1,2) [2025-04-09 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866041', 'tblTempUsageDetail_20' ) start [2025-04-09 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866041', 'tblTempUsageDetail_20' ) end [2025-04-09 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:02:21] Production.INFO: ==8584== Releasing lock... [2025-04-09 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:03:05 [end_date_ymd] => 2025-04-09 01:03:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:03:05' and `end` < '2025-04-09 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-09 01:03:18] Production.INFO: count ==99 [2025-04-09 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:03:05 - End Time 2025-04-09 01:03:05 [2025-04-09 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866046', 'tblTempUsageDetail_20' ) start [2025-04-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866046', 'tblTempUsageDetail_20' ) end [2025-04-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866046', 'tblTempVendorCDR_20' ) start [2025-04-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866046', 'tblTempVendorCDR_20' ) end [2025-04-09 01:03:18] Production.INFO: ProcessCDR(1,14866046,1,1,2) [2025-04-09 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866046', 'tblTempUsageDetail_20' ) start [2025-04-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866046', 'tblTempUsageDetail_20' ) end [2025-04-09 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:03:21] Production.INFO: ==8654== Releasing lock... [2025-04-09 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:04:05 [end_date_ymd] => 2025-04-09 01:04:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:04:05' and `end` < '2025-04-09 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-09 01:04:17] Production.INFO: count ==94 [2025-04-09 01:04:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:04:05 - End Time 2025-04-09 01:04:05 [2025-04-09 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866051', 'tblTempUsageDetail_20' ) start [2025-04-09 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866051', 'tblTempUsageDetail_20' ) end [2025-04-09 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866051', 'tblTempVendorCDR_20' ) start [2025-04-09 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866051', 'tblTempVendorCDR_20' ) end [2025-04-09 01:04:17] Production.INFO: ProcessCDR(1,14866051,1,1,2) [2025-04-09 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866051', 'tblTempUsageDetail_20' ) start [2025-04-09 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866051', 'tblTempUsageDetail_20' ) end [2025-04-09 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:04:20] Production.INFO: ==8729== Releasing lock... [2025-04-09 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:05:06 [end_date_ymd] => 2025-04-09 01:05:06 [RateCDR] => 1 ) [2025-04-09 01: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-08 22:05:06' and `end` < '2025-04-09 01: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-09 01:05:18] Production.INFO: count ==94 [2025-04-09 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:05:06 - End Time 2025-04-09 01:05:06 [2025-04-09 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866056', 'tblTempUsageDetail_20' ) start [2025-04-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866056', 'tblTempUsageDetail_20' ) end [2025-04-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866056', 'tblTempVendorCDR_20' ) start [2025-04-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866056', 'tblTempVendorCDR_20' ) end [2025-04-09 01:05:18] Production.INFO: ProcessCDR(1,14866056,1,1,2) [2025-04-09 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866056', 'tblTempUsageDetail_20' ) start [2025-04-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866056', 'tblTempUsageDetail_20' ) end [2025-04-09 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:05:21] Production.INFO: ==8801== Releasing lock... [2025-04-09 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:06:05 [end_date_ymd] => 2025-04-09 01:06:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:06:05' and `end` < '2025-04-09 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-09 01:06:18] Production.INFO: count ==94 [2025-04-09 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:06:05 - End Time 2025-04-09 01:06:05 [2025-04-09 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866061', 'tblTempUsageDetail_20' ) start [2025-04-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866061', 'tblTempUsageDetail_20' ) end [2025-04-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866061', 'tblTempVendorCDR_20' ) start [2025-04-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866061', 'tblTempVendorCDR_20' ) end [2025-04-09 01:06:18] Production.INFO: ProcessCDR(1,14866061,1,1,2) [2025-04-09 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866061', 'tblTempUsageDetail_20' ) start [2025-04-09 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866061', 'tblTempUsageDetail_20' ) end [2025-04-09 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:06:21] Production.INFO: ==8872== Releasing lock... [2025-04-09 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:07:05 [end_date_ymd] => 2025-04-09 01:07:05 [RateCDR] => 1 ) [2025-04-09 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:07:05' and `end` < '2025-04-09 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:07:18] Production.INFO: count ==94 [2025-04-09 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:07:05 - End Time 2025-04-09 01:07:05 [2025-04-09 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866066', 'tblTempUsageDetail_20' ) start [2025-04-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866066', 'tblTempUsageDetail_20' ) end [2025-04-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866066', 'tblTempVendorCDR_20' ) start [2025-04-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866066', 'tblTempVendorCDR_20' ) end [2025-04-09 01:07:18] Production.INFO: ProcessCDR(1,14866066,1,1,2) [2025-04-09 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866066', 'tblTempUsageDetail_20' ) start [2025-04-09 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866066', 'tblTempUsageDetail_20' ) end [2025-04-09 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:07:21] Production.INFO: ==8992== Releasing lock... [2025-04-09 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:08:06 [end_date_ymd] => 2025-04-09 01:08:06 [RateCDR] => 1 ) [2025-04-09 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:08:06' and `end` < '2025-04-09 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:08:18] Production.INFO: count ==94 [2025-04-09 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:08:06 - End Time 2025-04-09 01:08:06 [2025-04-09 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866071', 'tblTempUsageDetail_20' ) start [2025-04-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866071', 'tblTempUsageDetail_20' ) end [2025-04-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866071', 'tblTempVendorCDR_20' ) start [2025-04-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866071', 'tblTempVendorCDR_20' ) end [2025-04-09 01:08:18] Production.INFO: ProcessCDR(1,14866071,1,1,2) [2025-04-09 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866071', 'tblTempUsageDetail_20' ) start [2025-04-09 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866071', 'tblTempUsageDetail_20' ) end [2025-04-09 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:08:22] Production.INFO: ==9078== Releasing lock... [2025-04-09 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:09:05 [end_date_ymd] => 2025-04-09 01:09:05 [RateCDR] => 1 ) [2025-04-09 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:09:05' and `end` < '2025-04-09 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-09 01:09:17] Production.INFO: count ==94 [2025-04-09 01:09:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:09:05 - End Time 2025-04-09 01:09:05 [2025-04-09 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866076', 'tblTempUsageDetail_20' ) start [2025-04-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866076', 'tblTempUsageDetail_20' ) end [2025-04-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866076', 'tblTempVendorCDR_20' ) start [2025-04-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866076', 'tblTempVendorCDR_20' ) end [2025-04-09 01:09:17] Production.INFO: ProcessCDR(1,14866076,1,1,2) [2025-04-09 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866076', 'tblTempUsageDetail_20' ) start [2025-04-09 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866076', 'tblTempUsageDetail_20' ) end [2025-04-09 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:09:21] Production.INFO: ==9159== Releasing lock... [2025-04-09 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:10:06 [end_date_ymd] => 2025-04-09 01:10:06 [RateCDR] => 1 ) [2025-04-09 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-08 22:10:06' and `end` < '2025-04-09 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-09 01:10:18] Production.INFO: count ==96 [2025-04-09 01:10:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:10:06 - End Time 2025-04-09 01:10:06 [2025-04-09 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866082', 'tblTempUsageDetail_20' ) start [2025-04-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866082', 'tblTempUsageDetail_20' ) end [2025-04-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866082', 'tblTempVendorCDR_20' ) start [2025-04-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866082', 'tblTempVendorCDR_20' ) end [2025-04-09 01:10:18] Production.INFO: ProcessCDR(1,14866082,1,1,2) [2025-04-09 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866082', 'tblTempUsageDetail_20' ) start [2025-04-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866082', 'tblTempUsageDetail_20' ) end [2025-04-09 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:10:22] Production.INFO: ==9251== Releasing lock... [2025-04-09 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:11:05 [end_date_ymd] => 2025-04-09 01:11:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:11:05' and `end` < '2025-04-09 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-09 01:11:18] Production.INFO: count ==96 [2025-04-09 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:11:05 - End Time 2025-04-09 01:11:05 [2025-04-09 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866087', 'tblTempUsageDetail_20' ) start [2025-04-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866087', 'tblTempUsageDetail_20' ) end [2025-04-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866087', 'tblTempVendorCDR_20' ) start [2025-04-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866087', 'tblTempVendorCDR_20' ) end [2025-04-09 01:11:18] Production.INFO: ProcessCDR(1,14866087,1,1,2) [2025-04-09 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866087', 'tblTempUsageDetail_20' ) start [2025-04-09 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866087', 'tblTempUsageDetail_20' ) end [2025-04-09 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:11:22] Production.INFO: ==9344== Releasing lock... [2025-04-09 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:12:05 [end_date_ymd] => 2025-04-09 01:12:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:12:05' and `end` < '2025-04-09 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-09 01:12:18] Production.INFO: count ==96 [2025-04-09 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:12:05 - End Time 2025-04-09 01:12:05 [2025-04-09 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866092', 'tblTempUsageDetail_20' ) start [2025-04-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866092', 'tblTempUsageDetail_20' ) end [2025-04-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866092', 'tblTempVendorCDR_20' ) start [2025-04-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866092', 'tblTempVendorCDR_20' ) end [2025-04-09 01:12:18] Production.INFO: ProcessCDR(1,14866092,1,1,2) [2025-04-09 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866092', 'tblTempUsageDetail_20' ) start [2025-04-09 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866092', 'tblTempUsageDetail_20' ) end [2025-04-09 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:12:22] Production.INFO: ==9424== Releasing lock... [2025-04-09 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:13:05 [end_date_ymd] => 2025-04-09 01:13:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:13:05' and `end` < '2025-04-09 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-09 01:13:18] Production.INFO: count ==98 [2025-04-09 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:13:05 - End Time 2025-04-09 01:13:05 [2025-04-09 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866097', 'tblTempUsageDetail_20' ) start [2025-04-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866097', 'tblTempUsageDetail_20' ) end [2025-04-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866097', 'tblTempVendorCDR_20' ) start [2025-04-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866097', 'tblTempVendorCDR_20' ) end [2025-04-09 01:13:18] Production.INFO: ProcessCDR(1,14866097,1,1,2) [2025-04-09 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866097', 'tblTempUsageDetail_20' ) start [2025-04-09 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866097', 'tblTempUsageDetail_20' ) end [2025-04-09 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:13:21] Production.INFO: ==9510== Releasing lock... [2025-04-09 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:14:05 [end_date_ymd] => 2025-04-09 01:14:05 [RateCDR] => 1 ) [2025-04-09 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:14:05' and `end` < '2025-04-09 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:14:17] Production.INFO: count ==100 [2025-04-09 01:14:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:14:05 - End Time 2025-04-09 01:14:05 [2025-04-09 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866102', 'tblTempUsageDetail_20' ) start [2025-04-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866102', 'tblTempUsageDetail_20' ) end [2025-04-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866102', 'tblTempVendorCDR_20' ) start [2025-04-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866102', 'tblTempVendorCDR_20' ) end [2025-04-09 01:14:18] Production.INFO: ProcessCDR(1,14866102,1,1,2) [2025-04-09 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866102', 'tblTempUsageDetail_20' ) start [2025-04-09 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866102', 'tblTempUsageDetail_20' ) end [2025-04-09 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:14:21] Production.INFO: ==9594== Releasing lock... [2025-04-09 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:15:05 [end_date_ymd] => 2025-04-09 01:15:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:15:05' and `end` < '2025-04-09 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-09 01:15:18] Production.INFO: count ==100 [2025-04-09 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:15:05 - End Time 2025-04-09 01:15:05 [2025-04-09 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866107', 'tblTempUsageDetail_20' ) start [2025-04-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866107', 'tblTempUsageDetail_20' ) end [2025-04-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866107', 'tblTempVendorCDR_20' ) start [2025-04-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866107', 'tblTempVendorCDR_20' ) end [2025-04-09 01:15:18] Production.INFO: ProcessCDR(1,14866107,1,1,2) [2025-04-09 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866107', 'tblTempUsageDetail_20' ) start [2025-04-09 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866107', 'tblTempUsageDetail_20' ) end [2025-04-09 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:15:22] Production.INFO: ==9691== Releasing lock... [2025-04-09 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:16:05 [end_date_ymd] => 2025-04-09 01:16:05 [RateCDR] => 1 ) [2025-04-09 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:16:05' and `end` < '2025-04-09 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:16:18] Production.INFO: count ==100 [2025-04-09 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:16:05 - End Time 2025-04-09 01:16:05 [2025-04-09 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866112', 'tblTempUsageDetail_20' ) start [2025-04-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866112', 'tblTempUsageDetail_20' ) end [2025-04-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866112', 'tblTempVendorCDR_20' ) start [2025-04-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866112', 'tblTempVendorCDR_20' ) end [2025-04-09 01:16:18] Production.INFO: ProcessCDR(1,14866112,1,1,2) [2025-04-09 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866112', 'tblTempUsageDetail_20' ) start [2025-04-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866112', 'tblTempUsageDetail_20' ) end [2025-04-09 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:16:21] Production.INFO: ==9775== Releasing lock... [2025-04-09 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:17:05 [end_date_ymd] => 2025-04-09 01:17:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:17:05' and `end` < '2025-04-09 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-09 01:17:17] Production.INFO: count ==99 [2025-04-09 01:17:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:17:05 - End Time 2025-04-09 01:17:05 [2025-04-09 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866117', 'tblTempUsageDetail_20' ) start [2025-04-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866117', 'tblTempUsageDetail_20' ) end [2025-04-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866117', 'tblTempVendorCDR_20' ) start [2025-04-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866117', 'tblTempVendorCDR_20' ) end [2025-04-09 01:17:17] Production.INFO: ProcessCDR(1,14866117,1,1,2) [2025-04-09 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866117', 'tblTempUsageDetail_20' ) start [2025-04-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866117', 'tblTempUsageDetail_20' ) end [2025-04-09 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:17:21] Production.INFO: ==9860== Releasing lock... [2025-04-09 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:18:05 [end_date_ymd] => 2025-04-09 01:18:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:18:05' and `end` < '2025-04-09 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-09 01:18:18] Production.INFO: count ==99 [2025-04-09 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:18:05 - End Time 2025-04-09 01:18:05 [2025-04-09 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866122', 'tblTempUsageDetail_20' ) start [2025-04-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866122', 'tblTempUsageDetail_20' ) end [2025-04-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866122', 'tblTempVendorCDR_20' ) start [2025-04-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866122', 'tblTempVendorCDR_20' ) end [2025-04-09 01:18:18] Production.INFO: ProcessCDR(1,14866122,1,1,2) [2025-04-09 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866122', 'tblTempUsageDetail_20' ) start [2025-04-09 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866122', 'tblTempUsageDetail_20' ) end [2025-04-09 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:18:21] Production.INFO: ==9955== Releasing lock... [2025-04-09 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:19:05 [end_date_ymd] => 2025-04-09 01:19:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:19:05' and `end` < '2025-04-09 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-09 01:19:18] Production.INFO: count ==101 [2025-04-09 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:19:05 - End Time 2025-04-09 01:19:05 [2025-04-09 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866127', 'tblTempUsageDetail_20' ) start [2025-04-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866127', 'tblTempUsageDetail_20' ) end [2025-04-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866127', 'tblTempVendorCDR_20' ) start [2025-04-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866127', 'tblTempVendorCDR_20' ) end [2025-04-09 01:19:18] Production.INFO: ProcessCDR(1,14866127,1,1,2) [2025-04-09 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866127', 'tblTempUsageDetail_20' ) start [2025-04-09 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866127', 'tblTempUsageDetail_20' ) end [2025-04-09 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:19:22] Production.INFO: ==10041== Releasing lock... [2025-04-09 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:20:05 [end_date_ymd] => 2025-04-09 01:20:05 [RateCDR] => 1 ) [2025-04-09 01: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-08 22:20:05' and `end` < '2025-04-09 01: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-09 01:20:18] Production.INFO: count ==109 [2025-04-09 01:20:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:20:05 - End Time 2025-04-09 01:20:05 [2025-04-09 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866133', 'tblTempUsageDetail_20' ) start [2025-04-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866133', 'tblTempUsageDetail_20' ) end [2025-04-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866133', 'tblTempVendorCDR_20' ) start [2025-04-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866133', 'tblTempVendorCDR_20' ) end [2025-04-09 01:20:18] Production.INFO: ProcessCDR(1,14866133,1,1,2) [2025-04-09 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866133', 'tblTempUsageDetail_20' ) start [2025-04-09 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866133', 'tblTempUsageDetail_20' ) end [2025-04-09 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:20:22] Production.INFO: ==10127== Releasing lock... [2025-04-09 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:21:05 [end_date_ymd] => 2025-04-09 01:21:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:21:05' and `end` < '2025-04-09 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-09 01:21:18] Production.INFO: count ==111 [2025-04-09 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:21:05 - End Time 2025-04-09 01:21:05 [2025-04-09 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866138', 'tblTempUsageDetail_20' ) start [2025-04-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866138', 'tblTempUsageDetail_20' ) end [2025-04-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866138', 'tblTempVendorCDR_20' ) start [2025-04-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866138', 'tblTempVendorCDR_20' ) end [2025-04-09 01:21:18] Production.INFO: ProcessCDR(1,14866138,1,1,2) [2025-04-09 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866138', 'tblTempUsageDetail_20' ) start [2025-04-09 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866138', 'tblTempUsageDetail_20' ) end [2025-04-09 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:21:21] Production.INFO: ==10213== Releasing lock... [2025-04-09 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:22:05 [end_date_ymd] => 2025-04-09 01:22:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:22:05' and `end` < '2025-04-09 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-09 01:22:17] Production.INFO: count ==111 [2025-04-09 01:22:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:22:05 - End Time 2025-04-09 01:22:05 [2025-04-09 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866143', 'tblTempUsageDetail_20' ) start [2025-04-09 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866143', 'tblTempUsageDetail_20' ) end [2025-04-09 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866143', 'tblTempVendorCDR_20' ) start [2025-04-09 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866143', 'tblTempVendorCDR_20' ) end [2025-04-09 01:22:17] Production.INFO: ProcessCDR(1,14866143,1,1,2) [2025-04-09 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866143', 'tblTempUsageDetail_20' ) start [2025-04-09 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866143', 'tblTempUsageDetail_20' ) end [2025-04-09 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:22:21] Production.INFO: ==10341== Releasing lock... [2025-04-09 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:23:05 [end_date_ymd] => 2025-04-09 01:23:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:23:05' and `end` < '2025-04-09 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-09 01:23:18] Production.INFO: count ==111 [2025-04-09 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:23:05 - End Time 2025-04-09 01:23:05 [2025-04-09 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866148', 'tblTempUsageDetail_20' ) start [2025-04-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866148', 'tblTempUsageDetail_20' ) end [2025-04-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866148', 'tblTempVendorCDR_20' ) start [2025-04-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866148', 'tblTempVendorCDR_20' ) end [2025-04-09 01:23:18] Production.INFO: ProcessCDR(1,14866148,1,1,2) [2025-04-09 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866148', 'tblTempUsageDetail_20' ) start [2025-04-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866148', 'tblTempUsageDetail_20' ) end [2025-04-09 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:23:21] Production.INFO: ==10430== Releasing lock... [2025-04-09 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:24:05 [end_date_ymd] => 2025-04-09 01:24:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:24:05' and `end` < '2025-04-09 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-09 01:24:18] Production.INFO: count ==111 [2025-04-09 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:24:05 - End Time 2025-04-09 01:24:05 [2025-04-09 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866153', 'tblTempUsageDetail_20' ) start [2025-04-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866153', 'tblTempUsageDetail_20' ) end [2025-04-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866153', 'tblTempVendorCDR_20' ) start [2025-04-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866153', 'tblTempVendorCDR_20' ) end [2025-04-09 01:24:18] Production.INFO: ProcessCDR(1,14866153,1,1,2) [2025-04-09 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866153', 'tblTempUsageDetail_20' ) start [2025-04-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866153', 'tblTempUsageDetail_20' ) end [2025-04-09 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:24:21] Production.INFO: ==10514== Releasing lock... [2025-04-09 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:25:05 [end_date_ymd] => 2025-04-09 01:25:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:25:05' and `end` < '2025-04-09 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-09 01:25:18] Production.INFO: count ==111 [2025-04-09 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:25:05 - End Time 2025-04-09 01:25:05 [2025-04-09 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866158', 'tblTempUsageDetail_20' ) start [2025-04-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866158', 'tblTempUsageDetail_20' ) end [2025-04-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866158', 'tblTempVendorCDR_20' ) start [2025-04-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866158', 'tblTempVendorCDR_20' ) end [2025-04-09 01:25:18] Production.INFO: ProcessCDR(1,14866158,1,1,2) [2025-04-09 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866158', 'tblTempUsageDetail_20' ) start [2025-04-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866158', 'tblTempUsageDetail_20' ) end [2025-04-09 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:25:21] Production.INFO: ==10620== Releasing lock... [2025-04-09 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:26:05 [end_date_ymd] => 2025-04-09 01:26:05 [RateCDR] => 1 ) [2025-04-09 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:26:05' and `end` < '2025-04-09 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:26:18] Production.INFO: count ==111 [2025-04-09 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:26:05 - End Time 2025-04-09 01:26:05 [2025-04-09 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866163', 'tblTempUsageDetail_20' ) start [2025-04-09 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866163', 'tblTempUsageDetail_20' ) end [2025-04-09 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866163', 'tblTempVendorCDR_20' ) start [2025-04-09 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866163', 'tblTempVendorCDR_20' ) end [2025-04-09 01:26:18] Production.INFO: ProcessCDR(1,14866163,1,1,2) [2025-04-09 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866163', 'tblTempUsageDetail_20' ) start [2025-04-09 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866163', 'tblTempUsageDetail_20' ) end [2025-04-09 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:26:21] Production.INFO: ==10709== Releasing lock... [2025-04-09 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:27:05 [end_date_ymd] => 2025-04-09 01:27:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:27:05' and `end` < '2025-04-09 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-09 01:27:18] Production.INFO: count ==111 [2025-04-09 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:27:05 - End Time 2025-04-09 01:27:05 [2025-04-09 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866168', 'tblTempUsageDetail_20' ) start [2025-04-09 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866168', 'tblTempUsageDetail_20' ) end [2025-04-09 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866168', 'tblTempVendorCDR_20' ) start [2025-04-09 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866168', 'tblTempVendorCDR_20' ) end [2025-04-09 01:27:18] Production.INFO: ProcessCDR(1,14866168,1,1,2) [2025-04-09 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866168', 'tblTempUsageDetail_20' ) start [2025-04-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866168', 'tblTempUsageDetail_20' ) end [2025-04-09 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:27:21] Production.INFO: ==10788== Releasing lock... [2025-04-09 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:28:05 [end_date_ymd] => 2025-04-09 01:28:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:28:05' and `end` < '2025-04-09 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-09 01:28:18] Production.INFO: count ==110 [2025-04-09 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:28:05 - End Time 2025-04-09 01:28:05 [2025-04-09 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866173', 'tblTempUsageDetail_20' ) start [2025-04-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866173', 'tblTempUsageDetail_20' ) end [2025-04-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866173', 'tblTempVendorCDR_20' ) start [2025-04-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866173', 'tblTempVendorCDR_20' ) end [2025-04-09 01:28:18] Production.INFO: ProcessCDR(1,14866173,1,1,2) [2025-04-09 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866173', 'tblTempUsageDetail_20' ) start [2025-04-09 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866173', 'tblTempUsageDetail_20' ) end [2025-04-09 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:28:21] Production.INFO: ==10875== Releasing lock... [2025-04-09 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:29:05 [end_date_ymd] => 2025-04-09 01:29:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:29:05' and `end` < '2025-04-09 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-09 01:29:18] Production.INFO: count ==110 [2025-04-09 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:29:05 - End Time 2025-04-09 01:29:05 [2025-04-09 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866178', 'tblTempUsageDetail_20' ) start [2025-04-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866178', 'tblTempUsageDetail_20' ) end [2025-04-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866178', 'tblTempVendorCDR_20' ) start [2025-04-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866178', 'tblTempVendorCDR_20' ) end [2025-04-09 01:29:18] Production.INFO: ProcessCDR(1,14866178,1,1,2) [2025-04-09 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866178', 'tblTempUsageDetail_20' ) start [2025-04-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866178', 'tblTempUsageDetail_20' ) end [2025-04-09 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:29:21] Production.INFO: ==10958== Releasing lock... [2025-04-09 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:30:06 [end_date_ymd] => 2025-04-09 01:30:06 [RateCDR] => 1 ) [2025-04-09 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-08 22:30:06' and `end` < '2025-04-09 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-09 01:30:19] Production.INFO: count ==118 [2025-04-09 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 22:30:06 - End Time 2025-04-09 01:30:06 [2025-04-09 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866184', 'tblTempUsageDetail_20' ) start [2025-04-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866184', 'tblTempUsageDetail_20' ) end [2025-04-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866184', 'tblTempVendorCDR_20' ) start [2025-04-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866184', 'tblTempVendorCDR_20' ) end [2025-04-09 01:30:19] Production.INFO: ProcessCDR(1,14866184,1,1,2) [2025-04-09 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866184', 'tblTempUsageDetail_20' ) start [2025-04-09 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866184', 'tblTempUsageDetail_20' ) end [2025-04-09 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:30:22] Production.INFO: ==11051== Releasing lock... [2025-04-09 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:31:05 [end_date_ymd] => 2025-04-09 01:31:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:31:05' and `end` < '2025-04-09 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-09 01:31:17] Production.INFO: count ==118 [2025-04-09 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:31:05 - End Time 2025-04-09 01:31:05 [2025-04-09 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866189', 'tblTempUsageDetail_20' ) start [2025-04-09 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866189', 'tblTempUsageDetail_20' ) end [2025-04-09 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866189', 'tblTempVendorCDR_20' ) start [2025-04-09 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866189', 'tblTempVendorCDR_20' ) end [2025-04-09 01:31:17] Production.INFO: ProcessCDR(1,14866189,1,1,2) [2025-04-09 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866189', 'tblTempUsageDetail_20' ) start [2025-04-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866189', 'tblTempUsageDetail_20' ) end [2025-04-09 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:31:21] Production.INFO: ==11143== Releasing lock... [2025-04-09 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:32:05 [end_date_ymd] => 2025-04-09 01:32:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:32:05' and `end` < '2025-04-09 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-09 01:32:17] Production.INFO: count ==118 [2025-04-09 01:32:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:32:05 - End Time 2025-04-09 01:32:05 [2025-04-09 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866194', 'tblTempUsageDetail_20' ) start [2025-04-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866194', 'tblTempUsageDetail_20' ) end [2025-04-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866194', 'tblTempVendorCDR_20' ) start [2025-04-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866194', 'tblTempVendorCDR_20' ) end [2025-04-09 01:32:17] Production.INFO: ProcessCDR(1,14866194,1,1,2) [2025-04-09 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866194', 'tblTempUsageDetail_20' ) start [2025-04-09 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866194', 'tblTempUsageDetail_20' ) end [2025-04-09 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:32:21] Production.INFO: ==11225== Releasing lock... [2025-04-09 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:33:05 [end_date_ymd] => 2025-04-09 01:33:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:33:05' and `end` < '2025-04-09 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-09 01:33:18] Production.INFO: count ==118 [2025-04-09 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:33:05 - End Time 2025-04-09 01:33:05 [2025-04-09 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866199', 'tblTempUsageDetail_20' ) start [2025-04-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866199', 'tblTempUsageDetail_20' ) end [2025-04-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866199', 'tblTempVendorCDR_20' ) start [2025-04-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866199', 'tblTempVendorCDR_20' ) end [2025-04-09 01:33:18] Production.INFO: ProcessCDR(1,14866199,1,1,2) [2025-04-09 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866199', 'tblTempUsageDetail_20' ) start [2025-04-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866199', 'tblTempUsageDetail_20' ) end [2025-04-09 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:33:21] Production.INFO: ==11309== Releasing lock... [2025-04-09 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:34:05 [end_date_ymd] => 2025-04-09 01:34:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:34:05' and `end` < '2025-04-09 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-09 01:34:18] Production.INFO: count ==117 [2025-04-09 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:34:05 - End Time 2025-04-09 01:34:05 [2025-04-09 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866204', 'tblTempUsageDetail_20' ) start [2025-04-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866204', 'tblTempUsageDetail_20' ) end [2025-04-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866204', 'tblTempVendorCDR_20' ) start [2025-04-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866204', 'tblTempVendorCDR_20' ) end [2025-04-09 01:34:18] Production.INFO: ProcessCDR(1,14866204,1,1,2) [2025-04-09 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866204', 'tblTempUsageDetail_20' ) start [2025-04-09 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866204', 'tblTempUsageDetail_20' ) end [2025-04-09 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:34:21] Production.INFO: ==11386== Releasing lock... [2025-04-09 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:35:05 [end_date_ymd] => 2025-04-09 01:35:05 [RateCDR] => 1 ) [2025-04-09 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:35:05' and `end` < '2025-04-09 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:35:17] Production.INFO: count ==117 [2025-04-09 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:35:05 - End Time 2025-04-09 01:35:05 [2025-04-09 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866209', 'tblTempUsageDetail_20' ) start [2025-04-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866209', 'tblTempUsageDetail_20' ) end [2025-04-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866209', 'tblTempVendorCDR_20' ) start [2025-04-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866209', 'tblTempVendorCDR_20' ) end [2025-04-09 01:35:18] Production.INFO: ProcessCDR(1,14866209,1,1,2) [2025-04-09 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866209', 'tblTempUsageDetail_20' ) start [2025-04-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866209', 'tblTempUsageDetail_20' ) end [2025-04-09 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:35:21] Production.INFO: ==11456== Releasing lock... [2025-04-09 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:36:05 [end_date_ymd] => 2025-04-09 01:36:05 [RateCDR] => 1 ) [2025-04-09 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:36:05' and `end` < '2025-04-09 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-09 01:36:18] Production.INFO: count ==117 [2025-04-09 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:36:05 - End Time 2025-04-09 01:36:05 [2025-04-09 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866214', 'tblTempUsageDetail_20' ) start [2025-04-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866214', 'tblTempUsageDetail_20' ) end [2025-04-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866214', 'tblTempVendorCDR_20' ) start [2025-04-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866214', 'tblTempVendorCDR_20' ) end [2025-04-09 01:36:18] Production.INFO: ProcessCDR(1,14866214,1,1,2) [2025-04-09 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866214', 'tblTempUsageDetail_20' ) start [2025-04-09 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866214', 'tblTempUsageDetail_20' ) end [2025-04-09 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:36:22] Production.INFO: ==11528== Releasing lock... [2025-04-09 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:37:04 [end_date_ymd] => 2025-04-09 01:37:04 [RateCDR] => 1 ) [2025-04-09 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:37:04' and `end` < '2025-04-09 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:37:17] Production.INFO: count ==117 [2025-04-09 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:37:04 - End Time 2025-04-09 01:37:04 [2025-04-09 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866219', 'tblTempUsageDetail_20' ) start [2025-04-09 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866219', 'tblTempUsageDetail_20' ) end [2025-04-09 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866219', 'tblTempVendorCDR_20' ) start [2025-04-09 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866219', 'tblTempVendorCDR_20' ) end [2025-04-09 01:37:17] Production.INFO: ProcessCDR(1,14866219,1,1,2) [2025-04-09 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866219', 'tblTempUsageDetail_20' ) start [2025-04-09 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866219', 'tblTempUsageDetail_20' ) end [2025-04-09 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:37:20] Production.INFO: ==11638== Releasing lock... [2025-04-09 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:38:05 [end_date_ymd] => 2025-04-09 01:38:05 [RateCDR] => 1 ) [2025-04-09 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:38:05' and `end` < '2025-04-09 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:38:18] Production.INFO: count ==115 [2025-04-09 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:38:05 - End Time 2025-04-09 01:38:05 [2025-04-09 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866224', 'tblTempUsageDetail_20' ) start [2025-04-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866224', 'tblTempUsageDetail_20' ) end [2025-04-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866224', 'tblTempVendorCDR_20' ) start [2025-04-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866224', 'tblTempVendorCDR_20' ) end [2025-04-09 01:38:18] Production.INFO: ProcessCDR(1,14866224,1,1,2) [2025-04-09 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866224', 'tblTempUsageDetail_20' ) start [2025-04-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866224', 'tblTempUsageDetail_20' ) end [2025-04-09 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:38:21] Production.INFO: ==11710== Releasing lock... [2025-04-09 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:39:05 [end_date_ymd] => 2025-04-09 01:39:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:39:05' and `end` < '2025-04-09 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-09 01:39:18] Production.INFO: count ==115 [2025-04-09 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:39:05 - End Time 2025-04-09 01:39:05 [2025-04-09 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866229', 'tblTempUsageDetail_20' ) start [2025-04-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866229', 'tblTempUsageDetail_20' ) end [2025-04-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866229', 'tblTempVendorCDR_20' ) start [2025-04-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866229', 'tblTempVendorCDR_20' ) end [2025-04-09 01:39:18] Production.INFO: ProcessCDR(1,14866229,1,1,2) [2025-04-09 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866229', 'tblTempUsageDetail_20' ) start [2025-04-09 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866229', 'tblTempUsageDetail_20' ) end [2025-04-09 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:39:21] Production.INFO: ==11783== Releasing lock... [2025-04-09 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:40:05 [end_date_ymd] => 2025-04-09 01:40:05 [RateCDR] => 1 ) [2025-04-09 01: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-08 22:40:05' and `end` < '2025-04-09 01: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-09 01:40:18] Production.INFO: count ==123 [2025-04-09 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:40:05 - End Time 2025-04-09 01:40:05 [2025-04-09 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866234', 'tblTempUsageDetail_20' ) start [2025-04-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866234', 'tblTempUsageDetail_20' ) end [2025-04-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866234', 'tblTempVendorCDR_20' ) start [2025-04-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866234', 'tblTempVendorCDR_20' ) end [2025-04-09 01:40:18] Production.INFO: ProcessCDR(1,14866234,1,1,2) [2025-04-09 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866234', 'tblTempUsageDetail_20' ) start [2025-04-09 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866234', 'tblTempUsageDetail_20' ) end [2025-04-09 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:40:21] Production.INFO: ==11855== Releasing lock... [2025-04-09 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:41:05 [end_date_ymd] => 2025-04-09 01:41:05 [RateCDR] => 1 ) [2025-04-09 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:41:05' and `end` < '2025-04-09 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:41:18] Production.INFO: count ==122 [2025-04-09 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:41:05 - End Time 2025-04-09 01:41:05 [2025-04-09 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866240', 'tblTempUsageDetail_20' ) start [2025-04-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866240', 'tblTempUsageDetail_20' ) end [2025-04-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866240', 'tblTempVendorCDR_20' ) start [2025-04-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866240', 'tblTempVendorCDR_20' ) end [2025-04-09 01:41:18] Production.INFO: ProcessCDR(1,14866240,1,1,2) [2025-04-09 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866240', 'tblTempUsageDetail_20' ) start [2025-04-09 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866240', 'tblTempUsageDetail_20' ) end [2025-04-09 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:41:22] Production.INFO: ==11936== Releasing lock... [2025-04-09 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:42:05 [end_date_ymd] => 2025-04-09 01:42:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:42:05' and `end` < '2025-04-09 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-09 01:42:18] Production.INFO: count ==122 [2025-04-09 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:42:05 - End Time 2025-04-09 01:42:05 [2025-04-09 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866245', 'tblTempUsageDetail_20' ) start [2025-04-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866245', 'tblTempUsageDetail_20' ) end [2025-04-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866245', 'tblTempVendorCDR_20' ) start [2025-04-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866245', 'tblTempVendorCDR_20' ) end [2025-04-09 01:42:18] Production.INFO: ProcessCDR(1,14866245,1,1,2) [2025-04-09 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866245', 'tblTempUsageDetail_20' ) start [2025-04-09 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866245', 'tblTempUsageDetail_20' ) end [2025-04-09 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:42:21] Production.INFO: ==12006== Releasing lock... [2025-04-09 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:43:05 [end_date_ymd] => 2025-04-09 01:43:05 [RateCDR] => 1 ) [2025-04-09 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:43:05' and `end` < '2025-04-09 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:43:18] Production.INFO: count ==122 [2025-04-09 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:43:05 - End Time 2025-04-09 01:43:05 [2025-04-09 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866250', 'tblTempUsageDetail_20' ) start [2025-04-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866250', 'tblTempUsageDetail_20' ) end [2025-04-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866250', 'tblTempVendorCDR_20' ) start [2025-04-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866250', 'tblTempVendorCDR_20' ) end [2025-04-09 01:43:18] Production.INFO: ProcessCDR(1,14866250,1,1,2) [2025-04-09 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866250', 'tblTempUsageDetail_20' ) start [2025-04-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866250', 'tblTempUsageDetail_20' ) end [2025-04-09 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:43:22] Production.INFO: ==12077== Releasing lock... [2025-04-09 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:44:05 [end_date_ymd] => 2025-04-09 01:44:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:44:05' and `end` < '2025-04-09 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-09 01:44:18] Production.INFO: count ==123 [2025-04-09 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:44:05 - End Time 2025-04-09 01:44:05 [2025-04-09 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866255', 'tblTempUsageDetail_20' ) start [2025-04-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866255', 'tblTempUsageDetail_20' ) end [2025-04-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866255', 'tblTempVendorCDR_20' ) start [2025-04-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866255', 'tblTempVendorCDR_20' ) end [2025-04-09 01:44:18] Production.INFO: ProcessCDR(1,14866255,1,1,2) [2025-04-09 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866255', 'tblTempUsageDetail_20' ) start [2025-04-09 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866255', 'tblTempUsageDetail_20' ) end [2025-04-09 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:44:21] Production.INFO: ==12150== Releasing lock... [2025-04-09 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:45:05 [end_date_ymd] => 2025-04-09 01:45:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:45:05' and `end` < '2025-04-09 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-09 01:45:18] Production.INFO: count ==123 [2025-04-09 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:45:05 - End Time 2025-04-09 01:45:05 [2025-04-09 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866260', 'tblTempUsageDetail_20' ) start [2025-04-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866260', 'tblTempUsageDetail_20' ) end [2025-04-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866260', 'tblTempVendorCDR_20' ) start [2025-04-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866260', 'tblTempVendorCDR_20' ) end [2025-04-09 01:45:18] Production.INFO: ProcessCDR(1,14866260,1,1,2) [2025-04-09 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866260', 'tblTempUsageDetail_20' ) start [2025-04-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866260', 'tblTempUsageDetail_20' ) end [2025-04-09 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:45:22] Production.INFO: ==12226== Releasing lock... [2025-04-09 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:46:05 [end_date_ymd] => 2025-04-09 01:46:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:46:05' and `end` < '2025-04-09 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-09 01:46:17] Production.INFO: count ==122 [2025-04-09 01:46:17] Production.ERROR: pbx CDR StartTime 2025-04-08 22:46:05 - End Time 2025-04-09 01:46:05 [2025-04-09 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866265', 'tblTempUsageDetail_20' ) start [2025-04-09 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866265', 'tblTempUsageDetail_20' ) end [2025-04-09 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866265', 'tblTempVendorCDR_20' ) start [2025-04-09 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866265', 'tblTempVendorCDR_20' ) end [2025-04-09 01:46:17] Production.INFO: ProcessCDR(1,14866265,1,1,2) [2025-04-09 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866265', 'tblTempUsageDetail_20' ) start [2025-04-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866265', 'tblTempUsageDetail_20' ) end [2025-04-09 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:46:21] Production.INFO: ==12296== Releasing lock... [2025-04-09 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:47:05 [end_date_ymd] => 2025-04-09 01:47:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:47:05' and `end` < '2025-04-09 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-09 01:47:18] Production.INFO: count ==121 [2025-04-09 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:47:05 - End Time 2025-04-09 01:47:05 [2025-04-09 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866270', 'tblTempUsageDetail_20' ) start [2025-04-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866270', 'tblTempUsageDetail_20' ) end [2025-04-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866270', 'tblTempVendorCDR_20' ) start [2025-04-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866270', 'tblTempVendorCDR_20' ) end [2025-04-09 01:47:18] Production.INFO: ProcessCDR(1,14866270,1,1,2) [2025-04-09 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866270', 'tblTempUsageDetail_20' ) start [2025-04-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866270', 'tblTempUsageDetail_20' ) end [2025-04-09 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:47:22] Production.INFO: ==12366== Releasing lock... [2025-04-09 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:48:05 [end_date_ymd] => 2025-04-09 01:48:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:48:05' and `end` < '2025-04-09 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-09 01:48:18] Production.INFO: count ==122 [2025-04-09 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:48:05 - End Time 2025-04-09 01:48:05 [2025-04-09 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866275', 'tblTempUsageDetail_20' ) start [2025-04-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866275', 'tblTempUsageDetail_20' ) end [2025-04-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866275', 'tblTempVendorCDR_20' ) start [2025-04-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866275', 'tblTempVendorCDR_20' ) end [2025-04-09 01:48:18] Production.INFO: ProcessCDR(1,14866275,1,1,2) [2025-04-09 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866275', 'tblTempUsageDetail_20' ) start [2025-04-09 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866275', 'tblTempUsageDetail_20' ) end [2025-04-09 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:48:23] Production.INFO: ==12436== Releasing lock... [2025-04-09 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:49:05 [end_date_ymd] => 2025-04-09 01:49:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:49:05' and `end` < '2025-04-09 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-09 01:49:18] Production.INFO: count ==122 [2025-04-09 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:49:05 - End Time 2025-04-09 01:49:05 [2025-04-09 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866280', 'tblTempUsageDetail_20' ) start [2025-04-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866280', 'tblTempUsageDetail_20' ) end [2025-04-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866280', 'tblTempVendorCDR_20' ) start [2025-04-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866280', 'tblTempVendorCDR_20' ) end [2025-04-09 01:49:18] Production.INFO: ProcessCDR(1,14866280,1,1,2) [2025-04-09 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866280', 'tblTempUsageDetail_20' ) start [2025-04-09 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866280', 'tblTempUsageDetail_20' ) end [2025-04-09 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:49:21] Production.INFO: ==12511== Releasing lock... [2025-04-09 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:50:05 [end_date_ymd] => 2025-04-09 01:50:05 [RateCDR] => 1 ) [2025-04-09 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:50:05' and `end` < '2025-04-09 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:50:18] Production.INFO: count ==122 [2025-04-09 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:50:05 - End Time 2025-04-09 01:50:05 [2025-04-09 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866286', 'tblTempUsageDetail_20' ) start [2025-04-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866286', 'tblTempUsageDetail_20' ) end [2025-04-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866286', 'tblTempVendorCDR_20' ) start [2025-04-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866286', 'tblTempVendorCDR_20' ) end [2025-04-09 01:50:18] Production.INFO: ProcessCDR(1,14866286,1,1,2) [2025-04-09 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866286', 'tblTempUsageDetail_20' ) start [2025-04-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866286', 'tblTempUsageDetail_20' ) end [2025-04-09 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:50:22] Production.INFO: ==12582== Releasing lock... [2025-04-09 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:51:05 [end_date_ymd] => 2025-04-09 01:51:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:51:05' and `end` < '2025-04-09 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-09 01:51:18] Production.INFO: count ==122 [2025-04-09 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:51:05 - End Time 2025-04-09 01:51:05 [2025-04-09 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866291', 'tblTempUsageDetail_20' ) start [2025-04-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866291', 'tblTempUsageDetail_20' ) end [2025-04-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866291', 'tblTempVendorCDR_20' ) start [2025-04-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866291', 'tblTempVendorCDR_20' ) end [2025-04-09 01:51:18] Production.INFO: ProcessCDR(1,14866291,1,1,2) [2025-04-09 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866291', 'tblTempUsageDetail_20' ) start [2025-04-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866291', 'tblTempUsageDetail_20' ) end [2025-04-09 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:51:22] Production.INFO: ==12657== Releasing lock... [2025-04-09 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:52:05 [end_date_ymd] => 2025-04-09 01:52:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:52:05' and `end` < '2025-04-09 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-09 01:52:18] Production.INFO: count ==122 [2025-04-09 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:52:05 - End Time 2025-04-09 01:52:05 [2025-04-09 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866296', 'tblTempUsageDetail_20' ) start [2025-04-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866296', 'tblTempUsageDetail_20' ) end [2025-04-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866296', 'tblTempVendorCDR_20' ) start [2025-04-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866296', 'tblTempVendorCDR_20' ) end [2025-04-09 01:52:18] Production.INFO: ProcessCDR(1,14866296,1,1,2) [2025-04-09 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866296', 'tblTempUsageDetail_20' ) start [2025-04-09 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866296', 'tblTempUsageDetail_20' ) end [2025-04-09 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:52:21] Production.INFO: ==12727== Releasing lock... [2025-04-09 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:53:05 [end_date_ymd] => 2025-04-09 01:53:05 [RateCDR] => 1 ) [2025-04-09 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:53:05' and `end` < '2025-04-09 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:53:18] Production.INFO: count ==123 [2025-04-09 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:53:05 - End Time 2025-04-09 01:53:05 [2025-04-09 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866301', 'tblTempUsageDetail_20' ) start [2025-04-09 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866301', 'tblTempUsageDetail_20' ) end [2025-04-09 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866301', 'tblTempVendorCDR_20' ) start [2025-04-09 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866301', 'tblTempVendorCDR_20' ) end [2025-04-09 01:53:18] Production.INFO: ProcessCDR(1,14866301,1,1,2) [2025-04-09 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866301', 'tblTempUsageDetail_20' ) start [2025-04-09 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866301', 'tblTempUsageDetail_20' ) end [2025-04-09 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:53:23] Production.INFO: ==12839== Releasing lock... [2025-04-09 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:54:05 [end_date_ymd] => 2025-04-09 01:54:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:54:05' and `end` < '2025-04-09 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-09 01:54:17] Production.INFO: count ==123 [2025-04-09 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:54:05 - End Time 2025-04-09 01:54:05 [2025-04-09 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866306', 'tblTempUsageDetail_20' ) start [2025-04-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866306', 'tblTempUsageDetail_20' ) end [2025-04-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866306', 'tblTempVendorCDR_20' ) start [2025-04-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866306', 'tblTempVendorCDR_20' ) end [2025-04-09 01:54:18] Production.INFO: ProcessCDR(1,14866306,1,1,2) [2025-04-09 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866306', 'tblTempUsageDetail_20' ) start [2025-04-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866306', 'tblTempUsageDetail_20' ) end [2025-04-09 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:54:21] Production.INFO: ==12911== Releasing lock... [2025-04-09 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:55:05 [end_date_ymd] => 2025-04-09 01:55:05 [RateCDR] => 1 ) [2025-04-09 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:55:05' and `end` < '2025-04-09 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:55:18] Production.INFO: count ==123 [2025-04-09 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:55:05 - End Time 2025-04-09 01:55:05 [2025-04-09 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866311', 'tblTempUsageDetail_20' ) start [2025-04-09 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866311', 'tblTempUsageDetail_20' ) end [2025-04-09 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866311', 'tblTempVendorCDR_20' ) start [2025-04-09 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866311', 'tblTempVendorCDR_20' ) end [2025-04-09 01:55:18] Production.INFO: ProcessCDR(1,14866311,1,1,2) [2025-04-09 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866311', 'tblTempUsageDetail_20' ) start [2025-04-09 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866311', 'tblTempUsageDetail_20' ) end [2025-04-09 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:55:21] Production.INFO: ==12982== Releasing lock... [2025-04-09 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:56:05 [end_date_ymd] => 2025-04-09 01:56:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:56:05' and `end` < '2025-04-09 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-09 01:56:18] Production.INFO: count ==121 [2025-04-09 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:56:05 - End Time 2025-04-09 01:56:05 [2025-04-09 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866316', 'tblTempUsageDetail_20' ) start [2025-04-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866316', 'tblTempUsageDetail_20' ) end [2025-04-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866316', 'tblTempVendorCDR_20' ) start [2025-04-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866316', 'tblTempVendorCDR_20' ) end [2025-04-09 01:56:18] Production.INFO: ProcessCDR(1,14866316,1,1,2) [2025-04-09 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866316', 'tblTempUsageDetail_20' ) start [2025-04-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866316', 'tblTempUsageDetail_20' ) end [2025-04-09 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:56:21] Production.INFO: ==13053== Releasing lock... [2025-04-09 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:57:05 [end_date_ymd] => 2025-04-09 01:57:05 [RateCDR] => 1 ) [2025-04-09 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 22:57:05' and `end` < '2025-04-09 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 01:57:18] Production.INFO: count ==121 [2025-04-09 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:57:05 - End Time 2025-04-09 01:57:05 [2025-04-09 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866321', 'tblTempUsageDetail_20' ) start [2025-04-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866321', 'tblTempUsageDetail_20' ) end [2025-04-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866321', 'tblTempVendorCDR_20' ) start [2025-04-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866321', 'tblTempVendorCDR_20' ) end [2025-04-09 01:57:18] Production.INFO: ProcessCDR(1,14866321,1,1,2) [2025-04-09 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866321', 'tblTempUsageDetail_20' ) start [2025-04-09 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866321', 'tblTempUsageDetail_20' ) end [2025-04-09 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:57:21] Production.INFO: ==13124== Releasing lock... [2025-04-09 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:58:05 [end_date_ymd] => 2025-04-09 01:58:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:58:05' and `end` < '2025-04-09 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-09 01:58:18] Production.INFO: count ==123 [2025-04-09 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:58:05 - End Time 2025-04-09 01:58:05 [2025-04-09 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866326', 'tblTempUsageDetail_20' ) start [2025-04-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866326', 'tblTempUsageDetail_20' ) end [2025-04-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866326', 'tblTempVendorCDR_20' ) start [2025-04-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866326', 'tblTempVendorCDR_20' ) end [2025-04-09 01:58:18] Production.INFO: ProcessCDR(1,14866326,1,1,2) [2025-04-09 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866326', 'tblTempUsageDetail_20' ) start [2025-04-09 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866326', 'tblTempUsageDetail_20' ) end [2025-04-09 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:58:21] Production.INFO: ==13196== Releasing lock... [2025-04-09 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 22:59:05 [end_date_ymd] => 2025-04-09 01:59:05 [RateCDR] => 1 ) [2025-04-09 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-08 22:59:05' and `end` < '2025-04-09 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-09 01:59:18] Production.INFO: count ==123 [2025-04-09 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 22:59:05 - End Time 2025-04-09 01:59:05 [2025-04-09 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866331', 'tblTempUsageDetail_20' ) start [2025-04-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866331', 'tblTempUsageDetail_20' ) end [2025-04-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866331', 'tblTempVendorCDR_20' ) start [2025-04-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866331', 'tblTempVendorCDR_20' ) end [2025-04-09 01:59:18] Production.INFO: ProcessCDR(1,14866331,1,1,2) [2025-04-09 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866331', 'tblTempUsageDetail_20' ) start [2025-04-09 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866331', 'tblTempUsageDetail_20' ) end [2025-04-09 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 01:59:21] Production.INFO: ==13268== Releasing lock... [2025-04-09 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 01:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:00:05 [end_date_ymd] => 2025-04-09 02:00:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:00:05' and `end` < '2025-04-09 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-09 02:00:18] Production.INFO: count ==127 [2025-04-09 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:00:05 - End Time 2025-04-09 02:00:05 [2025-04-09 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866336', 'tblTempUsageDetail_20' ) start [2025-04-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866336', 'tblTempUsageDetail_20' ) end [2025-04-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866336', 'tblTempVendorCDR_20' ) start [2025-04-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866336', 'tblTempVendorCDR_20' ) end [2025-04-09 02:00:18] Production.INFO: ProcessCDR(1,14866336,1,1,2) [2025-04-09 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866336', 'tblTempUsageDetail_20' ) start [2025-04-09 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866336', 'tblTempUsageDetail_20' ) end [2025-04-09 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:00:21] Production.INFO: ==13348== Releasing lock... [2025-04-09 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:01:06 [end_date_ymd] => 2025-04-09 02:01:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:01:06' and `end` < '2025-04-09 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-09 02:01:18] Production.INFO: count ==127 [2025-04-09 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:01:06 - End Time 2025-04-09 02:01:06 [2025-04-09 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866342', 'tblTempUsageDetail_20' ) start [2025-04-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866342', 'tblTempUsageDetail_20' ) end [2025-04-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866342', 'tblTempVendorCDR_20' ) start [2025-04-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866342', 'tblTempVendorCDR_20' ) end [2025-04-09 02:01:18] Production.INFO: ProcessCDR(1,14866342,1,1,2) [2025-04-09 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866342', 'tblTempUsageDetail_20' ) start [2025-04-09 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866342', 'tblTempUsageDetail_20' ) end [2025-04-09 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:01:22] Production.INFO: ==13440== Releasing lock... [2025-04-09 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:02:06 [end_date_ymd] => 2025-04-09 02:02:06 [RateCDR] => 1 ) [2025-04-09 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:02:06' and `end` < '2025-04-09 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:02:18] Production.INFO: count ==127 [2025-04-09 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:02:06 - End Time 2025-04-09 02:02:06 [2025-04-09 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866347', 'tblTempUsageDetail_20' ) start [2025-04-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866347', 'tblTempUsageDetail_20' ) end [2025-04-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866347', 'tblTempVendorCDR_20' ) start [2025-04-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866347', 'tblTempVendorCDR_20' ) end [2025-04-09 02:02:18] Production.INFO: ProcessCDR(1,14866347,1,1,2) [2025-04-09 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866347', 'tblTempUsageDetail_20' ) start [2025-04-09 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866347', 'tblTempUsageDetail_20' ) end [2025-04-09 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:02:22] Production.INFO: ==13594== Releasing lock... [2025-04-09 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:03:05 [end_date_ymd] => 2025-04-09 02:03:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:03:05' and `end` < '2025-04-09 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-09 02:03:18] Production.INFO: count ==127 [2025-04-09 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:03:05 - End Time 2025-04-09 02:03:05 [2025-04-09 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866352', 'tblTempUsageDetail_20' ) start [2025-04-09 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866352', 'tblTempUsageDetail_20' ) end [2025-04-09 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866352', 'tblTempVendorCDR_20' ) start [2025-04-09 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866352', 'tblTempVendorCDR_20' ) end [2025-04-09 02:03:18] Production.INFO: ProcessCDR(1,14866352,1,1,2) [2025-04-09 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866352', 'tblTempUsageDetail_20' ) start [2025-04-09 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866352', 'tblTempUsageDetail_20' ) end [2025-04-09 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:03:21] Production.INFO: ==13664== Releasing lock... [2025-04-09 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:04:05 [end_date_ymd] => 2025-04-09 02:04:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:04:05' and `end` < '2025-04-09 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-09 02:04:17] Production.INFO: count ==127 [2025-04-09 02:04:17] Production.ERROR: pbx CDR StartTime 2025-04-08 23:04:05 - End Time 2025-04-09 02:04:05 [2025-04-09 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866357', 'tblTempUsageDetail_20' ) start [2025-04-09 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866357', 'tblTempUsageDetail_20' ) end [2025-04-09 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866357', 'tblTempVendorCDR_20' ) start [2025-04-09 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866357', 'tblTempVendorCDR_20' ) end [2025-04-09 02:04:18] Production.INFO: ProcessCDR(1,14866357,1,1,2) [2025-04-09 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866357', 'tblTempUsageDetail_20' ) start [2025-04-09 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866357', 'tblTempUsageDetail_20' ) end [2025-04-09 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:04:21] Production.INFO: ==13735== Releasing lock... [2025-04-09 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-09 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:05:05 [end_date_ymd] => 2025-04-09 02:05:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:05:05' and `end` < '2025-04-09 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-09 02:05:18] Production.INFO: count ==127 [2025-04-09 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:05:05 - End Time 2025-04-09 02:05:05 [2025-04-09 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866362', 'tblTempUsageDetail_20' ) start [2025-04-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866362', 'tblTempUsageDetail_20' ) end [2025-04-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866362', 'tblTempVendorCDR_20' ) start [2025-04-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866362', 'tblTempVendorCDR_20' ) end [2025-04-09 02:05:18] Production.INFO: ProcessCDR(1,14866362,1,1,2) [2025-04-09 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866362', 'tblTempUsageDetail_20' ) start [2025-04-09 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866362', 'tblTempUsageDetail_20' ) end [2025-04-09 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:05:21] Production.INFO: ==13808== Releasing lock... [2025-04-09 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:06:05 [end_date_ymd] => 2025-04-09 02:06:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:06:05' and `end` < '2025-04-09 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-09 02:06:18] Production.INFO: count ==127 [2025-04-09 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:06:05 - End Time 2025-04-09 02:06:05 [2025-04-09 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866367', 'tblTempUsageDetail_20' ) start [2025-04-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866367', 'tblTempUsageDetail_20' ) end [2025-04-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866367', 'tblTempVendorCDR_20' ) start [2025-04-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866367', 'tblTempVendorCDR_20' ) end [2025-04-09 02:06:18] Production.INFO: ProcessCDR(1,14866367,1,1,2) [2025-04-09 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866367', 'tblTempUsageDetail_20' ) start [2025-04-09 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866367', 'tblTempUsageDetail_20' ) end [2025-04-09 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:06:21] Production.INFO: ==13877== Releasing lock... [2025-04-09 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:07:05 [end_date_ymd] => 2025-04-09 02:07:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:07:05' and `end` < '2025-04-09 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-09 02:07:18] Production.INFO: count ==127 [2025-04-09 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:07:05 - End Time 2025-04-09 02:07:05 [2025-04-09 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866372', 'tblTempUsageDetail_20' ) start [2025-04-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866372', 'tblTempUsageDetail_20' ) end [2025-04-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866372', 'tblTempVendorCDR_20' ) start [2025-04-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866372', 'tblTempVendorCDR_20' ) end [2025-04-09 02:07:18] Production.INFO: ProcessCDR(1,14866372,1,1,2) [2025-04-09 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866372', 'tblTempUsageDetail_20' ) start [2025-04-09 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866372', 'tblTempUsageDetail_20' ) end [2025-04-09 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:07:21] Production.INFO: ==13946== Releasing lock... [2025-04-09 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:08:05 [end_date_ymd] => 2025-04-09 02:08:05 [RateCDR] => 1 ) [2025-04-09 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:08:05' and `end` < '2025-04-09 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:08:18] Production.INFO: count ==127 [2025-04-09 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:08:05 - End Time 2025-04-09 02:08:05 [2025-04-09 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866377', 'tblTempUsageDetail_20' ) start [2025-04-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866377', 'tblTempUsageDetail_20' ) end [2025-04-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866377', 'tblTempVendorCDR_20' ) start [2025-04-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866377', 'tblTempVendorCDR_20' ) end [2025-04-09 02:08:18] Production.INFO: ProcessCDR(1,14866377,1,1,2) [2025-04-09 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866377', 'tblTempUsageDetail_20' ) start [2025-04-09 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866377', 'tblTempUsageDetail_20' ) end [2025-04-09 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:08:21] Production.INFO: ==14017== Releasing lock... [2025-04-09 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:09:05 [end_date_ymd] => 2025-04-09 02:09:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:09:05' and `end` < '2025-04-09 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-09 02:09:18] Production.INFO: count ==127 [2025-04-09 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:09:05 - End Time 2025-04-09 02:09:05 [2025-04-09 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866382', 'tblTempUsageDetail_20' ) start [2025-04-09 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866382', 'tblTempUsageDetail_20' ) end [2025-04-09 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866382', 'tblTempVendorCDR_20' ) start [2025-04-09 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866382', 'tblTempVendorCDR_20' ) end [2025-04-09 02:09:18] Production.INFO: ProcessCDR(1,14866382,1,1,2) [2025-04-09 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866382', 'tblTempUsageDetail_20' ) start [2025-04-09 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866382', 'tblTempUsageDetail_20' ) end [2025-04-09 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:09:21] Production.INFO: ==14089== Releasing lock... [2025-04-09 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:10:06 [end_date_ymd] => 2025-04-09 02:10:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:10:06' and `end` < '2025-04-09 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-09 02:10:19] Production.INFO: count ==129 [2025-04-09 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:10:06 - End Time 2025-04-09 02:10:06 [2025-04-09 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866388', 'tblTempUsageDetail_20' ) start [2025-04-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866388', 'tblTempUsageDetail_20' ) end [2025-04-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866388', 'tblTempVendorCDR_20' ) start [2025-04-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866388', 'tblTempVendorCDR_20' ) end [2025-04-09 02:10:19] Production.INFO: ProcessCDR(1,14866388,1,1,2) [2025-04-09 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866388', 'tblTempUsageDetail_20' ) start [2025-04-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866388', 'tblTempUsageDetail_20' ) end [2025-04-09 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:10:22] Production.INFO: ==14161== Releasing lock... [2025-04-09 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:11:05 [end_date_ymd] => 2025-04-09 02:11:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:11:05' and `end` < '2025-04-09 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-09 02:11:17] Production.INFO: count ==129 [2025-04-09 02:11:17] Production.ERROR: pbx CDR StartTime 2025-04-08 23:11:05 - End Time 2025-04-09 02:11:05 [2025-04-09 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866393', 'tblTempUsageDetail_20' ) start [2025-04-09 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866393', 'tblTempUsageDetail_20' ) end [2025-04-09 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866393', 'tblTempVendorCDR_20' ) start [2025-04-09 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866393', 'tblTempVendorCDR_20' ) end [2025-04-09 02:11:17] Production.INFO: ProcessCDR(1,14866393,1,1,2) [2025-04-09 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866393', 'tblTempUsageDetail_20' ) start [2025-04-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866393', 'tblTempUsageDetail_20' ) end [2025-04-09 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:11:21] Production.INFO: ==14233== Releasing lock... [2025-04-09 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:12:05 [end_date_ymd] => 2025-04-09 02:12:05 [RateCDR] => 1 ) [2025-04-09 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:12:05' and `end` < '2025-04-09 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:12:18] Production.INFO: count ==127 [2025-04-09 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:12:05 - End Time 2025-04-09 02:12:05 [2025-04-09 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866398', 'tblTempUsageDetail_20' ) start [2025-04-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866398', 'tblTempUsageDetail_20' ) end [2025-04-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866398', 'tblTempVendorCDR_20' ) start [2025-04-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866398', 'tblTempVendorCDR_20' ) end [2025-04-09 02:12:18] Production.INFO: ProcessCDR(1,14866398,1,1,2) [2025-04-09 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866398', 'tblTempUsageDetail_20' ) start [2025-04-09 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866398', 'tblTempUsageDetail_20' ) end [2025-04-09 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:12:21] Production.INFO: ==14304== Releasing lock... [2025-04-09 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:13:05 [end_date_ymd] => 2025-04-09 02:13:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:13:05' and `end` < '2025-04-09 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-09 02:13:18] Production.INFO: count ==127 [2025-04-09 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:13:05 - End Time 2025-04-09 02:13:05 [2025-04-09 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866403', 'tblTempUsageDetail_20' ) start [2025-04-09 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866403', 'tblTempUsageDetail_20' ) end [2025-04-09 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866403', 'tblTempVendorCDR_20' ) start [2025-04-09 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866403', 'tblTempVendorCDR_20' ) end [2025-04-09 02:13:18] Production.INFO: ProcessCDR(1,14866403,1,1,2) [2025-04-09 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866403', 'tblTempUsageDetail_20' ) start [2025-04-09 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866403', 'tblTempUsageDetail_20' ) end [2025-04-09 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:13:21] Production.INFO: ==14375== Releasing lock... [2025-04-09 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:14:05 [end_date_ymd] => 2025-04-09 02:14:05 [RateCDR] => 1 ) [2025-04-09 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:14:05' and `end` < '2025-04-09 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:14:18] Production.INFO: count ==127 [2025-04-09 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:14:05 - End Time 2025-04-09 02:14:05 [2025-04-09 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866408', 'tblTempUsageDetail_20' ) start [2025-04-09 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866408', 'tblTempUsageDetail_20' ) end [2025-04-09 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866408', 'tblTempVendorCDR_20' ) start [2025-04-09 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866408', 'tblTempVendorCDR_20' ) end [2025-04-09 02:14:18] Production.INFO: ProcessCDR(1,14866408,1,1,2) [2025-04-09 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866408', 'tblTempUsageDetail_20' ) start [2025-04-09 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866408', 'tblTempUsageDetail_20' ) end [2025-04-09 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:14:21] Production.INFO: ==14450== Releasing lock... [2025-04-09 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:15:05 [end_date_ymd] => 2025-04-09 02:15:05 [RateCDR] => 1 ) [2025-04-09 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:15:05' and `end` < '2025-04-09 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:15:18] Production.INFO: count ==127 [2025-04-09 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:15:05 - End Time 2025-04-09 02:15:05 [2025-04-09 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866413', 'tblTempUsageDetail_20' ) start [2025-04-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866413', 'tblTempUsageDetail_20' ) end [2025-04-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866413', 'tblTempVendorCDR_20' ) start [2025-04-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866413', 'tblTempVendorCDR_20' ) end [2025-04-09 02:15:18] Production.INFO: ProcessCDR(1,14866413,1,1,2) [2025-04-09 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866413', 'tblTempUsageDetail_20' ) start [2025-04-09 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866413', 'tblTempUsageDetail_20' ) end [2025-04-09 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:15:21] Production.INFO: ==14520== Releasing lock... [2025-04-09 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:16:05 [end_date_ymd] => 2025-04-09 02:16:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:16:05' and `end` < '2025-04-09 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-09 02:16:18] Production.INFO: count ==127 [2025-04-09 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:16:05 - End Time 2025-04-09 02:16:05 [2025-04-09 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866418', 'tblTempUsageDetail_20' ) start [2025-04-09 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866418', 'tblTempUsageDetail_20' ) end [2025-04-09 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866418', 'tblTempVendorCDR_20' ) start [2025-04-09 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866418', 'tblTempVendorCDR_20' ) end [2025-04-09 02:16:18] Production.INFO: ProcessCDR(1,14866418,1,1,2) [2025-04-09 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866418', 'tblTempUsageDetail_20' ) start [2025-04-09 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866418', 'tblTempUsageDetail_20' ) end [2025-04-09 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:16:21] Production.INFO: ==14630== Releasing lock... [2025-04-09 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:17:05 [end_date_ymd] => 2025-04-09 02:17:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:17:05' and `end` < '2025-04-09 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-09 02:17:18] Production.INFO: count ==127 [2025-04-09 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:17:05 - End Time 2025-04-09 02:17:05 [2025-04-09 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866423', 'tblTempUsageDetail_20' ) start [2025-04-09 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866423', 'tblTempUsageDetail_20' ) end [2025-04-09 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866423', 'tblTempVendorCDR_20' ) start [2025-04-09 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866423', 'tblTempVendorCDR_20' ) end [2025-04-09 02:17:18] Production.INFO: ProcessCDR(1,14866423,1,1,2) [2025-04-09 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866423', 'tblTempUsageDetail_20' ) start [2025-04-09 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866423', 'tblTempUsageDetail_20' ) end [2025-04-09 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:17:21] Production.INFO: ==14700== Releasing lock... [2025-04-09 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:18:05 [end_date_ymd] => 2025-04-09 02:18:05 [RateCDR] => 1 ) [2025-04-09 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:18:05' and `end` < '2025-04-09 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:18:18] Production.INFO: count ==127 [2025-04-09 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:18:05 - End Time 2025-04-09 02:18:05 [2025-04-09 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866428', 'tblTempUsageDetail_20' ) start [2025-04-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866428', 'tblTempUsageDetail_20' ) end [2025-04-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866428', 'tblTempVendorCDR_20' ) start [2025-04-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866428', 'tblTempVendorCDR_20' ) end [2025-04-09 02:18:18] Production.INFO: ProcessCDR(1,14866428,1,1,2) [2025-04-09 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866428', 'tblTempUsageDetail_20' ) start [2025-04-09 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866428', 'tblTempUsageDetail_20' ) end [2025-04-09 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:18:21] Production.INFO: ==14771== Releasing lock... [2025-04-09 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:19:05 [end_date_ymd] => 2025-04-09 02:19:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:19:05' and `end` < '2025-04-09 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-09 02:19:18] Production.INFO: count ==127 [2025-04-09 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:19:05 - End Time 2025-04-09 02:19:05 [2025-04-09 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866433', 'tblTempUsageDetail_20' ) start [2025-04-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866433', 'tblTempUsageDetail_20' ) end [2025-04-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866433', 'tblTempVendorCDR_20' ) start [2025-04-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866433', 'tblTempVendorCDR_20' ) end [2025-04-09 02:19:18] Production.INFO: ProcessCDR(1,14866433,1,1,2) [2025-04-09 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866433', 'tblTempUsageDetail_20' ) start [2025-04-09 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866433', 'tblTempUsageDetail_20' ) end [2025-04-09 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:19:21] Production.INFO: ==14843== Releasing lock... [2025-04-09 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:20:06 [end_date_ymd] => 2025-04-09 02:20:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:20:06' and `end` < '2025-04-09 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-09 02:20:18] Production.INFO: count ==136 [2025-04-09 02:20:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:20:06 - End Time 2025-04-09 02:20:06 [2025-04-09 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866438', 'tblTempUsageDetail_20' ) start [2025-04-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866438', 'tblTempUsageDetail_20' ) end [2025-04-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866438', 'tblTempVendorCDR_20' ) start [2025-04-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866438', 'tblTempVendorCDR_20' ) end [2025-04-09 02:20:18] Production.INFO: ProcessCDR(1,14866438,1,1,2) [2025-04-09 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866438', 'tblTempUsageDetail_20' ) start [2025-04-09 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866438', 'tblTempUsageDetail_20' ) end [2025-04-09 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:20:23] Production.INFO: ==14923== Releasing lock... [2025-04-09 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:21:05 [end_date_ymd] => 2025-04-09 02:21:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:21:05' and `end` < '2025-04-09 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-09 02:21:18] Production.INFO: count ==136 [2025-04-09 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:21:05 - End Time 2025-04-09 02:21:05 [2025-04-09 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866444', 'tblTempUsageDetail_20' ) start [2025-04-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866444', 'tblTempUsageDetail_20' ) end [2025-04-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866444', 'tblTempVendorCDR_20' ) start [2025-04-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866444', 'tblTempVendorCDR_20' ) end [2025-04-09 02:21:18] Production.INFO: ProcessCDR(1,14866444,1,1,2) [2025-04-09 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866444', 'tblTempUsageDetail_20' ) start [2025-04-09 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866444', 'tblTempUsageDetail_20' ) end [2025-04-09 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:21:21] Production.INFO: ==14995== Releasing lock... [2025-04-09 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:22:05 [end_date_ymd] => 2025-04-09 02:22:05 [RateCDR] => 1 ) [2025-04-09 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:22:05' and `end` < '2025-04-09 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:22:18] Production.INFO: count ==136 [2025-04-09 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:22:05 - End Time 2025-04-09 02:22:05 [2025-04-09 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866449', 'tblTempUsageDetail_20' ) start [2025-04-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866449', 'tblTempUsageDetail_20' ) end [2025-04-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866449', 'tblTempVendorCDR_20' ) start [2025-04-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866449', 'tblTempVendorCDR_20' ) end [2025-04-09 02:22:18] Production.INFO: ProcessCDR(1,14866449,1,1,2) [2025-04-09 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866449', 'tblTempUsageDetail_20' ) start [2025-04-09 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866449', 'tblTempUsageDetail_20' ) end [2025-04-09 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:22:21] Production.INFO: ==15086== Releasing lock... [2025-04-09 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:23:06 [end_date_ymd] => 2025-04-09 02:23:06 [RateCDR] => 1 ) [2025-04-09 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:23:06' and `end` < '2025-04-09 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:23:18] Production.INFO: count ==136 [2025-04-09 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:23:06 - End Time 2025-04-09 02:23:06 [2025-04-09 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866454', 'tblTempUsageDetail_20' ) start [2025-04-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866454', 'tblTempUsageDetail_20' ) end [2025-04-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866454', 'tblTempVendorCDR_20' ) start [2025-04-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866454', 'tblTempVendorCDR_20' ) end [2025-04-09 02:23:18] Production.INFO: ProcessCDR(1,14866454,1,1,2) [2025-04-09 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866454', 'tblTempUsageDetail_20' ) start [2025-04-09 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866454', 'tblTempUsageDetail_20' ) end [2025-04-09 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:23:22] Production.INFO: ==15213== Releasing lock... [2025-04-09 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:24:05 [end_date_ymd] => 2025-04-09 02:24:05 [RateCDR] => 1 ) [2025-04-09 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:24:05' and `end` < '2025-04-09 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:24:18] Production.INFO: count ==136 [2025-04-09 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:24:05 - End Time 2025-04-09 02:24:05 [2025-04-09 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866459', 'tblTempUsageDetail_20' ) start [2025-04-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866459', 'tblTempUsageDetail_20' ) end [2025-04-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866459', 'tblTempVendorCDR_20' ) start [2025-04-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866459', 'tblTempVendorCDR_20' ) end [2025-04-09 02:24:18] Production.INFO: ProcessCDR(1,14866459,1,1,2) [2025-04-09 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866459', 'tblTempUsageDetail_20' ) start [2025-04-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866459', 'tblTempUsageDetail_20' ) end [2025-04-09 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:24:21] Production.INFO: ==15336== Releasing lock... [2025-04-09 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:25:05 [end_date_ymd] => 2025-04-09 02:25:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:25:05' and `end` < '2025-04-09 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-09 02:25:18] Production.INFO: count ==136 [2025-04-09 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:25:05 - End Time 2025-04-09 02:25:05 [2025-04-09 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866464', 'tblTempUsageDetail_20' ) start [2025-04-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866464', 'tblTempUsageDetail_20' ) end [2025-04-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866464', 'tblTempVendorCDR_20' ) start [2025-04-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866464', 'tblTempVendorCDR_20' ) end [2025-04-09 02:25:18] Production.INFO: ProcessCDR(1,14866464,1,1,2) [2025-04-09 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866464', 'tblTempUsageDetail_20' ) start [2025-04-09 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866464', 'tblTempUsageDetail_20' ) end [2025-04-09 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:25:22] Production.INFO: ==15460== Releasing lock... [2025-04-09 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:26:05 [end_date_ymd] => 2025-04-09 02:26:05 [RateCDR] => 1 ) [2025-04-09 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:26:05' and `end` < '2025-04-09 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:26:18] Production.INFO: count ==136 [2025-04-09 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:26:05 - End Time 2025-04-09 02:26:05 [2025-04-09 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866469', 'tblTempUsageDetail_20' ) start [2025-04-09 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866469', 'tblTempUsageDetail_20' ) end [2025-04-09 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866469', 'tblTempVendorCDR_20' ) start [2025-04-09 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866469', 'tblTempVendorCDR_20' ) end [2025-04-09 02:26:18] Production.INFO: ProcessCDR(1,14866469,1,1,2) [2025-04-09 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866469', 'tblTempUsageDetail_20' ) start [2025-04-09 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866469', 'tblTempUsageDetail_20' ) end [2025-04-09 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:26:21] Production.INFO: ==15584== Releasing lock... [2025-04-09 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:27:05 [end_date_ymd] => 2025-04-09 02:27:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:27:05' and `end` < '2025-04-09 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-09 02:27:18] Production.INFO: count ==136 [2025-04-09 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:27:05 - End Time 2025-04-09 02:27:05 [2025-04-09 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866474', 'tblTempUsageDetail_20' ) start [2025-04-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866474', 'tblTempUsageDetail_20' ) end [2025-04-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866474', 'tblTempVendorCDR_20' ) start [2025-04-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866474', 'tblTempVendorCDR_20' ) end [2025-04-09 02:27:18] Production.INFO: ProcessCDR(1,14866474,1,1,2) [2025-04-09 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866474', 'tblTempUsageDetail_20' ) start [2025-04-09 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866474', 'tblTempUsageDetail_20' ) end [2025-04-09 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:27:21] Production.INFO: ==15710== Releasing lock... [2025-04-09 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:28:04 [end_date_ymd] => 2025-04-09 02:28:04 [RateCDR] => 1 ) [2025-04-09 02:28: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-08 23:28:04' and `end` < '2025-04-09 02:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:28:17] Production.INFO: count ==135 [2025-04-09 02:28:17] Production.ERROR: pbx CDR StartTime 2025-04-08 23:28:04 - End Time 2025-04-09 02:28:04 [2025-04-09 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866479', 'tblTempUsageDetail_20' ) start [2025-04-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866479', 'tblTempUsageDetail_20' ) end [2025-04-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866479', 'tblTempVendorCDR_20' ) start [2025-04-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866479', 'tblTempVendorCDR_20' ) end [2025-04-09 02:28:17] Production.INFO: ProcessCDR(1,14866479,1,1,2) [2025-04-09 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866479', 'tblTempUsageDetail_20' ) start [2025-04-09 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866479', 'tblTempUsageDetail_20' ) end [2025-04-09 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:28:21] Production.INFO: ==15832== Releasing lock... [2025-04-09 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:29:05 [end_date_ymd] => 2025-04-09 02:29:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:29:05' and `end` < '2025-04-09 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-09 02:29:18] Production.INFO: count ==135 [2025-04-09 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:29:05 - End Time 2025-04-09 02:29:05 [2025-04-09 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866484', 'tblTempUsageDetail_20' ) start [2025-04-09 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866484', 'tblTempUsageDetail_20' ) end [2025-04-09 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866484', 'tblTempVendorCDR_20' ) start [2025-04-09 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866484', 'tblTempVendorCDR_20' ) end [2025-04-09 02:29:18] Production.INFO: ProcessCDR(1,14866484,1,1,2) [2025-04-09 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866484', 'tblTempUsageDetail_20' ) start [2025-04-09 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866484', 'tblTempUsageDetail_20' ) end [2025-04-09 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:29:21] Production.INFO: ==15954== Releasing lock... [2025-04-09 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:30:07 [end_date_ymd] => 2025-04-09 02:30:07 [RateCDR] => 1 ) [2025-04-09 02: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-08 23:30:07' and `end` < '2025-04-09 02: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-09 02:30:19] Production.INFO: count ==145 [2025-04-09 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:30:07 - End Time 2025-04-09 02:30:07 [2025-04-09 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866490', 'tblTempUsageDetail_20' ) start [2025-04-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866490', 'tblTempUsageDetail_20' ) end [2025-04-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866490', 'tblTempVendorCDR_20' ) start [2025-04-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866490', 'tblTempVendorCDR_20' ) end [2025-04-09 02:30:19] Production.INFO: ProcessCDR(1,14866490,1,1,2) [2025-04-09 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866490', 'tblTempUsageDetail_20' ) start [2025-04-09 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866490', 'tblTempUsageDetail_20' ) end [2025-04-09 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:30:23] Production.INFO: ==16083== Releasing lock... [2025-04-09 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:31:05 [end_date_ymd] => 2025-04-09 02:31:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:31:05' and `end` < '2025-04-09 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-09 02:31:18] Production.INFO: count ==145 [2025-04-09 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:31:05 - End Time 2025-04-09 02:31:05 [2025-04-09 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866495', 'tblTempUsageDetail_20' ) start [2025-04-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866495', 'tblTempUsageDetail_20' ) end [2025-04-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866495', 'tblTempVendorCDR_20' ) start [2025-04-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866495', 'tblTempVendorCDR_20' ) end [2025-04-09 02:31:18] Production.INFO: ProcessCDR(1,14866495,1,1,2) [2025-04-09 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866495', 'tblTempUsageDetail_20' ) start [2025-04-09 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866495', 'tblTempUsageDetail_20' ) end [2025-04-09 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:31:22] Production.INFO: ==16244== Releasing lock... [2025-04-09 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:32:06 [end_date_ymd] => 2025-04-09 02:32:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:32:06' and `end` < '2025-04-09 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-09 02:32:19] Production.INFO: count ==145 [2025-04-09 02:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:32:06 - End Time 2025-04-09 02:32:06 [2025-04-09 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866500', 'tblTempUsageDetail_20' ) start [2025-04-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866500', 'tblTempUsageDetail_20' ) end [2025-04-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866500', 'tblTempVendorCDR_20' ) start [2025-04-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866500', 'tblTempVendorCDR_20' ) end [2025-04-09 02:32:19] Production.INFO: ProcessCDR(1,14866500,1,1,2) [2025-04-09 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866500', 'tblTempUsageDetail_20' ) start [2025-04-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866500', 'tblTempUsageDetail_20' ) end [2025-04-09 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:32:22] Production.INFO: ==16341== Releasing lock... [2025-04-09 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:33:05 [end_date_ymd] => 2025-04-09 02:33:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:33:05' and `end` < '2025-04-09 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-09 02:33:18] Production.INFO: count ==145 [2025-04-09 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:33:05 - End Time 2025-04-09 02:33:05 [2025-04-09 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866505', 'tblTempUsageDetail_20' ) start [2025-04-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866505', 'tblTempUsageDetail_20' ) end [2025-04-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866505', 'tblTempVendorCDR_20' ) start [2025-04-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866505', 'tblTempVendorCDR_20' ) end [2025-04-09 02:33:18] Production.INFO: ProcessCDR(1,14866505,1,1,2) [2025-04-09 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866505', 'tblTempUsageDetail_20' ) start [2025-04-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866505', 'tblTempUsageDetail_20' ) end [2025-04-09 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:33:21] Production.INFO: ==16412== Releasing lock... [2025-04-09 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:34:06 [end_date_ymd] => 2025-04-09 02:34:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:34:06' and `end` < '2025-04-09 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-09 02:34:18] Production.INFO: count ==134 [2025-04-09 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:34:06 - End Time 2025-04-09 02:34:06 [2025-04-09 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866510', 'tblTempUsageDetail_20' ) start [2025-04-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866510', 'tblTempUsageDetail_20' ) end [2025-04-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866510', 'tblTempVendorCDR_20' ) start [2025-04-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866510', 'tblTempVendorCDR_20' ) end [2025-04-09 02:34:18] Production.INFO: ProcessCDR(1,14866510,1,1,2) [2025-04-09 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866510', 'tblTempUsageDetail_20' ) start [2025-04-09 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866510', 'tblTempUsageDetail_20' ) end [2025-04-09 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:34:22] Production.INFO: ==16487== Releasing lock... [2025-04-09 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:35:05 [end_date_ymd] => 2025-04-09 02:35:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:35:05' and `end` < '2025-04-09 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-09 02:35:18] Production.INFO: count ==135 [2025-04-09 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:35:05 - End Time 2025-04-09 02:35:05 [2025-04-09 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866515', 'tblTempUsageDetail_20' ) start [2025-04-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866515', 'tblTempUsageDetail_20' ) end [2025-04-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866515', 'tblTempVendorCDR_20' ) start [2025-04-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866515', 'tblTempVendorCDR_20' ) end [2025-04-09 02:35:18] Production.INFO: ProcessCDR(1,14866515,1,1,2) [2025-04-09 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866515', 'tblTempUsageDetail_20' ) start [2025-04-09 02:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866515', 'tblTempUsageDetail_20' ) end [2025-04-09 02:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:35:24] Production.INFO: ==16557== Releasing lock... [2025-04-09 02:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:35:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:36:06 [end_date_ymd] => 2025-04-09 02:36:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:36:06' and `end` < '2025-04-09 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-09 02:36:18] Production.INFO: count ==135 [2025-04-09 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:36:06 - End Time 2025-04-09 02:36:06 [2025-04-09 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866520', 'tblTempUsageDetail_20' ) start [2025-04-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866520', 'tblTempUsageDetail_20' ) end [2025-04-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866520', 'tblTempVendorCDR_20' ) start [2025-04-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866520', 'tblTempVendorCDR_20' ) end [2025-04-09 02:36:19] Production.INFO: ProcessCDR(1,14866520,1,1,2) [2025-04-09 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866520', 'tblTempUsageDetail_20' ) start [2025-04-09 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866520', 'tblTempUsageDetail_20' ) end [2025-04-09 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:36:22] Production.INFO: ==16628== Releasing lock... [2025-04-09 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:37:06 [end_date_ymd] => 2025-04-09 02:37:06 [RateCDR] => 1 ) [2025-04-09 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:37:06' and `end` < '2025-04-09 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:37:18] Production.INFO: count ==137 [2025-04-09 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:37:06 - End Time 2025-04-09 02:37:06 [2025-04-09 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866525', 'tblTempUsageDetail_20' ) start [2025-04-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866525', 'tblTempUsageDetail_20' ) end [2025-04-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866525', 'tblTempVendorCDR_20' ) start [2025-04-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866525', 'tblTempVendorCDR_20' ) end [2025-04-09 02:37:18] Production.INFO: ProcessCDR(1,14866525,1,1,2) [2025-04-09 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866525', 'tblTempUsageDetail_20' ) start [2025-04-09 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866525', 'tblTempUsageDetail_20' ) end [2025-04-09 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:37:23] Production.INFO: ==16698== Releasing lock... [2025-04-09 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:37:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:38:06 [end_date_ymd] => 2025-04-09 02:38:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:38:06' and `end` < '2025-04-09 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-09 02:38:18] Production.INFO: count ==137 [2025-04-09 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:38:06 - End Time 2025-04-09 02:38:06 [2025-04-09 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866530', 'tblTempUsageDetail_20' ) start [2025-04-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866530', 'tblTempUsageDetail_20' ) end [2025-04-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866530', 'tblTempVendorCDR_20' ) start [2025-04-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866530', 'tblTempVendorCDR_20' ) end [2025-04-09 02:38:19] Production.INFO: ProcessCDR(1,14866530,1,1,2) [2025-04-09 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866530', 'tblTempUsageDetail_20' ) start [2025-04-09 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866530', 'tblTempUsageDetail_20' ) end [2025-04-09 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:38:23] Production.INFO: ==16772== Releasing lock... [2025-04-09 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:38:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:39:05 [end_date_ymd] => 2025-04-09 02:39:05 [RateCDR] => 1 ) [2025-04-09 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:39:05' and `end` < '2025-04-09 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:39:18] Production.INFO: count ==137 [2025-04-09 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:39:05 - End Time 2025-04-09 02:39:05 [2025-04-09 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866535', 'tblTempUsageDetail_20' ) start [2025-04-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866535', 'tblTempUsageDetail_20' ) end [2025-04-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866535', 'tblTempVendorCDR_20' ) start [2025-04-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866535', 'tblTempVendorCDR_20' ) end [2025-04-09 02:39:18] Production.INFO: ProcessCDR(1,14866535,1,1,2) [2025-04-09 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866535', 'tblTempUsageDetail_20' ) start [2025-04-09 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866535', 'tblTempUsageDetail_20' ) end [2025-04-09 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:39:22] Production.INFO: ==16847== Releasing lock... [2025-04-09 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:40:06 [end_date_ymd] => 2025-04-09 02:40:06 [RateCDR] => 1 ) [2025-04-09 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:40:06' and `end` < '2025-04-09 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:40:19] Production.INFO: count ==139 [2025-04-09 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:40:06 - End Time 2025-04-09 02:40:06 [2025-04-09 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866541', 'tblTempUsageDetail_20' ) start [2025-04-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866541', 'tblTempUsageDetail_20' ) end [2025-04-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866541', 'tblTempVendorCDR_20' ) start [2025-04-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866541', 'tblTempVendorCDR_20' ) end [2025-04-09 02:40:19] Production.INFO: ProcessCDR(1,14866541,1,1,2) [2025-04-09 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866541', 'tblTempUsageDetail_20' ) start [2025-04-09 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866541', 'tblTempUsageDetail_20' ) end [2025-04-09 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:40:23] Production.INFO: ==16920== Releasing lock... [2025-04-09 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:41:05 [end_date_ymd] => 2025-04-09 02:41:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:41:05' and `end` < '2025-04-09 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-09 02:41:18] Production.INFO: count ==138 [2025-04-09 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:41:05 - End Time 2025-04-09 02:41:05 [2025-04-09 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866546', 'tblTempUsageDetail_20' ) start [2025-04-09 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866546', 'tblTempUsageDetail_20' ) end [2025-04-09 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866546', 'tblTempVendorCDR_20' ) start [2025-04-09 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866546', 'tblTempVendorCDR_20' ) end [2025-04-09 02:41:18] Production.INFO: ProcessCDR(1,14866546,1,1,2) [2025-04-09 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866546', 'tblTempUsageDetail_20' ) start [2025-04-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866546', 'tblTempUsageDetail_20' ) end [2025-04-09 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:41:22] Production.INFO: ==16993== Releasing lock... [2025-04-09 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:42:06 [end_date_ymd] => 2025-04-09 02:42:06 [RateCDR] => 1 ) [2025-04-09 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:42:06' and `end` < '2025-04-09 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:42:19] Production.INFO: count ==138 [2025-04-09 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:42:06 - End Time 2025-04-09 02:42:06 [2025-04-09 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866551', 'tblTempUsageDetail_20' ) start [2025-04-09 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866551', 'tblTempUsageDetail_20' ) end [2025-04-09 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866551', 'tblTempVendorCDR_20' ) start [2025-04-09 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866551', 'tblTempVendorCDR_20' ) end [2025-04-09 02:42:19] Production.INFO: ProcessCDR(1,14866551,1,1,2) [2025-04-09 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866551', 'tblTempUsageDetail_20' ) start [2025-04-09 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866551', 'tblTempUsageDetail_20' ) end [2025-04-09 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:42:23] Production.INFO: ==17069== Releasing lock... [2025-04-09 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:42:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:43:06 [end_date_ymd] => 2025-04-09 02:43:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:43:06' and `end` < '2025-04-09 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-09 02:43:18] Production.INFO: count ==137 [2025-04-09 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:43:06 - End Time 2025-04-09 02:43:06 [2025-04-09 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866556', 'tblTempUsageDetail_20' ) start [2025-04-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866556', 'tblTempUsageDetail_20' ) end [2025-04-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866556', 'tblTempVendorCDR_20' ) start [2025-04-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866556', 'tblTempVendorCDR_20' ) end [2025-04-09 02:43:18] Production.INFO: ProcessCDR(1,14866556,1,1,2) [2025-04-09 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866556', 'tblTempUsageDetail_20' ) start [2025-04-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866556', 'tblTempUsageDetail_20' ) end [2025-04-09 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:43:22] Production.INFO: ==17138== Releasing lock... [2025-04-09 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:44:06 [end_date_ymd] => 2025-04-09 02:44:06 [RateCDR] => 1 ) [2025-04-09 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:44:06' and `end` < '2025-04-09 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:44:19] Production.INFO: count ==138 [2025-04-09 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:44:06 - End Time 2025-04-09 02:44:06 [2025-04-09 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866561', 'tblTempUsageDetail_20' ) start [2025-04-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866561', 'tblTempUsageDetail_20' ) end [2025-04-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866561', 'tblTempVendorCDR_20' ) start [2025-04-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866561', 'tblTempVendorCDR_20' ) end [2025-04-09 02:44:19] Production.INFO: ProcessCDR(1,14866561,1,1,2) [2025-04-09 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866561', 'tblTempUsageDetail_20' ) start [2025-04-09 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866561', 'tblTempUsageDetail_20' ) end [2025-04-09 02:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:44:24] Production.INFO: ==17208== Releasing lock... [2025-04-09 02:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:44:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:45:05 [end_date_ymd] => 2025-04-09 02:45:05 [RateCDR] => 1 ) [2025-04-09 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:45:05' and `end` < '2025-04-09 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:45:18] Production.INFO: count ==138 [2025-04-09 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:45:05 - End Time 2025-04-09 02:45:05 [2025-04-09 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866566', 'tblTempUsageDetail_20' ) start [2025-04-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866566', 'tblTempUsageDetail_20' ) end [2025-04-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866566', 'tblTempVendorCDR_20' ) start [2025-04-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866566', 'tblTempVendorCDR_20' ) end [2025-04-09 02:45:18] Production.INFO: ProcessCDR(1,14866566,1,1,2) [2025-04-09 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866566', 'tblTempUsageDetail_20' ) start [2025-04-09 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866566', 'tblTempUsageDetail_20' ) end [2025-04-09 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:45:22] Production.INFO: ==17279== Releasing lock... [2025-04-09 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:46:06 [end_date_ymd] => 2025-04-09 02:46:06 [RateCDR] => 1 ) [2025-04-09 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:46:06' and `end` < '2025-04-09 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:46:19] Production.INFO: count ==138 [2025-04-09 02:46:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:46:06 - End Time 2025-04-09 02:46:06 [2025-04-09 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866571', 'tblTempUsageDetail_20' ) start [2025-04-09 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866571', 'tblTempUsageDetail_20' ) end [2025-04-09 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866571', 'tblTempVendorCDR_20' ) start [2025-04-09 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866571', 'tblTempVendorCDR_20' ) end [2025-04-09 02:46:19] Production.INFO: ProcessCDR(1,14866571,1,1,2) [2025-04-09 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866571', 'tblTempUsageDetail_20' ) start [2025-04-09 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866571', 'tblTempUsageDetail_20' ) end [2025-04-09 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:46:23] Production.INFO: ==17351== Releasing lock... [2025-04-09 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:46:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:47:06 [end_date_ymd] => 2025-04-09 02:47:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:47:06' and `end` < '2025-04-09 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-09 02:47:19] Production.INFO: count ==138 [2025-04-09 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:47:06 - End Time 2025-04-09 02:47:06 [2025-04-09 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866576', 'tblTempUsageDetail_20' ) start [2025-04-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866576', 'tblTempUsageDetail_20' ) end [2025-04-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866576', 'tblTempVendorCDR_20' ) start [2025-04-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866576', 'tblTempVendorCDR_20' ) end [2025-04-09 02:47:19] Production.INFO: ProcessCDR(1,14866576,1,1,2) [2025-04-09 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866576', 'tblTempUsageDetail_20' ) start [2025-04-09 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866576', 'tblTempUsageDetail_20' ) end [2025-04-09 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:47:23] Production.INFO: ==17459== Releasing lock... [2025-04-09 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:47:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:48:05 [end_date_ymd] => 2025-04-09 02:48:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:48:05' and `end` < '2025-04-09 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-09 02:48:18] Production.INFO: count ==138 [2025-04-09 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:48:05 - End Time 2025-04-09 02:48:05 [2025-04-09 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866581', 'tblTempUsageDetail_20' ) start [2025-04-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866581', 'tblTempUsageDetail_20' ) end [2025-04-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866581', 'tblTempVendorCDR_20' ) start [2025-04-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866581', 'tblTempVendorCDR_20' ) end [2025-04-09 02:48:18] Production.INFO: ProcessCDR(1,14866581,1,1,2) [2025-04-09 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866581', 'tblTempUsageDetail_20' ) start [2025-04-09 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866581', 'tblTempUsageDetail_20' ) end [2025-04-09 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:48:22] Production.INFO: ==17529== Releasing lock... [2025-04-09 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:49:05 [end_date_ymd] => 2025-04-09 02:49:05 [RateCDR] => 1 ) [2025-04-09 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:49:05' and `end` < '2025-04-09 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:49:18] Production.INFO: count ==196 [2025-04-09 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:49:05 - End Time 2025-04-09 02:49:05 [2025-04-09 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866586', 'tblTempUsageDetail_20' ) start [2025-04-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866586', 'tblTempUsageDetail_20' ) end [2025-04-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866586', 'tblTempVendorCDR_20' ) start [2025-04-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866586', 'tblTempVendorCDR_20' ) end [2025-04-09 02:49:18] Production.INFO: ProcessCDR(1,14866586,1,1,2) [2025-04-09 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866586', 'tblTempUsageDetail_20' ) start [2025-04-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866586', 'tblTempUsageDetail_20' ) end [2025-04-09 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:49:22] Production.INFO: ==17600== Releasing lock... [2025-04-09 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:50:06 [end_date_ymd] => 2025-04-09 02:50:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:50:06' and `end` < '2025-04-09 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-09 02:50:18] Production.INFO: count ==209 [2025-04-09 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:50:06 - End Time 2025-04-09 02:50:06 [2025-04-09 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866592', 'tblTempUsageDetail_20' ) start [2025-04-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866592', 'tblTempUsageDetail_20' ) end [2025-04-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866592', 'tblTempVendorCDR_20' ) start [2025-04-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866592', 'tblTempVendorCDR_20' ) end [2025-04-09 02:50:19] Production.INFO: ProcessCDR(1,14866592,1,1,2) [2025-04-09 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866592', 'tblTempUsageDetail_20' ) start [2025-04-09 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866592', 'tblTempUsageDetail_20' ) end [2025-04-09 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:50:23] Production.INFO: ==17675== Releasing lock... [2025-04-09 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:51:06 [end_date_ymd] => 2025-04-09 02:51:06 [RateCDR] => 1 ) [2025-04-09 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 23:51:06' and `end` < '2025-04-09 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 02:51:19] Production.INFO: count ==209 [2025-04-09 02:51:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:51:06 - End Time 2025-04-09 02:51:06 [2025-04-09 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866597', 'tblTempUsageDetail_20' ) start [2025-04-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866597', 'tblTempUsageDetail_20' ) end [2025-04-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866597', 'tblTempVendorCDR_20' ) start [2025-04-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866597', 'tblTempVendorCDR_20' ) end [2025-04-09 02:51:19] Production.INFO: ProcessCDR(1,14866597,1,1,2) [2025-04-09 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866597', 'tblTempUsageDetail_20' ) start [2025-04-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866597', 'tblTempUsageDetail_20' ) end [2025-04-09 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:51:22] Production.INFO: ==17747== Releasing lock... [2025-04-09 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:52:06 [end_date_ymd] => 2025-04-09 02:52:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:52:06' and `end` < '2025-04-09 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-09 02:52:19] Production.INFO: count ==209 [2025-04-09 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:52:06 - End Time 2025-04-09 02:52:06 [2025-04-09 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866602', 'tblTempUsageDetail_20' ) start [2025-04-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866602', 'tblTempUsageDetail_20' ) end [2025-04-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866602', 'tblTempVendorCDR_20' ) start [2025-04-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866602', 'tblTempVendorCDR_20' ) end [2025-04-09 02:52:19] Production.INFO: ProcessCDR(1,14866602,1,1,2) [2025-04-09 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866602', 'tblTempUsageDetail_20' ) start [2025-04-09 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866602', 'tblTempUsageDetail_20' ) end [2025-04-09 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:52:22] Production.INFO: ==17817== Releasing lock... [2025-04-09 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:53:06 [end_date_ymd] => 2025-04-09 02:53:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:53:06' and `end` < '2025-04-09 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-09 02:53:18] Production.INFO: count ==209 [2025-04-09 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:53:06 - End Time 2025-04-09 02:53:06 [2025-04-09 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866607', 'tblTempUsageDetail_20' ) start [2025-04-09 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866607', 'tblTempUsageDetail_20' ) end [2025-04-09 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866607', 'tblTempVendorCDR_20' ) start [2025-04-09 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866607', 'tblTempVendorCDR_20' ) end [2025-04-09 02:53:18] Production.INFO: ProcessCDR(1,14866607,1,1,2) [2025-04-09 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866607', 'tblTempUsageDetail_20' ) start [2025-04-09 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866607', 'tblTempUsageDetail_20' ) end [2025-04-09 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:53:22] Production.INFO: ==17887== Releasing lock... [2025-04-09 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:54:06 [end_date_ymd] => 2025-04-09 02:54:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:54:06' and `end` < '2025-04-09 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-09 02:54:18] Production.INFO: count ==208 [2025-04-09 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:54:06 - End Time 2025-04-09 02:54:06 [2025-04-09 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866612', 'tblTempUsageDetail_20' ) start [2025-04-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866612', 'tblTempUsageDetail_20' ) end [2025-04-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866612', 'tblTempVendorCDR_20' ) start [2025-04-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866612', 'tblTempVendorCDR_20' ) end [2025-04-09 02:54:19] Production.INFO: ProcessCDR(1,14866612,1,1,2) [2025-04-09 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866612', 'tblTempUsageDetail_20' ) start [2025-04-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866612', 'tblTempUsageDetail_20' ) end [2025-04-09 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:54:22] Production.INFO: ==17969== Releasing lock... [2025-04-09 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:55:05 [end_date_ymd] => 2025-04-09 02:55:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:55:05' and `end` < '2025-04-09 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-09 02:55:17] Production.INFO: count ==208 [2025-04-09 02:55:17] Production.ERROR: pbx CDR StartTime 2025-04-08 23:55:05 - End Time 2025-04-09 02:55:05 [2025-04-09 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866617', 'tblTempUsageDetail_20' ) start [2025-04-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866617', 'tblTempUsageDetail_20' ) end [2025-04-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866617', 'tblTempVendorCDR_20' ) start [2025-04-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866617', 'tblTempVendorCDR_20' ) end [2025-04-09 02:55:18] Production.INFO: ProcessCDR(1,14866617,1,1,2) [2025-04-09 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866617', 'tblTempUsageDetail_20' ) start [2025-04-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866617', 'tblTempUsageDetail_20' ) end [2025-04-09 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:55:21] Production.INFO: ==18045== Releasing lock... [2025-04-09 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:56:06 [end_date_ymd] => 2025-04-09 02:56:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:56:06' and `end` < '2025-04-09 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-09 02:56:19] Production.INFO: count ==210 [2025-04-09 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-08 23:56:06 - End Time 2025-04-09 02:56:06 [2025-04-09 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866622', 'tblTempUsageDetail_20' ) start [2025-04-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866622', 'tblTempUsageDetail_20' ) end [2025-04-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866622', 'tblTempVendorCDR_20' ) start [2025-04-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866622', 'tblTempVendorCDR_20' ) end [2025-04-09 02:56:19] Production.INFO: ProcessCDR(1,14866622,1,1,2) [2025-04-09 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866622', 'tblTempUsageDetail_20' ) start [2025-04-09 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866622', 'tblTempUsageDetail_20' ) end [2025-04-09 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:56:22] Production.INFO: ==18117== Releasing lock... [2025-04-09 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:57:05 [end_date_ymd] => 2025-04-09 02:57:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:57:05' and `end` < '2025-04-09 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-09 02:57:18] Production.INFO: count ==208 [2025-04-09 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:57:05 - End Time 2025-04-09 02:57:05 [2025-04-09 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866627', 'tblTempUsageDetail_20' ) start [2025-04-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866627', 'tblTempUsageDetail_20' ) end [2025-04-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866627', 'tblTempVendorCDR_20' ) start [2025-04-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866627', 'tblTempVendorCDR_20' ) end [2025-04-09 02:57:18] Production.INFO: ProcessCDR(1,14866627,1,1,2) [2025-04-09 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866627', 'tblTempUsageDetail_20' ) start [2025-04-09 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866627', 'tblTempUsageDetail_20' ) end [2025-04-09 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:57:22] Production.INFO: ==18189== Releasing lock... [2025-04-09 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:58:06 [end_date_ymd] => 2025-04-09 02:58:06 [RateCDR] => 1 ) [2025-04-09 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-08 23:58:06' and `end` < '2025-04-09 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-09 02:58:18] Production.INFO: count ==208 [2025-04-09 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:58:06 - End Time 2025-04-09 02:58:06 [2025-04-09 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866632', 'tblTempUsageDetail_20' ) start [2025-04-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866632', 'tblTempUsageDetail_20' ) end [2025-04-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866632', 'tblTempVendorCDR_20' ) start [2025-04-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866632', 'tblTempVendorCDR_20' ) end [2025-04-09 02:58:19] Production.INFO: ProcessCDR(1,14866632,1,1,2) [2025-04-09 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866632', 'tblTempUsageDetail_20' ) start [2025-04-09 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866632', 'tblTempUsageDetail_20' ) end [2025-04-09 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:58:23] Production.INFO: ==18261== Releasing lock... [2025-04-09 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 23:59:05 [end_date_ymd] => 2025-04-09 02:59:05 [RateCDR] => 1 ) [2025-04-09 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-08 23:59:05' and `end` < '2025-04-09 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-09 02:59:18] Production.INFO: count ==208 [2025-04-09 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 23:59:05 - End Time 2025-04-09 02:59:05 [2025-04-09 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866637', 'tblTempUsageDetail_20' ) start [2025-04-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866637', 'tblTempUsageDetail_20' ) end [2025-04-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866637', 'tblTempVendorCDR_20' ) start [2025-04-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866637', 'tblTempVendorCDR_20' ) end [2025-04-09 02:59:18] Production.INFO: ProcessCDR(1,14866637,1,1,2) [2025-04-09 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866637', 'tblTempUsageDetail_20' ) start [2025-04-09 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866637', 'tblTempUsageDetail_20' ) end [2025-04-09 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 02:59:22] Production.INFO: ==18337== Releasing lock... [2025-04-09 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 02:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:00:06 [end_date_ymd] => 2025-04-09 03:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 00:00:06' and `end` < '2025-04-09 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-09 03:00:19] Production.INFO: count ==208 [2025-04-09 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:00:06 - End Time 2025-04-09 03:00:06 [2025-04-09 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866642', 'tblTempUsageDetail_20' ) start [2025-04-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866642', 'tblTempUsageDetail_20' ) end [2025-04-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866642', 'tblTempVendorCDR_20' ) start [2025-04-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866642', 'tblTempVendorCDR_20' ) end [2025-04-09 03:00:19] Production.INFO: ProcessCDR(1,14866642,1,1,2) [2025-04-09 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866642', 'tblTempUsageDetail_20' ) start [2025-04-09 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866642', 'tblTempUsageDetail_20' ) end [2025-04-09 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:00:22] Production.INFO: ==18410== Releasing lock... [2025-04-09 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:01:05 [end_date_ymd] => 2025-04-09 03:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:01:05' and `end` < '2025-04-09 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-09 03:01:17] Production.INFO: count ==208 [2025-04-09 03:01:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:01:05 - End Time 2025-04-09 03:01:05 [2025-04-09 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866648', 'tblTempUsageDetail_20' ) start [2025-04-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866648', 'tblTempUsageDetail_20' ) end [2025-04-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866648', 'tblTempVendorCDR_20' ) start [2025-04-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866648', 'tblTempVendorCDR_20' ) end [2025-04-09 03:01:17] Production.INFO: ProcessCDR(1,14866648,1,1,2) [2025-04-09 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866648', 'tblTempUsageDetail_20' ) start [2025-04-09 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866648', 'tblTempUsageDetail_20' ) end [2025-04-09 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:01:21] Production.INFO: ==18495== Releasing lock... [2025-04-09 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:02:05 [end_date_ymd] => 2025-04-09 03:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:02:05' and `end` < '2025-04-09 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-09 03:02:18] Production.INFO: count ==208 [2025-04-09 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:02:05 - End Time 2025-04-09 03:02:05 [2025-04-09 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866653', 'tblTempUsageDetail_20' ) start [2025-04-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866653', 'tblTempUsageDetail_20' ) end [2025-04-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866653', 'tblTempVendorCDR_20' ) start [2025-04-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866653', 'tblTempVendorCDR_20' ) end [2025-04-09 03:02:18] Production.INFO: ProcessCDR(1,14866653,1,1,2) [2025-04-09 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866653', 'tblTempUsageDetail_20' ) start [2025-04-09 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866653', 'tblTempUsageDetail_20' ) end [2025-04-09 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:02:21] Production.INFO: ==18683== Releasing lock... [2025-04-09 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:03:05 [end_date_ymd] => 2025-04-09 03:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:03:05' and `end` < '2025-04-09 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-09 03:03:18] Production.INFO: count ==207 [2025-04-09 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:03:05 - End Time 2025-04-09 03:03:05 [2025-04-09 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866658', 'tblTempUsageDetail_20' ) start [2025-04-09 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866658', 'tblTempUsageDetail_20' ) end [2025-04-09 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866658', 'tblTempVendorCDR_20' ) start [2025-04-09 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866658', 'tblTempVendorCDR_20' ) end [2025-04-09 03:03:18] Production.INFO: ProcessCDR(1,14866658,1,1,2) [2025-04-09 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866658', 'tblTempUsageDetail_20' ) start [2025-04-09 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866658', 'tblTempUsageDetail_20' ) end [2025-04-09 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:03:21] Production.INFO: ==18751== Releasing lock... [2025-04-09 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:04:05 [end_date_ymd] => 2025-04-09 03:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:04:05' and `end` < '2025-04-09 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-09 03:04:18] Production.INFO: count ==207 [2025-04-09 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:04:05 - End Time 2025-04-09 03:04:05 [2025-04-09 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866663', 'tblTempUsageDetail_20' ) start [2025-04-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866663', 'tblTempUsageDetail_20' ) end [2025-04-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866663', 'tblTempVendorCDR_20' ) start [2025-04-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866663', 'tblTempVendorCDR_20' ) end [2025-04-09 03:04:18] Production.INFO: ProcessCDR(1,14866663,1,1,2) [2025-04-09 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866663', 'tblTempUsageDetail_20' ) start [2025-04-09 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866663', 'tblTempUsageDetail_20' ) end [2025-04-09 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:04:21] Production.INFO: ==18823== Releasing lock... [2025-04-09 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:05:05 [end_date_ymd] => 2025-04-09 03:05:05 [RateCDR] => 1 ) [2025-04-09 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:05:05' and `end` < '2025-04-09 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:05:18] Production.INFO: count ==204 [2025-04-09 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:05:05 - End Time 2025-04-09 03:05:05 [2025-04-09 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866668', 'tblTempUsageDetail_20' ) start [2025-04-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866668', 'tblTempUsageDetail_20' ) end [2025-04-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866668', 'tblTempVendorCDR_20' ) start [2025-04-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866668', 'tblTempVendorCDR_20' ) end [2025-04-09 03:05:18] Production.INFO: ProcessCDR(1,14866668,1,1,2) [2025-04-09 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866668', 'tblTempUsageDetail_20' ) start [2025-04-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866668', 'tblTempUsageDetail_20' ) end [2025-04-09 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:05:21] Production.INFO: ==18891== Releasing lock... [2025-04-09 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:06:06 [end_date_ymd] => 2025-04-09 03:06:06 [RateCDR] => 1 ) [2025-04-09 03: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-09 00:06:06' and `end` < '2025-04-09 03: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-09 03:06:19] Production.INFO: count ==204 [2025-04-09 03:06:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:06:06 - End Time 2025-04-09 03:06:06 [2025-04-09 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866673', 'tblTempUsageDetail_20' ) start [2025-04-09 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866673', 'tblTempUsageDetail_20' ) end [2025-04-09 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866673', 'tblTempVendorCDR_20' ) start [2025-04-09 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866673', 'tblTempVendorCDR_20' ) end [2025-04-09 03:06:19] Production.INFO: ProcessCDR(1,14866673,1,1,2) [2025-04-09 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866673', 'tblTempUsageDetail_20' ) start [2025-04-09 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866673', 'tblTempUsageDetail_20' ) end [2025-04-09 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:06:22] Production.INFO: ==19038== Releasing lock... [2025-04-09 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:07:05 [end_date_ymd] => 2025-04-09 03:07:05 [RateCDR] => 1 ) [2025-04-09 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:07:05' and `end` < '2025-04-09 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:07:17] Production.INFO: count ==204 [2025-04-09 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:07:05 - End Time 2025-04-09 03:07:05 [2025-04-09 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866678', 'tblTempUsageDetail_20' ) start [2025-04-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866678', 'tblTempUsageDetail_20' ) end [2025-04-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866678', 'tblTempVendorCDR_20' ) start [2025-04-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866678', 'tblTempVendorCDR_20' ) end [2025-04-09 03:07:17] Production.INFO: ProcessCDR(1,14866678,1,1,2) [2025-04-09 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866678', 'tblTempUsageDetail_20' ) start [2025-04-09 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866678', 'tblTempUsageDetail_20' ) end [2025-04-09 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:07:21] Production.INFO: ==19111== Releasing lock... [2025-04-09 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:08:05 [end_date_ymd] => 2025-04-09 03:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:08:05' and `end` < '2025-04-09 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-09 03:08:18] Production.INFO: count ==204 [2025-04-09 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:08:05 - End Time 2025-04-09 03:08:05 [2025-04-09 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866683', 'tblTempUsageDetail_20' ) start [2025-04-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866683', 'tblTempUsageDetail_20' ) end [2025-04-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866683', 'tblTempVendorCDR_20' ) start [2025-04-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866683', 'tblTempVendorCDR_20' ) end [2025-04-09 03:08:18] Production.INFO: ProcessCDR(1,14866683,1,1,2) [2025-04-09 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866683', 'tblTempUsageDetail_20' ) start [2025-04-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866683', 'tblTempUsageDetail_20' ) end [2025-04-09 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:08:21] Production.INFO: ==19182== Releasing lock... [2025-04-09 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:09:05 [end_date_ymd] => 2025-04-09 03:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:09:05' and `end` < '2025-04-09 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-09 03:09:17] Production.INFO: count ==204 [2025-04-09 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:09:05 - End Time 2025-04-09 03:09:05 [2025-04-09 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866688', 'tblTempUsageDetail_20' ) start [2025-04-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866688', 'tblTempUsageDetail_20' ) end [2025-04-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866688', 'tblTempVendorCDR_20' ) start [2025-04-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866688', 'tblTempVendorCDR_20' ) end [2025-04-09 03:09:18] Production.INFO: ProcessCDR(1,14866688,1,1,2) [2025-04-09 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866688', 'tblTempUsageDetail_20' ) start [2025-04-09 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866688', 'tblTempUsageDetail_20' ) end [2025-04-09 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:09:21] Production.INFO: ==19331== Releasing lock... [2025-04-09 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:10:06 [end_date_ymd] => 2025-04-09 03:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 00:10:06' and `end` < '2025-04-09 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-09 03:10:19] Production.INFO: count ==204 [2025-04-09 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:10:06 - End Time 2025-04-09 03:10:06 [2025-04-09 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866694', 'tblTempUsageDetail_20' ) start [2025-04-09 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866694', 'tblTempUsageDetail_20' ) end [2025-04-09 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866694', 'tblTempVendorCDR_20' ) start [2025-04-09 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866694', 'tblTempVendorCDR_20' ) end [2025-04-09 03:10:19] Production.INFO: ProcessCDR(1,14866694,1,1,2) [2025-04-09 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866694', 'tblTempUsageDetail_20' ) start [2025-04-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866694', 'tblTempUsageDetail_20' ) end [2025-04-09 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:10:22] Production.INFO: ==19402== Releasing lock... [2025-04-09 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:11:05 [end_date_ymd] => 2025-04-09 03:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:11:05' and `end` < '2025-04-09 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-09 03:11:17] Production.INFO: count ==204 [2025-04-09 03:11:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:11:05 - End Time 2025-04-09 03:11:05 [2025-04-09 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866699', 'tblTempUsageDetail_20' ) start [2025-04-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866699', 'tblTempUsageDetail_20' ) end [2025-04-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866699', 'tblTempVendorCDR_20' ) start [2025-04-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866699', 'tblTempVendorCDR_20' ) end [2025-04-09 03:11:17] Production.INFO: ProcessCDR(1,14866699,1,1,2) [2025-04-09 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866699', 'tblTempUsageDetail_20' ) start [2025-04-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866699', 'tblTempUsageDetail_20' ) end [2025-04-09 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:11:21] Production.INFO: ==19476== Releasing lock... [2025-04-09 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:12:05 [end_date_ymd] => 2025-04-09 03:12:05 [RateCDR] => 1 ) [2025-04-09 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:12:05' and `end` < '2025-04-09 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:12:18] Production.INFO: count ==204 [2025-04-09 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:12:05 - End Time 2025-04-09 03:12:05 [2025-04-09 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866704', 'tblTempUsageDetail_20' ) start [2025-04-09 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866704', 'tblTempUsageDetail_20' ) end [2025-04-09 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866704', 'tblTempVendorCDR_20' ) start [2025-04-09 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866704', 'tblTempVendorCDR_20' ) end [2025-04-09 03:12:18] Production.INFO: ProcessCDR(1,14866704,1,1,2) [2025-04-09 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866704', 'tblTempUsageDetail_20' ) start [2025-04-09 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866704', 'tblTempUsageDetail_20' ) end [2025-04-09 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:12:21] Production.INFO: ==19548== Releasing lock... [2025-04-09 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:13:05 [end_date_ymd] => 2025-04-09 03:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:13:05' and `end` < '2025-04-09 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-09 03:13:17] Production.INFO: count ==204 [2025-04-09 03:13:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:13:05 - End Time 2025-04-09 03:13:05 [2025-04-09 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866709', 'tblTempUsageDetail_20' ) start [2025-04-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866709', 'tblTempUsageDetail_20' ) end [2025-04-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866709', 'tblTempVendorCDR_20' ) start [2025-04-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866709', 'tblTempVendorCDR_20' ) end [2025-04-09 03:13:17] Production.INFO: ProcessCDR(1,14866709,1,1,2) [2025-04-09 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866709', 'tblTempUsageDetail_20' ) start [2025-04-09 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866709', 'tblTempUsageDetail_20' ) end [2025-04-09 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:13:21] Production.INFO: ==19696== Releasing lock... [2025-04-09 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:14:05 [end_date_ymd] => 2025-04-09 03:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:14:05' and `end` < '2025-04-09 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-09 03:14:18] Production.INFO: count ==204 [2025-04-09 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:14:05 - End Time 2025-04-09 03:14:05 [2025-04-09 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866714', 'tblTempUsageDetail_20' ) start [2025-04-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866714', 'tblTempUsageDetail_20' ) end [2025-04-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866714', 'tblTempVendorCDR_20' ) start [2025-04-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866714', 'tblTempVendorCDR_20' ) end [2025-04-09 03:14:18] Production.INFO: ProcessCDR(1,14866714,1,1,2) [2025-04-09 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866714', 'tblTempUsageDetail_20' ) start [2025-04-09 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866714', 'tblTempUsageDetail_20' ) end [2025-04-09 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:14:21] Production.INFO: ==19769== Releasing lock... [2025-04-09 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:15:06 [end_date_ymd] => 2025-04-09 03:15:06 [RateCDR] => 1 ) [2025-04-09 03: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-09 00:15:06' and `end` < '2025-04-09 03: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-09 03:15:18] Production.INFO: count ==204 [2025-04-09 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:15:06 - End Time 2025-04-09 03:15:06 [2025-04-09 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866719', 'tblTempUsageDetail_20' ) start [2025-04-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866719', 'tblTempUsageDetail_20' ) end [2025-04-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866719', 'tblTempVendorCDR_20' ) start [2025-04-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866719', 'tblTempVendorCDR_20' ) end [2025-04-09 03:15:18] Production.INFO: ProcessCDR(1,14866719,1,1,2) [2025-04-09 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866719', 'tblTempUsageDetail_20' ) start [2025-04-09 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866719', 'tblTempUsageDetail_20' ) end [2025-04-09 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:15:22] Production.INFO: ==19838== Releasing lock... [2025-04-09 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:16:05 [end_date_ymd] => 2025-04-09 03:16:05 [RateCDR] => 1 ) [2025-04-09 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:16:05' and `end` < '2025-04-09 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:16:18] Production.INFO: count ==204 [2025-04-09 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:16:05 - End Time 2025-04-09 03:16:05 [2025-04-09 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866724', 'tblTempUsageDetail_20' ) start [2025-04-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866724', 'tblTempUsageDetail_20' ) end [2025-04-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866724', 'tblTempVendorCDR_20' ) start [2025-04-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866724', 'tblTempVendorCDR_20' ) end [2025-04-09 03:16:18] Production.INFO: ProcessCDR(1,14866724,1,1,2) [2025-04-09 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866724', 'tblTempUsageDetail_20' ) start [2025-04-09 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866724', 'tblTempUsageDetail_20' ) end [2025-04-09 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:16:21] Production.INFO: ==19906== Releasing lock... [2025-04-09 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:17:06 [end_date_ymd] => 2025-04-09 03:17:06 [RateCDR] => 1 ) [2025-04-09 03:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:17:06' and `end` < '2025-04-09 03:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:17:18] Production.INFO: count ==202 [2025-04-09 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:17:06 - End Time 2025-04-09 03:17:06 [2025-04-09 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866729', 'tblTempUsageDetail_20' ) start [2025-04-09 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866729', 'tblTempUsageDetail_20' ) end [2025-04-09 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866729', 'tblTempVendorCDR_20' ) start [2025-04-09 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866729', 'tblTempVendorCDR_20' ) end [2025-04-09 03:17:18] Production.INFO: ProcessCDR(1,14866729,1,1,2) [2025-04-09 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866729', 'tblTempUsageDetail_20' ) start [2025-04-09 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866729', 'tblTempUsageDetail_20' ) end [2025-04-09 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:17:22] Production.INFO: ==20053== Releasing lock... [2025-04-09 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:18:05 [end_date_ymd] => 2025-04-09 03:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:18:05' and `end` < '2025-04-09 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-09 03:18:17] Production.INFO: count ==202 [2025-04-09 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:18:05 - End Time 2025-04-09 03:18:05 [2025-04-09 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866734', 'tblTempUsageDetail_20' ) start [2025-04-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866734', 'tblTempUsageDetail_20' ) end [2025-04-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866734', 'tblTempVendorCDR_20' ) start [2025-04-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866734', 'tblTempVendorCDR_20' ) end [2025-04-09 03:18:18] Production.INFO: ProcessCDR(1,14866734,1,1,2) [2025-04-09 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866734', 'tblTempUsageDetail_20' ) start [2025-04-09 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866734', 'tblTempUsageDetail_20' ) end [2025-04-09 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:18:21] Production.INFO: ==20126== Releasing lock... [2025-04-09 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:19:05 [end_date_ymd] => 2025-04-09 03:19:05 [RateCDR] => 1 ) [2025-04-09 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:19:05' and `end` < '2025-04-09 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:19:18] Production.INFO: count ==202 [2025-04-09 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:19:05 - End Time 2025-04-09 03:19:05 [2025-04-09 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866739', 'tblTempUsageDetail_20' ) start [2025-04-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866739', 'tblTempUsageDetail_20' ) end [2025-04-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866739', 'tblTempVendorCDR_20' ) start [2025-04-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866739', 'tblTempVendorCDR_20' ) end [2025-04-09 03:19:18] Production.INFO: ProcessCDR(1,14866739,1,1,2) [2025-04-09 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866739', 'tblTempUsageDetail_20' ) start [2025-04-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866739', 'tblTempUsageDetail_20' ) end [2025-04-09 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:19:21] Production.INFO: ==20235== Releasing lock... [2025-04-09 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:20:06 [end_date_ymd] => 2025-04-09 03:20:06 [RateCDR] => 1 ) [2025-04-09 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:20:06' and `end` < '2025-04-09 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:20:18] Production.INFO: count ==192 [2025-04-09 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:20:06 - End Time 2025-04-09 03:20:06 [2025-04-09 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866745', 'tblTempUsageDetail_20' ) start [2025-04-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866745', 'tblTempUsageDetail_20' ) end [2025-04-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866745', 'tblTempVendorCDR_20' ) start [2025-04-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866745', 'tblTempVendorCDR_20' ) end [2025-04-09 03:20:18] Production.INFO: ProcessCDR(1,14866745,1,1,2) [2025-04-09 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866745', 'tblTempUsageDetail_20' ) start [2025-04-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866745', 'tblTempUsageDetail_20' ) end [2025-04-09 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:20:22] Production.INFO: ==20307== Releasing lock... [2025-04-09 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:21:05 [end_date_ymd] => 2025-04-09 03:21:05 [RateCDR] => 1 ) [2025-04-09 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:21:05' and `end` < '2025-04-09 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:21:17] Production.INFO: count ==192 [2025-04-09 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:21:05 - End Time 2025-04-09 03:21:05 [2025-04-09 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866750', 'tblTempUsageDetail_20' ) start [2025-04-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866750', 'tblTempUsageDetail_20' ) end [2025-04-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866750', 'tblTempVendorCDR_20' ) start [2025-04-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866750', 'tblTempVendorCDR_20' ) end [2025-04-09 03:21:17] Production.INFO: ProcessCDR(1,14866750,1,1,2) [2025-04-09 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866750', 'tblTempUsageDetail_20' ) start [2025-04-09 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866750', 'tblTempUsageDetail_20' ) end [2025-04-09 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:21:21] Production.INFO: ==20379== Releasing lock... [2025-04-09 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:22:05 [end_date_ymd] => 2025-04-09 03:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:22:05' and `end` < '2025-04-09 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-09 03:22:18] Production.INFO: count ==192 [2025-04-09 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:22:05 - End Time 2025-04-09 03:22:05 [2025-04-09 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866755', 'tblTempUsageDetail_20' ) start [2025-04-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866755', 'tblTempUsageDetail_20' ) end [2025-04-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866755', 'tblTempVendorCDR_20' ) start [2025-04-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866755', 'tblTempVendorCDR_20' ) end [2025-04-09 03:22:18] Production.INFO: ProcessCDR(1,14866755,1,1,2) [2025-04-09 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866755', 'tblTempUsageDetail_20' ) start [2025-04-09 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866755', 'tblTempUsageDetail_20' ) end [2025-04-09 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:22:22] Production.INFO: ==20447== Releasing lock... [2025-04-09 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:23:05 [end_date_ymd] => 2025-04-09 03:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:23:05' and `end` < '2025-04-09 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-09 03:23:18] Production.INFO: count ==192 [2025-04-09 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:23:05 - End Time 2025-04-09 03:23:05 [2025-04-09 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866760', 'tblTempUsageDetail_20' ) start [2025-04-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866760', 'tblTempUsageDetail_20' ) end [2025-04-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866760', 'tblTempVendorCDR_20' ) start [2025-04-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866760', 'tblTempVendorCDR_20' ) end [2025-04-09 03:23:18] Production.INFO: ProcessCDR(1,14866760,1,1,2) [2025-04-09 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866760', 'tblTempUsageDetail_20' ) start [2025-04-09 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866760', 'tblTempUsageDetail_20' ) end [2025-04-09 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:23:22] Production.INFO: ==20517== Releasing lock... [2025-04-09 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:24:05 [end_date_ymd] => 2025-04-09 03:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:24:05' and `end` < '2025-04-09 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-09 03:24:18] Production.INFO: count ==192 [2025-04-09 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:24:05 - End Time 2025-04-09 03:24:05 [2025-04-09 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866765', 'tblTempUsageDetail_20' ) start [2025-04-09 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866765', 'tblTempUsageDetail_20' ) end [2025-04-09 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866765', 'tblTempVendorCDR_20' ) start [2025-04-09 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866765', 'tblTempVendorCDR_20' ) end [2025-04-09 03:24:18] Production.INFO: ProcessCDR(1,14866765,1,1,2) [2025-04-09 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866765', 'tblTempUsageDetail_20' ) start [2025-04-09 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866765', 'tblTempUsageDetail_20' ) end [2025-04-09 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:24:21] Production.INFO: ==20586== Releasing lock... [2025-04-09 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:25:05 [end_date_ymd] => 2025-04-09 03:25:05 [RateCDR] => 1 ) [2025-04-09 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:25:05' and `end` < '2025-04-09 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:25:18] Production.INFO: count ==192 [2025-04-09 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:25:05 - End Time 2025-04-09 03:25:05 [2025-04-09 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866770', 'tblTempUsageDetail_20' ) start [2025-04-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866770', 'tblTempUsageDetail_20' ) end [2025-04-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866770', 'tblTempVendorCDR_20' ) start [2025-04-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866770', 'tblTempVendorCDR_20' ) end [2025-04-09 03:25:18] Production.INFO: ProcessCDR(1,14866770,1,1,2) [2025-04-09 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866770', 'tblTempUsageDetail_20' ) start [2025-04-09 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866770', 'tblTempUsageDetail_20' ) end [2025-04-09 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:25:21] Production.INFO: ==20657== Releasing lock... [2025-04-09 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:26:05 [end_date_ymd] => 2025-04-09 03:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:26:05' and `end` < '2025-04-09 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-09 03:26:18] Production.INFO: count ==192 [2025-04-09 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:26:05 - End Time 2025-04-09 03:26:05 [2025-04-09 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866775', 'tblTempUsageDetail_20' ) start [2025-04-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866775', 'tblTempUsageDetail_20' ) end [2025-04-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866775', 'tblTempVendorCDR_20' ) start [2025-04-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866775', 'tblTempVendorCDR_20' ) end [2025-04-09 03:26:18] Production.INFO: ProcessCDR(1,14866775,1,1,2) [2025-04-09 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866775', 'tblTempUsageDetail_20' ) start [2025-04-09 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866775', 'tblTempUsageDetail_20' ) end [2025-04-09 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:26:22] Production.INFO: ==20734== Releasing lock... [2025-04-09 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:27:05 [end_date_ymd] => 2025-04-09 03:27:05 [RateCDR] => 1 ) [2025-04-09 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:27:05' and `end` < '2025-04-09 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:27:17] Production.INFO: count ==192 [2025-04-09 03:27:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:27:05 - End Time 2025-04-09 03:27:05 [2025-04-09 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866780', 'tblTempUsageDetail_20' ) start [2025-04-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866780', 'tblTempUsageDetail_20' ) end [2025-04-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866780', 'tblTempVendorCDR_20' ) start [2025-04-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866780', 'tblTempVendorCDR_20' ) end [2025-04-09 03:27:18] Production.INFO: ProcessCDR(1,14866780,1,1,2) [2025-04-09 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866780', 'tblTempUsageDetail_20' ) start [2025-04-09 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866780', 'tblTempUsageDetail_20' ) end [2025-04-09 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:27:21] Production.INFO: ==20822== Releasing lock... [2025-04-09 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:28:05 [end_date_ymd] => 2025-04-09 03:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:28:05' and `end` < '2025-04-09 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-09 03:28:18] Production.INFO: count ==192 [2025-04-09 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:28:05 - End Time 2025-04-09 03:28:05 [2025-04-09 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866785', 'tblTempUsageDetail_20' ) start [2025-04-09 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866785', 'tblTempUsageDetail_20' ) end [2025-04-09 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866785', 'tblTempVendorCDR_20' ) start [2025-04-09 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866785', 'tblTempVendorCDR_20' ) end [2025-04-09 03:28:18] Production.INFO: ProcessCDR(1,14866785,1,1,2) [2025-04-09 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866785', 'tblTempUsageDetail_20' ) start [2025-04-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866785', 'tblTempUsageDetail_20' ) end [2025-04-09 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:28:21] Production.INFO: ==20912== Releasing lock... [2025-04-09 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:29:05 [end_date_ymd] => 2025-04-09 03:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:29:05' and `end` < '2025-04-09 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-09 03:29:17] Production.INFO: count ==192 [2025-04-09 03:29:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:29:05 - End Time 2025-04-09 03:29:05 [2025-04-09 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866790', 'tblTempUsageDetail_20' ) start [2025-04-09 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866790', 'tblTempUsageDetail_20' ) end [2025-04-09 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866790', 'tblTempVendorCDR_20' ) start [2025-04-09 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866790', 'tblTempVendorCDR_20' ) end [2025-04-09 03:29:17] Production.INFO: ProcessCDR(1,14866790,1,1,2) [2025-04-09 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866790', 'tblTempUsageDetail_20' ) start [2025-04-09 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866790', 'tblTempUsageDetail_20' ) end [2025-04-09 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:29:21] Production.INFO: ==20980== Releasing lock... [2025-04-09 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:30:06 [end_date_ymd] => 2025-04-09 03:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 00:30:06' and `end` < '2025-04-09 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-09 03:30:19] Production.INFO: count ==192 [2025-04-09 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:30:06 - End Time 2025-04-09 03:30:06 [2025-04-09 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866796', 'tblTempUsageDetail_20' ) start [2025-04-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866796', 'tblTempUsageDetail_20' ) end [2025-04-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866796', 'tblTempVendorCDR_20' ) start [2025-04-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866796', 'tblTempVendorCDR_20' ) end [2025-04-09 03:30:19] Production.INFO: ProcessCDR(1,14866796,1,1,2) [2025-04-09 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866796', 'tblTempUsageDetail_20' ) start [2025-04-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866796', 'tblTempUsageDetail_20' ) end [2025-04-09 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:30:22] Production.INFO: ==21052== Releasing lock... [2025-04-09 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:31:06 [end_date_ymd] => 2025-04-09 03:31:06 [RateCDR] => 1 ) [2025-04-09 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:31:06' and `end` < '2025-04-09 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:31:18] Production.INFO: count ==192 [2025-04-09 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:31:06 - End Time 2025-04-09 03:31:06 [2025-04-09 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866801', 'tblTempUsageDetail_20' ) start [2025-04-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866801', 'tblTempUsageDetail_20' ) end [2025-04-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866801', 'tblTempVendorCDR_20' ) start [2025-04-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866801', 'tblTempVendorCDR_20' ) end [2025-04-09 03:31:18] Production.INFO: ProcessCDR(1,14866801,1,1,2) [2025-04-09 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866801', 'tblTempUsageDetail_20' ) start [2025-04-09 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866801', 'tblTempUsageDetail_20' ) end [2025-04-09 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:31:22] Production.INFO: ==21124== Releasing lock... [2025-04-09 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:32:05 [end_date_ymd] => 2025-04-09 03:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:32:05' and `end` < '2025-04-09 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-09 03:32:18] Production.INFO: count ==192 [2025-04-09 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:32:05 - End Time 2025-04-09 03:32:05 [2025-04-09 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866806', 'tblTempUsageDetail_20' ) start [2025-04-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866806', 'tblTempUsageDetail_20' ) end [2025-04-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866806', 'tblTempVendorCDR_20' ) start [2025-04-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866806', 'tblTempVendorCDR_20' ) end [2025-04-09 03:32:18] Production.INFO: ProcessCDR(1,14866806,1,1,2) [2025-04-09 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866806', 'tblTempUsageDetail_20' ) start [2025-04-09 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866806', 'tblTempUsageDetail_20' ) end [2025-04-09 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:32:22] Production.INFO: ==21193== Releasing lock... [2025-04-09 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:33:05 [end_date_ymd] => 2025-04-09 03:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:33:05' and `end` < '2025-04-09 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-09 03:33:18] Production.INFO: count ==192 [2025-04-09 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:33:05 - End Time 2025-04-09 03:33:05 [2025-04-09 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866811', 'tblTempUsageDetail_20' ) start [2025-04-09 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866811', 'tblTempUsageDetail_20' ) end [2025-04-09 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866811', 'tblTempVendorCDR_20' ) start [2025-04-09 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866811', 'tblTempVendorCDR_20' ) end [2025-04-09 03:33:18] Production.INFO: ProcessCDR(1,14866811,1,1,2) [2025-04-09 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866811', 'tblTempUsageDetail_20' ) start [2025-04-09 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866811', 'tblTempUsageDetail_20' ) end [2025-04-09 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:33:21] Production.INFO: ==21269== Releasing lock... [2025-04-09 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:34:05 [end_date_ymd] => 2025-04-09 03:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:34:05' and `end` < '2025-04-09 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-09 03:34:18] Production.INFO: count ==191 [2025-04-09 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:34:05 - End Time 2025-04-09 03:34:05 [2025-04-09 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866816', 'tblTempUsageDetail_20' ) start [2025-04-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866816', 'tblTempUsageDetail_20' ) end [2025-04-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866816', 'tblTempVendorCDR_20' ) start [2025-04-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866816', 'tblTempVendorCDR_20' ) end [2025-04-09 03:34:18] Production.INFO: ProcessCDR(1,14866816,1,1,2) [2025-04-09 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866816', 'tblTempUsageDetail_20' ) start [2025-04-09 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866816', 'tblTempUsageDetail_20' ) end [2025-04-09 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:34:21] Production.INFO: ==21379== Releasing lock... [2025-04-09 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:35:04 [end_date_ymd] => 2025-04-09 03:35:04 [RateCDR] => 1 ) [2025-04-09 03: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 00:35:04' and `end` < '2025-04-09 03: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-09 03:35:17] Production.INFO: count ==190 [2025-04-09 03:35:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:35:04 - End Time 2025-04-09 03:35:04 [2025-04-09 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866821', 'tblTempUsageDetail_20' ) start [2025-04-09 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866821', 'tblTempUsageDetail_20' ) end [2025-04-09 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866821', 'tblTempVendorCDR_20' ) start [2025-04-09 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866821', 'tblTempVendorCDR_20' ) end [2025-04-09 03:35:17] Production.INFO: ProcessCDR(1,14866821,1,1,2) [2025-04-09 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866821', 'tblTempUsageDetail_20' ) start [2025-04-09 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866821', 'tblTempUsageDetail_20' ) end [2025-04-09 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:35:21] Production.INFO: ==21449== Releasing lock... [2025-04-09 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:36:05 [end_date_ymd] => 2025-04-09 03:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:36:05' and `end` < '2025-04-09 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-09 03:36:18] Production.INFO: count ==190 [2025-04-09 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:36:05 - End Time 2025-04-09 03:36:05 [2025-04-09 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866826', 'tblTempUsageDetail_20' ) start [2025-04-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866826', 'tblTempUsageDetail_20' ) end [2025-04-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866826', 'tblTempVendorCDR_20' ) start [2025-04-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866826', 'tblTempVendorCDR_20' ) end [2025-04-09 03:36:18] Production.INFO: ProcessCDR(1,14866826,1,1,2) [2025-04-09 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866826', 'tblTempUsageDetail_20' ) start [2025-04-09 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866826', 'tblTempUsageDetail_20' ) end [2025-04-09 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:36:22] Production.INFO: ==21518== Releasing lock... [2025-04-09 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:37:05 [end_date_ymd] => 2025-04-09 03:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:37:05' and `end` < '2025-04-09 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-09 03:37:18] Production.INFO: count ==190 [2025-04-09 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:37:05 - End Time 2025-04-09 03:37:05 [2025-04-09 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866831', 'tblTempUsageDetail_20' ) start [2025-04-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866831', 'tblTempUsageDetail_20' ) end [2025-04-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866831', 'tblTempVendorCDR_20' ) start [2025-04-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866831', 'tblTempVendorCDR_20' ) end [2025-04-09 03:37:18] Production.INFO: ProcessCDR(1,14866831,1,1,2) [2025-04-09 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866831', 'tblTempUsageDetail_20' ) start [2025-04-09 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866831', 'tblTempUsageDetail_20' ) end [2025-04-09 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:37:21] Production.INFO: ==21595== Releasing lock... [2025-04-09 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:38:05 [end_date_ymd] => 2025-04-09 03:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:38:05' and `end` < '2025-04-09 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-09 03:38:18] Production.INFO: count ==190 [2025-04-09 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:38:05 - End Time 2025-04-09 03:38:05 [2025-04-09 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866836', 'tblTempUsageDetail_20' ) start [2025-04-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866836', 'tblTempUsageDetail_20' ) end [2025-04-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866836', 'tblTempVendorCDR_20' ) start [2025-04-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866836', 'tblTempVendorCDR_20' ) end [2025-04-09 03:38:18] Production.INFO: ProcessCDR(1,14866836,1,1,2) [2025-04-09 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866836', 'tblTempUsageDetail_20' ) start [2025-04-09 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866836', 'tblTempUsageDetail_20' ) end [2025-04-09 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:38:21] Production.INFO: ==21667== Releasing lock... [2025-04-09 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:39:05 [end_date_ymd] => 2025-04-09 03:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:39:05' and `end` < '2025-04-09 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-09 03:39:18] Production.INFO: count ==192 [2025-04-09 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:39:05 - End Time 2025-04-09 03:39:05 [2025-04-09 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866841', 'tblTempUsageDetail_20' ) start [2025-04-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866841', 'tblTempUsageDetail_20' ) end [2025-04-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866841', 'tblTempVendorCDR_20' ) start [2025-04-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866841', 'tblTempVendorCDR_20' ) end [2025-04-09 03:39:18] Production.INFO: ProcessCDR(1,14866841,1,1,2) [2025-04-09 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866841', 'tblTempUsageDetail_20' ) start [2025-04-09 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866841', 'tblTempUsageDetail_20' ) end [2025-04-09 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:39:22] Production.INFO: ==21738== Releasing lock... [2025-04-09 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:40:06 [end_date_ymd] => 2025-04-09 03:40:06 [RateCDR] => 1 ) [2025-04-09 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:40:06' and `end` < '2025-04-09 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:40:18] Production.INFO: count ==192 [2025-04-09 03:40:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:40:06 - End Time 2025-04-09 03:40:06 [2025-04-09 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866847', 'tblTempUsageDetail_20' ) start [2025-04-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866847', 'tblTempUsageDetail_20' ) end [2025-04-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866847', 'tblTempVendorCDR_20' ) start [2025-04-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866847', 'tblTempVendorCDR_20' ) end [2025-04-09 03:40:18] Production.INFO: ProcessCDR(1,14866847,1,1,2) [2025-04-09 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866847', 'tblTempUsageDetail_20' ) start [2025-04-09 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866847', 'tblTempUsageDetail_20' ) end [2025-04-09 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:40:22] Production.INFO: ==21811== Releasing lock... [2025-04-09 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:41:05 [end_date_ymd] => 2025-04-09 03:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:41:05' and `end` < '2025-04-09 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-09 03:41:18] Production.INFO: count ==192 [2025-04-09 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:41:05 - End Time 2025-04-09 03:41:05 [2025-04-09 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866852', 'tblTempUsageDetail_20' ) start [2025-04-09 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866852', 'tblTempUsageDetail_20' ) end [2025-04-09 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866852', 'tblTempVendorCDR_20' ) start [2025-04-09 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866852', 'tblTempVendorCDR_20' ) end [2025-04-09 03:41:18] Production.INFO: ProcessCDR(1,14866852,1,1,2) [2025-04-09 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866852', 'tblTempUsageDetail_20' ) start [2025-04-09 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866852', 'tblTempUsageDetail_20' ) end [2025-04-09 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:41:21] Production.INFO: ==21888== Releasing lock... [2025-04-09 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:42:05 [end_date_ymd] => 2025-04-09 03:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:42:05' and `end` < '2025-04-09 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-09 03:42:18] Production.INFO: count ==192 [2025-04-09 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:42:05 - End Time 2025-04-09 03:42:05 [2025-04-09 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866857', 'tblTempUsageDetail_20' ) start [2025-04-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866857', 'tblTempUsageDetail_20' ) end [2025-04-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866857', 'tblTempVendorCDR_20' ) start [2025-04-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866857', 'tblTempVendorCDR_20' ) end [2025-04-09 03:42:18] Production.INFO: ProcessCDR(1,14866857,1,1,2) [2025-04-09 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866857', 'tblTempUsageDetail_20' ) start [2025-04-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866857', 'tblTempUsageDetail_20' ) end [2025-04-09 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:42:21] Production.INFO: ==21961== Releasing lock... [2025-04-09 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:43:06 [end_date_ymd] => 2025-04-09 03:43:06 [RateCDR] => 1 ) [2025-04-09 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:43:06' and `end` < '2025-04-09 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:43:18] Production.INFO: count ==192 [2025-04-09 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:43:06 - End Time 2025-04-09 03:43:06 [2025-04-09 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866862', 'tblTempUsageDetail_20' ) start [2025-04-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866862', 'tblTempUsageDetail_20' ) end [2025-04-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866862', 'tblTempVendorCDR_20' ) start [2025-04-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866862', 'tblTempVendorCDR_20' ) end [2025-04-09 03:43:18] Production.INFO: ProcessCDR(1,14866862,1,1,2) [2025-04-09 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866862', 'tblTempUsageDetail_20' ) start [2025-04-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866862', 'tblTempUsageDetail_20' ) end [2025-04-09 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:43:22] Production.INFO: ==22031== Releasing lock... [2025-04-09 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:44:05 [end_date_ymd] => 2025-04-09 03:44:05 [RateCDR] => 1 ) [2025-04-09 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:44:05' and `end` < '2025-04-09 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:44:17] Production.INFO: count ==194 [2025-04-09 03:44:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:44:05 - End Time 2025-04-09 03:44:05 [2025-04-09 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866867', 'tblTempUsageDetail_20' ) start [2025-04-09 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866867', 'tblTempUsageDetail_20' ) end [2025-04-09 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866867', 'tblTempVendorCDR_20' ) start [2025-04-09 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866867', 'tblTempVendorCDR_20' ) end [2025-04-09 03:44:17] Production.INFO: ProcessCDR(1,14866867,1,1,2) [2025-04-09 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866867', 'tblTempUsageDetail_20' ) start [2025-04-09 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866867', 'tblTempUsageDetail_20' ) end [2025-04-09 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:44:21] Production.INFO: ==22102== Releasing lock... [2025-04-09 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:45:06 [end_date_ymd] => 2025-04-09 03:45:06 [RateCDR] => 1 ) [2025-04-09 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:45:06' and `end` < '2025-04-09 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:45:18] Production.INFO: count ==194 [2025-04-09 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:45:06 - End Time 2025-04-09 03:45:06 [2025-04-09 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866872', 'tblTempUsageDetail_20' ) start [2025-04-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866872', 'tblTempUsageDetail_20' ) end [2025-04-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866872', 'tblTempVendorCDR_20' ) start [2025-04-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866872', 'tblTempVendorCDR_20' ) end [2025-04-09 03:45:18] Production.INFO: ProcessCDR(1,14866872,1,1,2) [2025-04-09 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866872', 'tblTempUsageDetail_20' ) start [2025-04-09 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866872', 'tblTempUsageDetail_20' ) end [2025-04-09 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:45:22] Production.INFO: ==22179== Releasing lock... [2025-04-09 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:46:05 [end_date_ymd] => 2025-04-09 03:46:05 [RateCDR] => 1 ) [2025-04-09 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:46:05' and `end` < '2025-04-09 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:46:18] Production.INFO: count ==194 [2025-04-09 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:46:05 - End Time 2025-04-09 03:46:05 [2025-04-09 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866877', 'tblTempUsageDetail_20' ) start [2025-04-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866877', 'tblTempUsageDetail_20' ) end [2025-04-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866877', 'tblTempVendorCDR_20' ) start [2025-04-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866877', 'tblTempVendorCDR_20' ) end [2025-04-09 03:46:18] Production.INFO: ProcessCDR(1,14866877,1,1,2) [2025-04-09 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866877', 'tblTempUsageDetail_20' ) start [2025-04-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866877', 'tblTempUsageDetail_20' ) end [2025-04-09 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:46:21] Production.INFO: ==22248== Releasing lock... [2025-04-09 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:47:06 [end_date_ymd] => 2025-04-09 03:47:06 [RateCDR] => 1 ) [2025-04-09 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:47:06' and `end` < '2025-04-09 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:47:18] Production.INFO: count ==194 [2025-04-09 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:47:06 - End Time 2025-04-09 03:47:06 [2025-04-09 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866882', 'tblTempUsageDetail_20' ) start [2025-04-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866882', 'tblTempUsageDetail_20' ) end [2025-04-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866882', 'tblTempVendorCDR_20' ) start [2025-04-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866882', 'tblTempVendorCDR_20' ) end [2025-04-09 03:47:18] Production.INFO: ProcessCDR(1,14866882,1,1,2) [2025-04-09 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866882', 'tblTempUsageDetail_20' ) start [2025-04-09 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866882', 'tblTempUsageDetail_20' ) end [2025-04-09 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:47:22] Production.INFO: ==22319== Releasing lock... [2025-04-09 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:48:05 [end_date_ymd] => 2025-04-09 03:48:05 [RateCDR] => 1 ) [2025-04-09 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:48:05' and `end` < '2025-04-09 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:48:18] Production.INFO: count ==194 [2025-04-09 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:48:05 - End Time 2025-04-09 03:48:05 [2025-04-09 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866887', 'tblTempUsageDetail_20' ) start [2025-04-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866887', 'tblTempUsageDetail_20' ) end [2025-04-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866887', 'tblTempVendorCDR_20' ) start [2025-04-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866887', 'tblTempVendorCDR_20' ) end [2025-04-09 03:48:18] Production.INFO: ProcessCDR(1,14866887,1,1,2) [2025-04-09 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866887', 'tblTempUsageDetail_20' ) start [2025-04-09 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866887', 'tblTempUsageDetail_20' ) end [2025-04-09 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:48:21] Production.INFO: ==22390== Releasing lock... [2025-04-09 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:49:06 [end_date_ymd] => 2025-04-09 03:49:06 [RateCDR] => 1 ) [2025-04-09 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-09 00:49:06' and `end` < '2025-04-09 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:49:19] Production.INFO: count ==194 [2025-04-09 03:49:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:49:06 - End Time 2025-04-09 03:49:06 [2025-04-09 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866892', 'tblTempUsageDetail_20' ) start [2025-04-09 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866892', 'tblTempUsageDetail_20' ) end [2025-04-09 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866892', 'tblTempVendorCDR_20' ) start [2025-04-09 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866892', 'tblTempVendorCDR_20' ) end [2025-04-09 03:49:19] Production.INFO: ProcessCDR(1,14866892,1,1,2) [2025-04-09 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866892', 'tblTempUsageDetail_20' ) start [2025-04-09 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866892', 'tblTempUsageDetail_20' ) end [2025-04-09 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:49:22] Production.INFO: ==22461== Releasing lock... [2025-04-09 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:50:05 [end_date_ymd] => 2025-04-09 03:50:05 [RateCDR] => 1 ) [2025-04-09 03: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-09 00:50:05' and `end` < '2025-04-09 03: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-09 03:50:18] Production.INFO: count ==187 [2025-04-09 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:50:05 - End Time 2025-04-09 03:50:05 [2025-04-09 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866898', 'tblTempUsageDetail_20' ) start [2025-04-09 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866898', 'tblTempUsageDetail_20' ) end [2025-04-09 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866898', 'tblTempVendorCDR_20' ) start [2025-04-09 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866898', 'tblTempVendorCDR_20' ) end [2025-04-09 03:50:18] Production.INFO: ProcessCDR(1,14866898,1,1,2) [2025-04-09 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866898', 'tblTempUsageDetail_20' ) start [2025-04-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866898', 'tblTempUsageDetail_20' ) end [2025-04-09 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:50:22] Production.INFO: ==22572== Releasing lock... [2025-04-09 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:51:05 [end_date_ymd] => 2025-04-09 03:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:51:05' and `end` < '2025-04-09 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-09 03:51:17] Production.INFO: count ==177 [2025-04-09 03:51:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:51:05 - End Time 2025-04-09 03:51:05 [2025-04-09 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866903', 'tblTempUsageDetail_20' ) start [2025-04-09 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866903', 'tblTempUsageDetail_20' ) end [2025-04-09 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866903', 'tblTempVendorCDR_20' ) start [2025-04-09 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866903', 'tblTempVendorCDR_20' ) end [2025-04-09 03:51:17] Production.INFO: ProcessCDR(1,14866903,1,1,2) [2025-04-09 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866903', 'tblTempUsageDetail_20' ) start [2025-04-09 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866903', 'tblTempUsageDetail_20' ) end [2025-04-09 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:51:21] Production.INFO: ==22644== Releasing lock... [2025-04-09 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:52:05 [end_date_ymd] => 2025-04-09 03:52:05 [RateCDR] => 1 ) [2025-04-09 03: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 00:52:05' and `end` < '2025-04-09 03: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-09 03:52:17] Production.INFO: count ==177 [2025-04-09 03:52:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:52:05 - End Time 2025-04-09 03:52:05 [2025-04-09 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866908', 'tblTempUsageDetail_20' ) start [2025-04-09 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866908', 'tblTempUsageDetail_20' ) end [2025-04-09 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866908', 'tblTempVendorCDR_20' ) start [2025-04-09 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866908', 'tblTempVendorCDR_20' ) end [2025-04-09 03:52:17] Production.INFO: ProcessCDR(1,14866908,1,1,2) [2025-04-09 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866908', 'tblTempUsageDetail_20' ) start [2025-04-09 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866908', 'tblTempUsageDetail_20' ) end [2025-04-09 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:52:21] Production.INFO: ==22718== Releasing lock... [2025-04-09 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:53:05 [end_date_ymd] => 2025-04-09 03:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:53:05' and `end` < '2025-04-09 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-09 03:53:17] Production.INFO: count ==177 [2025-04-09 03:53:17] Production.ERROR: pbx CDR StartTime 2025-04-09 00:53:05 - End Time 2025-04-09 03:53:05 [2025-04-09 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866913', 'tblTempUsageDetail_20' ) start [2025-04-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866913', 'tblTempUsageDetail_20' ) end [2025-04-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866913', 'tblTempVendorCDR_20' ) start [2025-04-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866913', 'tblTempVendorCDR_20' ) end [2025-04-09 03:53:17] Production.INFO: ProcessCDR(1,14866913,1,1,2) [2025-04-09 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866913', 'tblTempUsageDetail_20' ) start [2025-04-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866913', 'tblTempUsageDetail_20' ) end [2025-04-09 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:53:21] Production.INFO: ==22790== Releasing lock... [2025-04-09 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:54:05 [end_date_ymd] => 2025-04-09 03:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:54:05' and `end` < '2025-04-09 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-09 03:54:18] Production.INFO: count ==177 [2025-04-09 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:54:05 - End Time 2025-04-09 03:54:05 [2025-04-09 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866918', 'tblTempUsageDetail_20' ) start [2025-04-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866918', 'tblTempUsageDetail_20' ) end [2025-04-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866918', 'tblTempVendorCDR_20' ) start [2025-04-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866918', 'tblTempVendorCDR_20' ) end [2025-04-09 03:54:18] Production.INFO: ProcessCDR(1,14866918,1,1,2) [2025-04-09 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866918', 'tblTempUsageDetail_20' ) start [2025-04-09 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866918', 'tblTempUsageDetail_20' ) end [2025-04-09 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:54:22] Production.INFO: ==22863== Releasing lock... [2025-04-09 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:55:05 [end_date_ymd] => 2025-04-09 03:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:55:05' and `end` < '2025-04-09 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-09 03:55:18] Production.INFO: count ==176 [2025-04-09 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:55:05 - End Time 2025-04-09 03:55:05 [2025-04-09 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866923', 'tblTempUsageDetail_20' ) start [2025-04-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866923', 'tblTempUsageDetail_20' ) end [2025-04-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866923', 'tblTempVendorCDR_20' ) start [2025-04-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866923', 'tblTempVendorCDR_20' ) end [2025-04-09 03:55:18] Production.INFO: ProcessCDR(1,14866923,1,1,2) [2025-04-09 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866923', 'tblTempUsageDetail_20' ) start [2025-04-09 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866923', 'tblTempUsageDetail_20' ) end [2025-04-09 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:55:22] Production.INFO: ==22937== Releasing lock... [2025-04-09 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:56:06 [end_date_ymd] => 2025-04-09 03:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 00:56:06' and `end` < '2025-04-09 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-09 03:56:18] Production.INFO: count ==173 [2025-04-09 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:56:06 - End Time 2025-04-09 03:56:06 [2025-04-09 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866928', 'tblTempUsageDetail_20' ) start [2025-04-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866928', 'tblTempUsageDetail_20' ) end [2025-04-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866928', 'tblTempVendorCDR_20' ) start [2025-04-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866928', 'tblTempVendorCDR_20' ) end [2025-04-09 03:56:18] Production.INFO: ProcessCDR(1,14866928,1,1,2) [2025-04-09 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866928', 'tblTempUsageDetail_20' ) start [2025-04-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866928', 'tblTempUsageDetail_20' ) end [2025-04-09 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:56:22] Production.INFO: ==23013== Releasing lock... [2025-04-09 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:57:05 [end_date_ymd] => 2025-04-09 03:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 00:57:05' and `end` < '2025-04-09 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-09 03:57:18] Production.INFO: count ==173 [2025-04-09 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:57:05 - End Time 2025-04-09 03:57:05 [2025-04-09 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866933', 'tblTempUsageDetail_20' ) start [2025-04-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866933', 'tblTempUsageDetail_20' ) end [2025-04-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866933', 'tblTempVendorCDR_20' ) start [2025-04-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866933', 'tblTempVendorCDR_20' ) end [2025-04-09 03:57:18] Production.INFO: ProcessCDR(1,14866933,1,1,2) [2025-04-09 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866933', 'tblTempUsageDetail_20' ) start [2025-04-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866933', 'tblTempUsageDetail_20' ) end [2025-04-09 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:57:21] Production.INFO: ==23089== Releasing lock... [2025-04-09 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:58:06 [end_date_ymd] => 2025-04-09 03:58:06 [RateCDR] => 1 ) [2025-04-09 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:58:06' and `end` < '2025-04-09 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:58:19] Production.INFO: count ==172 [2025-04-09 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 00:58:06 - End Time 2025-04-09 03:58:06 [2025-04-09 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866938', 'tblTempUsageDetail_20' ) start [2025-04-09 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866938', 'tblTempUsageDetail_20' ) end [2025-04-09 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866938', 'tblTempVendorCDR_20' ) start [2025-04-09 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866938', 'tblTempVendorCDR_20' ) end [2025-04-09 03:58:19] Production.INFO: ProcessCDR(1,14866938,1,1,2) [2025-04-09 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866938', 'tblTempUsageDetail_20' ) start [2025-04-09 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866938', 'tblTempUsageDetail_20' ) end [2025-04-09 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:58:22] Production.INFO: ==23163== Releasing lock... [2025-04-09 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 00:59:06 [end_date_ymd] => 2025-04-09 03:59:06 [RateCDR] => 1 ) [2025-04-09 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 00:59:06' and `end` < '2025-04-09 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 03:59:18] Production.INFO: count ==170 [2025-04-09 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 00:59:06 - End Time 2025-04-09 03:59:06 [2025-04-09 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866943', 'tblTempUsageDetail_20' ) start [2025-04-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866943', 'tblTempUsageDetail_20' ) end [2025-04-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866943', 'tblTempVendorCDR_20' ) start [2025-04-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866943', 'tblTempVendorCDR_20' ) end [2025-04-09 03:59:18] Production.INFO: ProcessCDR(1,14866943,1,1,2) [2025-04-09 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866943', 'tblTempUsageDetail_20' ) start [2025-04-09 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866943', 'tblTempUsageDetail_20' ) end [2025-04-09 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 03:59:22] Production.INFO: ==23233== Releasing lock... [2025-04-09 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 03:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:00:06 [end_date_ymd] => 2025-04-09 04:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:00:06' and `end` < '2025-04-09 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-09 04:00:19] Production.INFO: count ==160 [2025-04-09 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:00:06 - End Time 2025-04-09 04:00:06 [2025-04-09 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866949', 'tblTempUsageDetail_20' ) start [2025-04-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866949', 'tblTempUsageDetail_20' ) end [2025-04-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866949', 'tblTempVendorCDR_20' ) start [2025-04-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866949', 'tblTempVendorCDR_20' ) end [2025-04-09 04:00:19] Production.INFO: ProcessCDR(1,14866949,1,1,2) [2025-04-09 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866949', 'tblTempUsageDetail_20' ) start [2025-04-09 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866949', 'tblTempUsageDetail_20' ) end [2025-04-09 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:00:22] Production.INFO: ==23307== Releasing lock... [2025-04-09 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:01:05 [end_date_ymd] => 2025-04-09 04:01:05 [RateCDR] => 1 ) [2025-04-09 04: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-09 01:01:05' and `end` < '2025-04-09 04: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-09 04:01:18] Production.INFO: count ==156 [2025-04-09 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:01:05 - End Time 2025-04-09 04:01:05 [2025-04-09 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866955', 'tblTempUsageDetail_20' ) start [2025-04-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866955', 'tblTempUsageDetail_20' ) end [2025-04-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866955', 'tblTempVendorCDR_20' ) start [2025-04-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866955', 'tblTempVendorCDR_20' ) end [2025-04-09 04:01:18] Production.INFO: ProcessCDR(1,14866955,1,1,2) [2025-04-09 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866955', 'tblTempUsageDetail_20' ) start [2025-04-09 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866955', 'tblTempUsageDetail_20' ) end [2025-04-09 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:01:22] Production.INFO: ==23394== Releasing lock... [2025-04-09 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:02:05 [end_date_ymd] => 2025-04-09 04:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:02:05' and `end` < '2025-04-09 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-09 04:02:18] Production.INFO: count ==156 [2025-04-09 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:02:05 - End Time 2025-04-09 04:02:05 [2025-04-09 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866960', 'tblTempUsageDetail_20' ) start [2025-04-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866960', 'tblTempUsageDetail_20' ) end [2025-04-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866960', 'tblTempVendorCDR_20' ) start [2025-04-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866960', 'tblTempVendorCDR_20' ) end [2025-04-09 04:02:18] Production.INFO: ProcessCDR(1,14866960,1,1,2) [2025-04-09 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866960', 'tblTempUsageDetail_20' ) start [2025-04-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866960', 'tblTempUsageDetail_20' ) end [2025-04-09 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:02:21] Production.INFO: ==23466== Releasing lock... [2025-04-09 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:03:05 [end_date_ymd] => 2025-04-09 04:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:03:05' and `end` < '2025-04-09 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-09 04:03:18] Production.INFO: count ==156 [2025-04-09 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:03:05 - End Time 2025-04-09 04:03:05 [2025-04-09 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866965', 'tblTempUsageDetail_20' ) start [2025-04-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866965', 'tblTempUsageDetail_20' ) end [2025-04-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866965', 'tblTempVendorCDR_20' ) start [2025-04-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866965', 'tblTempVendorCDR_20' ) end [2025-04-09 04:03:18] Production.INFO: ProcessCDR(1,14866965,1,1,2) [2025-04-09 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866965', 'tblTempUsageDetail_20' ) start [2025-04-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866965', 'tblTempUsageDetail_20' ) end [2025-04-09 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:03:21] Production.INFO: ==23538== Releasing lock... [2025-04-09 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:04:05 [end_date_ymd] => 2025-04-09 04:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:04:05' and `end` < '2025-04-09 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-09 04:04:18] Production.INFO: count ==154 [2025-04-09 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:04:05 - End Time 2025-04-09 04:04:05 [2025-04-09 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866970', 'tblTempUsageDetail_20' ) start [2025-04-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866970', 'tblTempUsageDetail_20' ) end [2025-04-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866970', 'tblTempVendorCDR_20' ) start [2025-04-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866970', 'tblTempVendorCDR_20' ) end [2025-04-09 04:04:18] Production.INFO: ProcessCDR(1,14866970,1,1,2) [2025-04-09 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866970', 'tblTempUsageDetail_20' ) start [2025-04-09 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866970', 'tblTempUsageDetail_20' ) end [2025-04-09 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:04:22] Production.INFO: ==23611== Releasing lock... [2025-04-09 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:05:05 [end_date_ymd] => 2025-04-09 04:05:05 [RateCDR] => 1 ) [2025-04-09 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:05:05' and `end` < '2025-04-09 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:05:18] Production.INFO: count ==154 [2025-04-09 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:05:05 - End Time 2025-04-09 04:05:05 [2025-04-09 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866975', 'tblTempUsageDetail_20' ) start [2025-04-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866975', 'tblTempUsageDetail_20' ) end [2025-04-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866975', 'tblTempVendorCDR_20' ) start [2025-04-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866975', 'tblTempVendorCDR_20' ) end [2025-04-09 04:05:18] Production.INFO: ProcessCDR(1,14866975,1,1,2) [2025-04-09 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866975', 'tblTempUsageDetail_20' ) start [2025-04-09 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866975', 'tblTempUsageDetail_20' ) end [2025-04-09 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:05:21] Production.INFO: ==23722== Releasing lock... [2025-04-09 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:06:06 [end_date_ymd] => 2025-04-09 04:06:06 [RateCDR] => 1 ) [2025-04-09 04: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-09 01:06:06' and `end` < '2025-04-09 04: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-09 04:06:18] Production.INFO: count ==154 [2025-04-09 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:06:06 - End Time 2025-04-09 04:06:06 [2025-04-09 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866980', 'tblTempUsageDetail_20' ) start [2025-04-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866980', 'tblTempUsageDetail_20' ) end [2025-04-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866980', 'tblTempVendorCDR_20' ) start [2025-04-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866980', 'tblTempVendorCDR_20' ) end [2025-04-09 04:06:18] Production.INFO: ProcessCDR(1,14866980,1,1,2) [2025-04-09 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866980', 'tblTempUsageDetail_20' ) start [2025-04-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866980', 'tblTempUsageDetail_20' ) end [2025-04-09 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:06:22] Production.INFO: ==23792== Releasing lock... [2025-04-09 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:07:05 [end_date_ymd] => 2025-04-09 04:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:07:05' and `end` < '2025-04-09 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-09 04:07:17] Production.INFO: count ==156 [2025-04-09 04:07:17] Production.ERROR: pbx CDR StartTime 2025-04-09 01:07:05 - End Time 2025-04-09 04:07:05 [2025-04-09 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866985', 'tblTempUsageDetail_20' ) start [2025-04-09 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866985', 'tblTempUsageDetail_20' ) end [2025-04-09 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866985', 'tblTempVendorCDR_20' ) start [2025-04-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866985', 'tblTempVendorCDR_20' ) end [2025-04-09 04:07:18] Production.INFO: ProcessCDR(1,14866985,1,1,2) [2025-04-09 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866985', 'tblTempUsageDetail_20' ) start [2025-04-09 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866985', 'tblTempUsageDetail_20' ) end [2025-04-09 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:07:23] Production.INFO: ==23863== Releasing lock... [2025-04-09 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:08:06 [end_date_ymd] => 2025-04-09 04:08:06 [RateCDR] => 1 ) [2025-04-09 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:08:06' and `end` < '2025-04-09 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:08:19] Production.INFO: count ==157 [2025-04-09 04:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:08:06 - End Time 2025-04-09 04:08:06 [2025-04-09 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866990', 'tblTempUsageDetail_20' ) start [2025-04-09 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866990', 'tblTempUsageDetail_20' ) end [2025-04-09 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866990', 'tblTempVendorCDR_20' ) start [2025-04-09 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866990', 'tblTempVendorCDR_20' ) end [2025-04-09 04:08:19] Production.INFO: ProcessCDR(1,14866990,1,1,2) [2025-04-09 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866990', 'tblTempUsageDetail_20' ) start [2025-04-09 04:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866990', 'tblTempUsageDetail_20' ) end [2025-04-09 04:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:08:24] Production.INFO: ==23936== Releasing lock... [2025-04-09 04:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:08:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:09:04 [end_date_ymd] => 2025-04-09 04:09:04 [RateCDR] => 1 ) [2025-04-09 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-09 01:09:04' and `end` < '2025-04-09 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-09 04:09:17] Production.INFO: count ==159 [2025-04-09 04:09:17] Production.ERROR: pbx CDR StartTime 2025-04-09 01:09:04 - End Time 2025-04-09 04:09:04 [2025-04-09 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866995', 'tblTempUsageDetail_20' ) start [2025-04-09 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14866995', 'tblTempUsageDetail_20' ) end [2025-04-09 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866995', 'tblTempVendorCDR_20' ) start [2025-04-09 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14866995', 'tblTempVendorCDR_20' ) end [2025-04-09 04:09:17] Production.INFO: ProcessCDR(1,14866995,1,1,2) [2025-04-09 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14866995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14866995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14866995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14866995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866995', 'tblTempUsageDetail_20' ) start [2025-04-09 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14866995', 'tblTempUsageDetail_20' ) end [2025-04-09 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:09:22] Production.INFO: ==24006== Releasing lock... [2025-04-09 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:10:06 [end_date_ymd] => 2025-04-09 04:10:06 [RateCDR] => 1 ) [2025-04-09 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:10:06' and `end` < '2025-04-09 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:10:19] Production.INFO: count ==174 [2025-04-09 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:10:06 - End Time 2025-04-09 04:10:06 [2025-04-09 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867001', 'tblTempUsageDetail_20' ) start [2025-04-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867001', 'tblTempUsageDetail_20' ) end [2025-04-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867001', 'tblTempVendorCDR_20' ) start [2025-04-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867001', 'tblTempVendorCDR_20' ) end [2025-04-09 04:10:19] Production.INFO: ProcessCDR(1,14867001,1,1,2) [2025-04-09 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867001', 'tblTempUsageDetail_20' ) start [2025-04-09 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867001', 'tblTempUsageDetail_20' ) end [2025-04-09 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:10:22] Production.INFO: ==24085== Releasing lock... [2025-04-09 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:11:04 [end_date_ymd] => 2025-04-09 04:11:04 [RateCDR] => 1 ) [2025-04-09 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-09 01:11:04' and `end` < '2025-04-09 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-09 04:11:17] Production.INFO: count ==174 [2025-04-09 04:11:17] Production.ERROR: pbx CDR StartTime 2025-04-09 01:11:04 - End Time 2025-04-09 04:11:04 [2025-04-09 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867006', 'tblTempUsageDetail_20' ) start [2025-04-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867006', 'tblTempUsageDetail_20' ) end [2025-04-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867006', 'tblTempVendorCDR_20' ) start [2025-04-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867006', 'tblTempVendorCDR_20' ) end [2025-04-09 04:11:17] Production.INFO: ProcessCDR(1,14867006,1,1,2) [2025-04-09 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867006', 'tblTempUsageDetail_20' ) start [2025-04-09 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867006', 'tblTempUsageDetail_20' ) end [2025-04-09 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:11:20] Production.INFO: ==24162== Releasing lock... [2025-04-09 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:12:05 [end_date_ymd] => 2025-04-09 04:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:12:05' and `end` < '2025-04-09 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-09 04:12:18] Production.INFO: count ==176 [2025-04-09 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:12:05 - End Time 2025-04-09 04:12:05 [2025-04-09 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867011', 'tblTempUsageDetail_20' ) start [2025-04-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867011', 'tblTempUsageDetail_20' ) end [2025-04-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867011', 'tblTempVendorCDR_20' ) start [2025-04-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867011', 'tblTempVendorCDR_20' ) end [2025-04-09 04:12:18] Production.INFO: ProcessCDR(1,14867011,1,1,2) [2025-04-09 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867011', 'tblTempUsageDetail_20' ) start [2025-04-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867011', 'tblTempUsageDetail_20' ) end [2025-04-09 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:12:21] Production.INFO: ==24231== Releasing lock... [2025-04-09 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:13:05 [end_date_ymd] => 2025-04-09 04:13:05 [RateCDR] => 1 ) [2025-04-09 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:13:05' and `end` < '2025-04-09 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:13:18] Production.INFO: count ==173 [2025-04-09 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:13:05 - End Time 2025-04-09 04:13:05 [2025-04-09 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867016', 'tblTempUsageDetail_20' ) start [2025-04-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867016', 'tblTempUsageDetail_20' ) end [2025-04-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867016', 'tblTempVendorCDR_20' ) start [2025-04-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867016', 'tblTempVendorCDR_20' ) end [2025-04-09 04:13:18] Production.INFO: ProcessCDR(1,14867016,1,1,2) [2025-04-09 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867016', 'tblTempUsageDetail_20' ) start [2025-04-09 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867016', 'tblTempUsageDetail_20' ) end [2025-04-09 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:13:21] Production.INFO: ==24302== Releasing lock... [2025-04-09 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:14:05 [end_date_ymd] => 2025-04-09 04:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:14:05' and `end` < '2025-04-09 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-09 04:14:18] Production.INFO: count ==172 [2025-04-09 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:14:05 - End Time 2025-04-09 04:14:05 [2025-04-09 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867021', 'tblTempUsageDetail_20' ) start [2025-04-09 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867021', 'tblTempUsageDetail_20' ) end [2025-04-09 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867021', 'tblTempVendorCDR_20' ) start [2025-04-09 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867021', 'tblTempVendorCDR_20' ) end [2025-04-09 04:14:18] Production.INFO: ProcessCDR(1,14867021,1,1,2) [2025-04-09 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867021', 'tblTempUsageDetail_20' ) start [2025-04-09 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867021', 'tblTempUsageDetail_20' ) end [2025-04-09 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:14:21] Production.INFO: ==24372== Releasing lock... [2025-04-09 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:15:05 [end_date_ymd] => 2025-04-09 04:15:05 [RateCDR] => 1 ) [2025-04-09 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:15:05' and `end` < '2025-04-09 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:15:18] Production.INFO: count ==172 [2025-04-09 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:15:05 - End Time 2025-04-09 04:15:05 [2025-04-09 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867026', 'tblTempUsageDetail_20' ) start [2025-04-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867026', 'tblTempUsageDetail_20' ) end [2025-04-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867026', 'tblTempVendorCDR_20' ) start [2025-04-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867026', 'tblTempVendorCDR_20' ) end [2025-04-09 04:15:18] Production.INFO: ProcessCDR(1,14867026,1,1,2) [2025-04-09 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867026', 'tblTempUsageDetail_20' ) start [2025-04-09 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867026', 'tblTempUsageDetail_20' ) end [2025-04-09 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:15:22] Production.INFO: ==24445== Releasing lock... [2025-04-09 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:16:05 [end_date_ymd] => 2025-04-09 04:16:05 [RateCDR] => 1 ) [2025-04-09 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:16:05' and `end` < '2025-04-09 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:16:18] Production.INFO: count ==172 [2025-04-09 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:16:05 - End Time 2025-04-09 04:16:05 [2025-04-09 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867031', 'tblTempUsageDetail_20' ) start [2025-04-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867031', 'tblTempUsageDetail_20' ) end [2025-04-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867031', 'tblTempVendorCDR_20' ) start [2025-04-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867031', 'tblTempVendorCDR_20' ) end [2025-04-09 04:16:18] Production.INFO: ProcessCDR(1,14867031,1,1,2) [2025-04-09 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867031', 'tblTempUsageDetail_20' ) start [2025-04-09 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867031', 'tblTempUsageDetail_20' ) end [2025-04-09 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:16:21] Production.INFO: ==24520== Releasing lock... [2025-04-09 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:17:05 [end_date_ymd] => 2025-04-09 04:17:05 [RateCDR] => 1 ) [2025-04-09 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:17:05' and `end` < '2025-04-09 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:17:18] Production.INFO: count ==172 [2025-04-09 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:17:05 - End Time 2025-04-09 04:17:05 [2025-04-09 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867036', 'tblTempUsageDetail_20' ) start [2025-04-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867036', 'tblTempUsageDetail_20' ) end [2025-04-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867036', 'tblTempVendorCDR_20' ) start [2025-04-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867036', 'tblTempVendorCDR_20' ) end [2025-04-09 04:17:18] Production.INFO: ProcessCDR(1,14867036,1,1,2) [2025-04-09 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867036', 'tblTempUsageDetail_20' ) start [2025-04-09 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867036', 'tblTempUsageDetail_20' ) end [2025-04-09 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:17:22] Production.INFO: ==24592== Releasing lock... [2025-04-09 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:18:05 [end_date_ymd] => 2025-04-09 04:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:18:05' and `end` < '2025-04-09 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-09 04:18:18] Production.INFO: count ==172 [2025-04-09 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:18:05 - End Time 2025-04-09 04:18:05 [2025-04-09 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867041', 'tblTempUsageDetail_20' ) start [2025-04-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867041', 'tblTempUsageDetail_20' ) end [2025-04-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867041', 'tblTempVendorCDR_20' ) start [2025-04-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867041', 'tblTempVendorCDR_20' ) end [2025-04-09 04:18:18] Production.INFO: ProcessCDR(1,14867041,1,1,2) [2025-04-09 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867041', 'tblTempUsageDetail_20' ) start [2025-04-09 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867041', 'tblTempUsageDetail_20' ) end [2025-04-09 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:18:21] Production.INFO: ==24662== Releasing lock... [2025-04-09 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:19:05 [end_date_ymd] => 2025-04-09 04:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:19:05' and `end` < '2025-04-09 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-09 04:19:18] Production.INFO: count ==170 [2025-04-09 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:19:05 - End Time 2025-04-09 04:19:05 [2025-04-09 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867046', 'tblTempUsageDetail_20' ) start [2025-04-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867046', 'tblTempUsageDetail_20' ) end [2025-04-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867046', 'tblTempVendorCDR_20' ) start [2025-04-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867046', 'tblTempVendorCDR_20' ) end [2025-04-09 04:19:18] Production.INFO: ProcessCDR(1,14867046,1,1,2) [2025-04-09 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867046', 'tblTempUsageDetail_20' ) start [2025-04-09 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867046', 'tblTempUsageDetail_20' ) end [2025-04-09 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:19:22] Production.INFO: ==24736== Releasing lock... [2025-04-09 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:20:05 [end_date_ymd] => 2025-04-09 04:20:05 [RateCDR] => 1 ) [2025-04-09 04: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 01:20:05' and `end` < '2025-04-09 04: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-09 04:20:18] Production.INFO: count ==162 [2025-04-09 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:20:05 - End Time 2025-04-09 04:20:05 [2025-04-09 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867051', 'tblTempUsageDetail_20' ) start [2025-04-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867051', 'tblTempUsageDetail_20' ) end [2025-04-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867051', 'tblTempVendorCDR_20' ) start [2025-04-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867051', 'tblTempVendorCDR_20' ) end [2025-04-09 04:20:18] Production.INFO: ProcessCDR(1,14867051,1,1,2) [2025-04-09 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867051', 'tblTempUsageDetail_20' ) start [2025-04-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867051', 'tblTempUsageDetail_20' ) end [2025-04-09 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:20:21] Production.INFO: ==24809== Releasing lock... [2025-04-09 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:21:05 [end_date_ymd] => 2025-04-09 04:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:21:05' and `end` < '2025-04-09 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-09 04:21:18] Production.INFO: count ==160 [2025-04-09 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:21:05 - End Time 2025-04-09 04:21:05 [2025-04-09 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867057', 'tblTempUsageDetail_20' ) start [2025-04-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867057', 'tblTempUsageDetail_20' ) end [2025-04-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867057', 'tblTempVendorCDR_20' ) start [2025-04-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867057', 'tblTempVendorCDR_20' ) end [2025-04-09 04:21:18] Production.INFO: ProcessCDR(1,14867057,1,1,2) [2025-04-09 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867057', 'tblTempUsageDetail_20' ) start [2025-04-09 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867057', 'tblTempUsageDetail_20' ) end [2025-04-09 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:21:21] Production.INFO: ==24920== Releasing lock... [2025-04-09 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:22:06 [end_date_ymd] => 2025-04-09 04:22:06 [RateCDR] => 1 ) [2025-04-09 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:22:06' and `end` < '2025-04-09 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:22:18] Production.INFO: count ==160 [2025-04-09 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:22:06 - End Time 2025-04-09 04:22:06 [2025-04-09 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867062', 'tblTempUsageDetail_20' ) start [2025-04-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867062', 'tblTempUsageDetail_20' ) end [2025-04-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867062', 'tblTempVendorCDR_20' ) start [2025-04-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867062', 'tblTempVendorCDR_20' ) end [2025-04-09 04:22:18] Production.INFO: ProcessCDR(1,14867062,1,1,2) [2025-04-09 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867062', 'tblTempUsageDetail_20' ) start [2025-04-09 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867062', 'tblTempUsageDetail_20' ) end [2025-04-09 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:22:22] Production.INFO: ==24990== Releasing lock... [2025-04-09 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:23:05 [end_date_ymd] => 2025-04-09 04:23:05 [RateCDR] => 1 ) [2025-04-09 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:23:05' and `end` < '2025-04-09 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:23:17] Production.INFO: count ==160 [2025-04-09 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-09 01:23:05 - End Time 2025-04-09 04:23:05 [2025-04-09 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867067', 'tblTempUsageDetail_20' ) start [2025-04-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867067', 'tblTempUsageDetail_20' ) end [2025-04-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867067', 'tblTempVendorCDR_20' ) start [2025-04-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867067', 'tblTempVendorCDR_20' ) end [2025-04-09 04:23:17] Production.INFO: ProcessCDR(1,14867067,1,1,2) [2025-04-09 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867067', 'tblTempUsageDetail_20' ) start [2025-04-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867067', 'tblTempUsageDetail_20' ) end [2025-04-09 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:23:21] Production.INFO: ==25063== Releasing lock... [2025-04-09 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:24:05 [end_date_ymd] => 2025-04-09 04:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:24:05' and `end` < '2025-04-09 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-09 04:24:18] Production.INFO: count ==160 [2025-04-09 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:24:05 - End Time 2025-04-09 04:24:05 [2025-04-09 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867072', 'tblTempUsageDetail_20' ) start [2025-04-09 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867072', 'tblTempUsageDetail_20' ) end [2025-04-09 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867072', 'tblTempVendorCDR_20' ) start [2025-04-09 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867072', 'tblTempVendorCDR_20' ) end [2025-04-09 04:24:18] Production.INFO: ProcessCDR(1,14867072,1,1,2) [2025-04-09 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867072', 'tblTempUsageDetail_20' ) start [2025-04-09 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867072', 'tblTempUsageDetail_20' ) end [2025-04-09 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:24:22] Production.INFO: ==25135== Releasing lock... [2025-04-09 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:25:05 [end_date_ymd] => 2025-04-09 04:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:25:05' and `end` < '2025-04-09 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-09 04:25:18] Production.INFO: count ==160 [2025-04-09 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:25:05 - End Time 2025-04-09 04:25:05 [2025-04-09 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867077', 'tblTempUsageDetail_20' ) start [2025-04-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867077', 'tblTempUsageDetail_20' ) end [2025-04-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867077', 'tblTempVendorCDR_20' ) start [2025-04-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867077', 'tblTempVendorCDR_20' ) end [2025-04-09 04:25:18] Production.INFO: ProcessCDR(1,14867077,1,1,2) [2025-04-09 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867077', 'tblTempUsageDetail_20' ) start [2025-04-09 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867077', 'tblTempUsageDetail_20' ) end [2025-04-09 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:25:21] Production.INFO: ==25210== Releasing lock... [2025-04-09 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:26:05 [end_date_ymd] => 2025-04-09 04:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:26:05' and `end` < '2025-04-09 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-09 04:26:18] Production.INFO: count ==160 [2025-04-09 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:26:05 - End Time 2025-04-09 04:26:05 [2025-04-09 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867082', 'tblTempUsageDetail_20' ) start [2025-04-09 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867082', 'tblTempUsageDetail_20' ) end [2025-04-09 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867082', 'tblTempVendorCDR_20' ) start [2025-04-09 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867082', 'tblTempVendorCDR_20' ) end [2025-04-09 04:26:18] Production.INFO: ProcessCDR(1,14867082,1,1,2) [2025-04-09 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867082', 'tblTempUsageDetail_20' ) start [2025-04-09 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867082', 'tblTempUsageDetail_20' ) end [2025-04-09 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:26:21] Production.INFO: ==25281== Releasing lock... [2025-04-09 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:27:06 [end_date_ymd] => 2025-04-09 04:27:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:27:06' and `end` < '2025-04-09 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-09 04:27:18] Production.INFO: count ==160 [2025-04-09 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:27:06 - End Time 2025-04-09 04:27:06 [2025-04-09 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867087', 'tblTempUsageDetail_20' ) start [2025-04-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867087', 'tblTempUsageDetail_20' ) end [2025-04-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867087', 'tblTempVendorCDR_20' ) start [2025-04-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867087', 'tblTempVendorCDR_20' ) end [2025-04-09 04:27:18] Production.INFO: ProcessCDR(1,14867087,1,1,2) [2025-04-09 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867087', 'tblTempUsageDetail_20' ) start [2025-04-09 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867087', 'tblTempUsageDetail_20' ) end [2025-04-09 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:27:22] Production.INFO: ==25353== Releasing lock... [2025-04-09 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:27:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:28:05 [end_date_ymd] => 2025-04-09 04:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:28:05' and `end` < '2025-04-09 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-09 04:28:18] Production.INFO: count ==160 [2025-04-09 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:28:05 - End Time 2025-04-09 04:28:05 [2025-04-09 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867092', 'tblTempUsageDetail_20' ) start [2025-04-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867092', 'tblTempUsageDetail_20' ) end [2025-04-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867092', 'tblTempVendorCDR_20' ) start [2025-04-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867092', 'tblTempVendorCDR_20' ) end [2025-04-09 04:28:18] Production.INFO: ProcessCDR(1,14867092,1,1,2) [2025-04-09 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867092', 'tblTempUsageDetail_20' ) start [2025-04-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867092', 'tblTempUsageDetail_20' ) end [2025-04-09 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:28:21] Production.INFO: ==25423== Releasing lock... [2025-04-09 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:29:06 [end_date_ymd] => 2025-04-09 04:29:06 [RateCDR] => 1 ) [2025-04-09 04: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-09 01:29:06' and `end` < '2025-04-09 04: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-09 04:29:18] Production.INFO: count ==160 [2025-04-09 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:29:06 - End Time 2025-04-09 04:29:06 [2025-04-09 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867097', 'tblTempUsageDetail_20' ) start [2025-04-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867097', 'tblTempUsageDetail_20' ) end [2025-04-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867097', 'tblTempVendorCDR_20' ) start [2025-04-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867097', 'tblTempVendorCDR_20' ) end [2025-04-09 04:29:18] Production.INFO: ProcessCDR(1,14867097,1,1,2) [2025-04-09 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867097', 'tblTempUsageDetail_20' ) start [2025-04-09 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867097', 'tblTempUsageDetail_20' ) end [2025-04-09 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:29:22] Production.INFO: ==25494== Releasing lock... [2025-04-09 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:30:06 [end_date_ymd] => 2025-04-09 04:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:30:06' and `end` < '2025-04-09 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-09 04:30:19] Production.INFO: count ==154 [2025-04-09 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:30:06 - End Time 2025-04-09 04:30:06 [2025-04-09 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867104', 'tblTempUsageDetail_20' ) start [2025-04-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867104', 'tblTempUsageDetail_20' ) end [2025-04-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867104', 'tblTempVendorCDR_20' ) start [2025-04-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867104', 'tblTempVendorCDR_20' ) end [2025-04-09 04:30:19] Production.INFO: ProcessCDR(1,14867104,1,1,2) [2025-04-09 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867104', 'tblTempUsageDetail_20' ) start [2025-04-09 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867104', 'tblTempUsageDetail_20' ) end [2025-04-09 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:30:23] Production.INFO: ==25569== Releasing lock... [2025-04-09 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:31:05 [end_date_ymd] => 2025-04-09 04:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:31:05' and `end` < '2025-04-09 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-09 04:31:18] Production.INFO: count ==156 [2025-04-09 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:31:05 - End Time 2025-04-09 04:31:05 [2025-04-09 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867109', 'tblTempUsageDetail_20' ) start [2025-04-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867109', 'tblTempUsageDetail_20' ) end [2025-04-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867109', 'tblTempVendorCDR_20' ) start [2025-04-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867109', 'tblTempVendorCDR_20' ) end [2025-04-09 04:31:18] Production.INFO: ProcessCDR(1,14867109,1,1,2) [2025-04-09 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867109', 'tblTempUsageDetail_20' ) start [2025-04-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867109', 'tblTempUsageDetail_20' ) end [2025-04-09 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:31:21] Production.INFO: ==25674== Releasing lock... [2025-04-09 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:32:05 [end_date_ymd] => 2025-04-09 04:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:32:05' and `end` < '2025-04-09 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-09 04:32:17] Production.INFO: count ==156 [2025-04-09 04:32:17] Production.ERROR: pbx CDR StartTime 2025-04-09 01:32:05 - End Time 2025-04-09 04:32:05 [2025-04-09 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867114', 'tblTempUsageDetail_20' ) start [2025-04-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867114', 'tblTempUsageDetail_20' ) end [2025-04-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867114', 'tblTempVendorCDR_20' ) start [2025-04-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867114', 'tblTempVendorCDR_20' ) end [2025-04-09 04:32:17] Production.INFO: ProcessCDR(1,14867114,1,1,2) [2025-04-09 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867114', 'tblTempUsageDetail_20' ) start [2025-04-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867114', 'tblTempUsageDetail_20' ) end [2025-04-09 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:32:21] Production.INFO: ==25770== Releasing lock... [2025-04-09 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:33:05 [end_date_ymd] => 2025-04-09 04:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:33:05' and `end` < '2025-04-09 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-09 04:33:18] Production.INFO: count ==156 [2025-04-09 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:33:05 - End Time 2025-04-09 04:33:05 [2025-04-09 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867119', 'tblTempUsageDetail_20' ) start [2025-04-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867119', 'tblTempUsageDetail_20' ) end [2025-04-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867119', 'tblTempVendorCDR_20' ) start [2025-04-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867119', 'tblTempVendorCDR_20' ) end [2025-04-09 04:33:18] Production.INFO: ProcessCDR(1,14867119,1,1,2) [2025-04-09 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867119', 'tblTempUsageDetail_20' ) start [2025-04-09 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867119', 'tblTempUsageDetail_20' ) end [2025-04-09 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:33:21] Production.INFO: ==25877== Releasing lock... [2025-04-09 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:34:05 [end_date_ymd] => 2025-04-09 04:34:05 [RateCDR] => 1 ) [2025-04-09 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:34:05' and `end` < '2025-04-09 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:34:18] Production.INFO: count ==156 [2025-04-09 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:34:05 - End Time 2025-04-09 04:34:05 [2025-04-09 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867124', 'tblTempUsageDetail_20' ) start [2025-04-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867124', 'tblTempUsageDetail_20' ) end [2025-04-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867124', 'tblTempVendorCDR_20' ) start [2025-04-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867124', 'tblTempVendorCDR_20' ) end [2025-04-09 04:34:18] Production.INFO: ProcessCDR(1,14867124,1,1,2) [2025-04-09 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867124', 'tblTempUsageDetail_20' ) start [2025-04-09 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867124', 'tblTempUsageDetail_20' ) end [2025-04-09 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:34:21] Production.INFO: ==25987== Releasing lock... [2025-04-09 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:35:05 [end_date_ymd] => 2025-04-09 04:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:35:05' and `end` < '2025-04-09 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-09 04:35:18] Production.INFO: count ==156 [2025-04-09 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:35:05 - End Time 2025-04-09 04:35:05 [2025-04-09 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867129', 'tblTempUsageDetail_20' ) start [2025-04-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867129', 'tblTempUsageDetail_20' ) end [2025-04-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867129', 'tblTempVendorCDR_20' ) start [2025-04-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867129', 'tblTempVendorCDR_20' ) end [2025-04-09 04:35:18] Production.INFO: ProcessCDR(1,14867129,1,1,2) [2025-04-09 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867129', 'tblTempUsageDetail_20' ) start [2025-04-09 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867129', 'tblTempUsageDetail_20' ) end [2025-04-09 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:35:21] Production.INFO: ==26101== Releasing lock... [2025-04-09 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:36:05 [end_date_ymd] => 2025-04-09 04:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:36:05' and `end` < '2025-04-09 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-09 04:36:18] Production.INFO: count ==156 [2025-04-09 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:36:05 - End Time 2025-04-09 04:36:05 [2025-04-09 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867134', 'tblTempUsageDetail_20' ) start [2025-04-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867134', 'tblTempUsageDetail_20' ) end [2025-04-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867134', 'tblTempVendorCDR_20' ) start [2025-04-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867134', 'tblTempVendorCDR_20' ) end [2025-04-09 04:36:18] Production.INFO: ProcessCDR(1,14867134,1,1,2) [2025-04-09 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867134', 'tblTempUsageDetail_20' ) start [2025-04-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867134', 'tblTempUsageDetail_20' ) end [2025-04-09 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:36:21] Production.INFO: ==26251== Releasing lock... [2025-04-09 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:37:05 [end_date_ymd] => 2025-04-09 04:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:37:05' and `end` < '2025-04-09 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-09 04:37:18] Production.INFO: count ==156 [2025-04-09 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:37:05 - End Time 2025-04-09 04:37:05 [2025-04-09 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867139', 'tblTempUsageDetail_20' ) start [2025-04-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867139', 'tblTempUsageDetail_20' ) end [2025-04-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867139', 'tblTempVendorCDR_20' ) start [2025-04-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867139', 'tblTempVendorCDR_20' ) end [2025-04-09 04:37:18] Production.INFO: ProcessCDR(1,14867139,1,1,2) [2025-04-09 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867139', 'tblTempUsageDetail_20' ) start [2025-04-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867139', 'tblTempUsageDetail_20' ) end [2025-04-09 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:37:21] Production.INFO: ==26358== Releasing lock... [2025-04-09 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:38:06 [end_date_ymd] => 2025-04-09 04:38:06 [RateCDR] => 1 ) [2025-04-09 04: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 01:38:06' and `end` < '2025-04-09 04: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-09 04:38:18] Production.INFO: count ==156 [2025-04-09 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:38:06 - End Time 2025-04-09 04:38:06 [2025-04-09 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867144', 'tblTempUsageDetail_20' ) start [2025-04-09 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867144', 'tblTempUsageDetail_20' ) end [2025-04-09 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867144', 'tblTempVendorCDR_20' ) start [2025-04-09 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867144', 'tblTempVendorCDR_20' ) end [2025-04-09 04:38:18] Production.INFO: ProcessCDR(1,14867144,1,1,2) [2025-04-09 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867144', 'tblTempUsageDetail_20' ) start [2025-04-09 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867144', 'tblTempUsageDetail_20' ) end [2025-04-09 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:38:22] Production.INFO: ==26469== Releasing lock... [2025-04-09 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:39:05 [end_date_ymd] => 2025-04-09 04:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:39:05' and `end` < '2025-04-09 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-09 04:39:18] Production.INFO: count ==156 [2025-04-09 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:39:05 - End Time 2025-04-09 04:39:05 [2025-04-09 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867149', 'tblTempUsageDetail_20' ) start [2025-04-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867149', 'tblTempUsageDetail_20' ) end [2025-04-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867149', 'tblTempVendorCDR_20' ) start [2025-04-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867149', 'tblTempVendorCDR_20' ) end [2025-04-09 04:39:18] Production.INFO: ProcessCDR(1,14867149,1,1,2) [2025-04-09 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867149', 'tblTempUsageDetail_20' ) start [2025-04-09 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867149', 'tblTempUsageDetail_20' ) end [2025-04-09 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:39:21] Production.INFO: ==26573== Releasing lock... [2025-04-09 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:40:06 [end_date_ymd] => 2025-04-09 04:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:40:06' and `end` < '2025-04-09 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-09 04:40:19] Production.INFO: count ==148 [2025-04-09 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:40:06 - End Time 2025-04-09 04:40:06 [2025-04-09 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867155', 'tblTempUsageDetail_20' ) start [2025-04-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867155', 'tblTempUsageDetail_20' ) end [2025-04-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867155', 'tblTempVendorCDR_20' ) start [2025-04-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867155', 'tblTempVendorCDR_20' ) end [2025-04-09 04:40:19] Production.INFO: ProcessCDR(1,14867155,1,1,2) [2025-04-09 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867155', 'tblTempUsageDetail_20' ) start [2025-04-09 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867155', 'tblTempUsageDetail_20' ) end [2025-04-09 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:40:23] Production.INFO: ==26686== Releasing lock... [2025-04-09 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:41:05 [end_date_ymd] => 2025-04-09 04:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:41:05' and `end` < '2025-04-09 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-09 04:41:18] Production.INFO: count ==148 [2025-04-09 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:41:05 - End Time 2025-04-09 04:41:05 [2025-04-09 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867160', 'tblTempUsageDetail_20' ) start [2025-04-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867160', 'tblTempUsageDetail_20' ) end [2025-04-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867160', 'tblTempVendorCDR_20' ) start [2025-04-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867160', 'tblTempVendorCDR_20' ) end [2025-04-09 04:41:18] Production.INFO: ProcessCDR(1,14867160,1,1,2) [2025-04-09 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867160', 'tblTempUsageDetail_20' ) start [2025-04-09 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867160', 'tblTempUsageDetail_20' ) end [2025-04-09 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:41:21] Production.INFO: ==26799== Releasing lock... [2025-04-09 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:42:05 [end_date_ymd] => 2025-04-09 04:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:42:05' and `end` < '2025-04-09 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-09 04:42:18] Production.INFO: count ==148 [2025-04-09 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:42:05 - End Time 2025-04-09 04:42:05 [2025-04-09 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867165', 'tblTempUsageDetail_20' ) start [2025-04-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867165', 'tblTempUsageDetail_20' ) end [2025-04-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867165', 'tblTempVendorCDR_20' ) start [2025-04-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867165', 'tblTempVendorCDR_20' ) end [2025-04-09 04:42:18] Production.INFO: ProcessCDR(1,14867165,1,1,2) [2025-04-09 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867165', 'tblTempUsageDetail_20' ) start [2025-04-09 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867165', 'tblTempUsageDetail_20' ) end [2025-04-09 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:42:22] Production.INFO: ==26910== Releasing lock... [2025-04-09 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:43:05 [end_date_ymd] => 2025-04-09 04:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:43:05' and `end` < '2025-04-09 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-09 04:43:18] Production.INFO: count ==148 [2025-04-09 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:43:05 - End Time 2025-04-09 04:43:05 [2025-04-09 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867170', 'tblTempUsageDetail_20' ) start [2025-04-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867170', 'tblTempUsageDetail_20' ) end [2025-04-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867170', 'tblTempVendorCDR_20' ) start [2025-04-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867170', 'tblTempVendorCDR_20' ) end [2025-04-09 04:43:18] Production.INFO: ProcessCDR(1,14867170,1,1,2) [2025-04-09 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867170', 'tblTempUsageDetail_20' ) start [2025-04-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867170', 'tblTempUsageDetail_20' ) end [2025-04-09 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:43:21] Production.INFO: ==27015== Releasing lock... [2025-04-09 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:44:06 [end_date_ymd] => 2025-04-09 04:44:06 [RateCDR] => 1 ) [2025-04-09 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:44:06' and `end` < '2025-04-09 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:44:18] Production.INFO: count ==146 [2025-04-09 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:44:06 - End Time 2025-04-09 04:44:06 [2025-04-09 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867175', 'tblTempUsageDetail_20' ) start [2025-04-09 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867175', 'tblTempUsageDetail_20' ) end [2025-04-09 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867175', 'tblTempVendorCDR_20' ) start [2025-04-09 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867175', 'tblTempVendorCDR_20' ) end [2025-04-09 04:44:18] Production.INFO: ProcessCDR(1,14867175,1,1,2) [2025-04-09 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867175', 'tblTempUsageDetail_20' ) start [2025-04-09 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867175', 'tblTempUsageDetail_20' ) end [2025-04-09 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:44:22] Production.INFO: ==27125== Releasing lock... [2025-04-09 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:45:05 [end_date_ymd] => 2025-04-09 04:45:05 [RateCDR] => 1 ) [2025-04-09 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:45:05' and `end` < '2025-04-09 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:45:18] Production.INFO: count ==146 [2025-04-09 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:45:05 - End Time 2025-04-09 04:45:05 [2025-04-09 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867180', 'tblTempUsageDetail_20' ) start [2025-04-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867180', 'tblTempUsageDetail_20' ) end [2025-04-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867180', 'tblTempVendorCDR_20' ) start [2025-04-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867180', 'tblTempVendorCDR_20' ) end [2025-04-09 04:45:18] Production.INFO: ProcessCDR(1,14867180,1,1,2) [2025-04-09 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867180', 'tblTempUsageDetail_20' ) start [2025-04-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867180', 'tblTempUsageDetail_20' ) end [2025-04-09 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:45:21] Production.INFO: ==27234== Releasing lock... [2025-04-09 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:46:05 [end_date_ymd] => 2025-04-09 04:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:46:05' and `end` < '2025-04-09 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-09 04:46:18] Production.INFO: count ==148 [2025-04-09 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:46:05 - End Time 2025-04-09 04:46:05 [2025-04-09 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867185', 'tblTempUsageDetail_20' ) start [2025-04-09 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867185', 'tblTempUsageDetail_20' ) end [2025-04-09 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867185', 'tblTempVendorCDR_20' ) start [2025-04-09 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867185', 'tblTempVendorCDR_20' ) end [2025-04-09 04:46:18] Production.INFO: ProcessCDR(1,14867185,1,1,2) [2025-04-09 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867185', 'tblTempUsageDetail_20' ) start [2025-04-09 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867185', 'tblTempUsageDetail_20' ) end [2025-04-09 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:46:22] Production.INFO: ==27336== Releasing lock... [2025-04-09 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:47:05 [end_date_ymd] => 2025-04-09 04:47:05 [RateCDR] => 1 ) [2025-04-09 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:47:05' and `end` < '2025-04-09 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:47:18] Production.INFO: count ==148 [2025-04-09 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:47:05 - End Time 2025-04-09 04:47:05 [2025-04-09 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867190', 'tblTempUsageDetail_20' ) start [2025-04-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867190', 'tblTempUsageDetail_20' ) end [2025-04-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867190', 'tblTempVendorCDR_20' ) start [2025-04-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867190', 'tblTempVendorCDR_20' ) end [2025-04-09 04:47:18] Production.INFO: ProcessCDR(1,14867190,1,1,2) [2025-04-09 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867190', 'tblTempUsageDetail_20' ) start [2025-04-09 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867190', 'tblTempUsageDetail_20' ) end [2025-04-09 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:47:21] Production.INFO: ==27448== Releasing lock... [2025-04-09 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:48:06 [end_date_ymd] => 2025-04-09 04:48:06 [RateCDR] => 1 ) [2025-04-09 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:48:06' and `end` < '2025-04-09 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:48:19] Production.INFO: count ==147 [2025-04-09 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:48:06 - End Time 2025-04-09 04:48:06 [2025-04-09 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867195', 'tblTempUsageDetail_20' ) start [2025-04-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867195', 'tblTempUsageDetail_20' ) end [2025-04-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867195', 'tblTempVendorCDR_20' ) start [2025-04-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867195', 'tblTempVendorCDR_20' ) end [2025-04-09 04:48:19] Production.INFO: ProcessCDR(1,14867195,1,1,2) [2025-04-09 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867195', 'tblTempUsageDetail_20' ) start [2025-04-09 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867195', 'tblTempUsageDetail_20' ) end [2025-04-09 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:48:22] Production.INFO: ==27554== Releasing lock... [2025-04-09 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:49:05 [end_date_ymd] => 2025-04-09 04:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:49:05' and `end` < '2025-04-09 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-09 04:49:18] Production.INFO: count ==147 [2025-04-09 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:49:05 - End Time 2025-04-09 04:49:05 [2025-04-09 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867200', 'tblTempUsageDetail_20' ) start [2025-04-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867200', 'tblTempUsageDetail_20' ) end [2025-04-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867200', 'tblTempVendorCDR_20' ) start [2025-04-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867200', 'tblTempVendorCDR_20' ) end [2025-04-09 04:49:18] Production.INFO: ProcessCDR(1,14867200,1,1,2) [2025-04-09 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867200', 'tblTempUsageDetail_20' ) start [2025-04-09 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867200', 'tblTempUsageDetail_20' ) end [2025-04-09 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:49:21] Production.INFO: ==27665== Releasing lock... [2025-04-09 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:50:06 [end_date_ymd] => 2025-04-09 04:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:50:06' and `end` < '2025-04-09 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:50:19] Production.INFO: count ==147 [2025-04-09 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:50:06 - End Time 2025-04-09 04:50:06 [2025-04-09 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867206', 'tblTempUsageDetail_20' ) start [2025-04-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867206', 'tblTempUsageDetail_20' ) end [2025-04-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867206', 'tblTempVendorCDR_20' ) start [2025-04-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867206', 'tblTempVendorCDR_20' ) end [2025-04-09 04:50:19] Production.INFO: ProcessCDR(1,14867206,1,1,2) [2025-04-09 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867206', 'tblTempUsageDetail_20' ) start [2025-04-09 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867206', 'tblTempUsageDetail_20' ) end [2025-04-09 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:50:22] Production.INFO: ==27776== Releasing lock... [2025-04-09 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:51:05 [end_date_ymd] => 2025-04-09 04:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:51:05' and `end` < '2025-04-09 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-09 04:51:19] Production.INFO: count ==147 [2025-04-09 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:51:05 - End Time 2025-04-09 04:51:05 [2025-04-09 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867211', 'tblTempUsageDetail_20' ) start [2025-04-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867211', 'tblTempUsageDetail_20' ) end [2025-04-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867211', 'tblTempVendorCDR_20' ) start [2025-04-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867211', 'tblTempVendorCDR_20' ) end [2025-04-09 04:51:19] Production.INFO: ProcessCDR(1,14867211,1,1,2) [2025-04-09 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867211', 'tblTempUsageDetail_20' ) start [2025-04-09 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867211', 'tblTempUsageDetail_20' ) end [2025-04-09 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:51:22] Production.INFO: ==27918== Releasing lock... [2025-04-09 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:52:05 [end_date_ymd] => 2025-04-09 04:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:52:05' and `end` < '2025-04-09 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-09 04:52:18] Production.INFO: count ==147 [2025-04-09 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:52:05 - End Time 2025-04-09 04:52:05 [2025-04-09 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867216', 'tblTempUsageDetail_20' ) start [2025-04-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867216', 'tblTempUsageDetail_20' ) end [2025-04-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867216', 'tblTempVendorCDR_20' ) start [2025-04-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867216', 'tblTempVendorCDR_20' ) end [2025-04-09 04:52:18] Production.INFO: ProcessCDR(1,14867216,1,1,2) [2025-04-09 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867216', 'tblTempUsageDetail_20' ) start [2025-04-09 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867216', 'tblTempUsageDetail_20' ) end [2025-04-09 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:52:21] Production.INFO: ==28024== Releasing lock... [2025-04-09 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:53:05 [end_date_ymd] => 2025-04-09 04:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:53:05' and `end` < '2025-04-09 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-09 04:53:18] Production.INFO: count ==146 [2025-04-09 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:53:05 - End Time 2025-04-09 04:53:05 [2025-04-09 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867221', 'tblTempUsageDetail_20' ) start [2025-04-09 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867221', 'tblTempUsageDetail_20' ) end [2025-04-09 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867221', 'tblTempVendorCDR_20' ) start [2025-04-09 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867221', 'tblTempVendorCDR_20' ) end [2025-04-09 04:53:18] Production.INFO: ProcessCDR(1,14867221,1,1,2) [2025-04-09 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867221', 'tblTempUsageDetail_20' ) start [2025-04-09 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867221', 'tblTempUsageDetail_20' ) end [2025-04-09 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:53:21] Production.INFO: ==28134== Releasing lock... [2025-04-09 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:54:05 [end_date_ymd] => 2025-04-09 04:54:05 [RateCDR] => 1 ) [2025-04-09 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 01:54:05' and `end` < '2025-04-09 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:54:19] Production.INFO: count ==146 [2025-04-09 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:54:05 - End Time 2025-04-09 04:54:05 [2025-04-09 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867226', 'tblTempUsageDetail_20' ) start [2025-04-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867226', 'tblTempUsageDetail_20' ) end [2025-04-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867226', 'tblTempVendorCDR_20' ) start [2025-04-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867226', 'tblTempVendorCDR_20' ) end [2025-04-09 04:54:19] Production.INFO: ProcessCDR(1,14867226,1,1,2) [2025-04-09 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867226', 'tblTempUsageDetail_20' ) start [2025-04-09 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867226', 'tblTempUsageDetail_20' ) end [2025-04-09 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:54:23] Production.INFO: ==28244== Releasing lock... [2025-04-09 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:54:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:55:04 [end_date_ymd] => 2025-04-09 04:55:04 [RateCDR] => 1 ) [2025-04-09 04: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 01:55:04' and `end` < '2025-04-09 04: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-09 04:55:18] Production.INFO: count ==146 [2025-04-09 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:55:04 - End Time 2025-04-09 04:55:04 [2025-04-09 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867231', 'tblTempUsageDetail_20' ) start [2025-04-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867231', 'tblTempUsageDetail_20' ) end [2025-04-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867231', 'tblTempVendorCDR_20' ) start [2025-04-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867231', 'tblTempVendorCDR_20' ) end [2025-04-09 04:55:18] Production.INFO: ProcessCDR(1,14867231,1,1,2) [2025-04-09 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867231', 'tblTempUsageDetail_20' ) start [2025-04-09 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867231', 'tblTempUsageDetail_20' ) end [2025-04-09 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:55:21] Production.INFO: ==28339== Releasing lock... [2025-04-09 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:56:06 [end_date_ymd] => 2025-04-09 04:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 01:56:06' and `end` < '2025-04-09 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 04:56:20] Production.INFO: count ==146 [2025-04-09 04:56:20] Production.ERROR: pbx CDR StartTime 2025-04-09 01:56:06 - End Time 2025-04-09 04:56:06 [2025-04-09 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867236', 'tblTempUsageDetail_20' ) start [2025-04-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867236', 'tblTempUsageDetail_20' ) end [2025-04-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867236', 'tblTempVendorCDR_20' ) start [2025-04-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867236', 'tblTempVendorCDR_20' ) end [2025-04-09 04:56:20] Production.INFO: ProcessCDR(1,14867236,1,1,2) [2025-04-09 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867236', 'tblTempUsageDetail_20' ) start [2025-04-09 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867236', 'tblTempUsageDetail_20' ) end [2025-04-09 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:56:23] Production.INFO: ==28410== Releasing lock... [2025-04-09 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:57:05 [end_date_ymd] => 2025-04-09 04:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:57:05' and `end` < '2025-04-09 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-09 04:57:18] Production.INFO: count ==148 [2025-04-09 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:57:05 - End Time 2025-04-09 04:57:05 [2025-04-09 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867241', 'tblTempUsageDetail_20' ) start [2025-04-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867241', 'tblTempUsageDetail_20' ) end [2025-04-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867241', 'tblTempVendorCDR_20' ) start [2025-04-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867241', 'tblTempVendorCDR_20' ) end [2025-04-09 04:57:18] Production.INFO: ProcessCDR(1,14867241,1,1,2) [2025-04-09 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867241', 'tblTempUsageDetail_20' ) start [2025-04-09 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867241', 'tblTempUsageDetail_20' ) end [2025-04-09 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:57:21] Production.INFO: ==28483== Releasing lock... [2025-04-09 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:58:05 [end_date_ymd] => 2025-04-09 04:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:58:05' and `end` < '2025-04-09 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-09 04:58:19] Production.INFO: count ==146 [2025-04-09 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 01:58:05 - End Time 2025-04-09 04:58:05 [2025-04-09 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867246', 'tblTempUsageDetail_20' ) start [2025-04-09 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867246', 'tblTempUsageDetail_20' ) end [2025-04-09 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867246', 'tblTempVendorCDR_20' ) start [2025-04-09 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867246', 'tblTempVendorCDR_20' ) end [2025-04-09 04:58:19] Production.INFO: ProcessCDR(1,14867246,1,1,2) [2025-04-09 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867246', 'tblTempUsageDetail_20' ) start [2025-04-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867246', 'tblTempUsageDetail_20' ) end [2025-04-09 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:58:23] Production.INFO: ==28554== Releasing lock... [2025-04-09 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 01:59:05 [end_date_ymd] => 2025-04-09 04:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 01:59:05' and `end` < '2025-04-09 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-09 04:59:18] Production.INFO: count ==146 [2025-04-09 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 01:59:05 - End Time 2025-04-09 04:59:05 [2025-04-09 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867251', 'tblTempUsageDetail_20' ) start [2025-04-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867251', 'tblTempUsageDetail_20' ) end [2025-04-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867251', 'tblTempVendorCDR_20' ) start [2025-04-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867251', 'tblTempVendorCDR_20' ) end [2025-04-09 04:59:18] Production.INFO: ProcessCDR(1,14867251,1,1,2) [2025-04-09 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867251', 'tblTempUsageDetail_20' ) start [2025-04-09 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867251', 'tblTempUsageDetail_20' ) end [2025-04-09 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 04:59:22] Production.INFO: ==28626== Releasing lock... [2025-04-09 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 04:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:00:06 [end_date_ymd] => 2025-04-09 05:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:00:06' and `end` < '2025-04-09 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-09 05:00:19] Production.INFO: count ==143 [2025-04-09 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:00:06 - End Time 2025-04-09 05:00:06 [2025-04-09 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867257', 'tblTempUsageDetail_20' ) start [2025-04-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867257', 'tblTempUsageDetail_20' ) end [2025-04-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867257', 'tblTempVendorCDR_20' ) start [2025-04-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867257', 'tblTempVendorCDR_20' ) end [2025-04-09 05:00:19] Production.INFO: ProcessCDR(1,14867257,1,1,2) [2025-04-09 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867257', 'tblTempUsageDetail_20' ) start [2025-04-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867257', 'tblTempUsageDetail_20' ) end [2025-04-09 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:00:24] Production.INFO: ==28699== Releasing lock... [2025-04-09 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:01:06 [end_date_ymd] => 2025-04-09 05:01:06 [RateCDR] => 1 ) [2025-04-09 05: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 02:01:06' and `end` < '2025-04-09 05: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-09 05:01:20] Production.INFO: count ==143 [2025-04-09 05:01:20] Production.ERROR: pbx CDR StartTime 2025-04-09 02:01:06 - End Time 2025-04-09 05:01:06 [2025-04-09 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867262', 'tblTempUsageDetail_20' ) start [2025-04-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867262', 'tblTempUsageDetail_20' ) end [2025-04-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867262', 'tblTempVendorCDR_20' ) start [2025-04-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867262', 'tblTempVendorCDR_20' ) end [2025-04-09 05:01:20] Production.INFO: ProcessCDR(1,14867262,1,1,2) [2025-04-09 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867262', 'tblTempUsageDetail_20' ) start [2025-04-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867262', 'tblTempUsageDetail_20' ) end [2025-04-09 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:01:23] Production.INFO: ==28785== Releasing lock... [2025-04-09 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:02:05 [end_date_ymd] => 2025-04-09 05:02:05 [RateCDR] => 1 ) [2025-04-09 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:02:05' and `end` < '2025-04-09 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:02:18] Production.INFO: count ==143 [2025-04-09 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:02:05 - End Time 2025-04-09 05:02:05 [2025-04-09 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867267', 'tblTempUsageDetail_20' ) start [2025-04-09 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867267', 'tblTempUsageDetail_20' ) end [2025-04-09 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867267', 'tblTempVendorCDR_20' ) start [2025-04-09 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867267', 'tblTempVendorCDR_20' ) end [2025-04-09 05:02:18] Production.INFO: ProcessCDR(1,14867267,1,1,2) [2025-04-09 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867267', 'tblTempUsageDetail_20' ) start [2025-04-09 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867267', 'tblTempUsageDetail_20' ) end [2025-04-09 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:02:21] Production.INFO: ==28854== Releasing lock... [2025-04-09 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:03:06 [end_date_ymd] => 2025-04-09 05:03:06 [RateCDR] => 1 ) [2025-04-09 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:03:06' and `end` < '2025-04-09 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:03:19] Production.INFO: count ==143 [2025-04-09 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:03:06 - End Time 2025-04-09 05:03:06 [2025-04-09 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867272', 'tblTempUsageDetail_20' ) start [2025-04-09 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867272', 'tblTempUsageDetail_20' ) end [2025-04-09 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867272', 'tblTempVendorCDR_20' ) start [2025-04-09 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867272', 'tblTempVendorCDR_20' ) end [2025-04-09 05:03:19] Production.INFO: ProcessCDR(1,14867272,1,1,2) [2025-04-09 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867272', 'tblTempUsageDetail_20' ) start [2025-04-09 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867272', 'tblTempUsageDetail_20' ) end [2025-04-09 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:03:23] Production.INFO: ==28927== Releasing lock... [2025-04-09 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:04:04 [end_date_ymd] => 2025-04-09 05:04:04 [RateCDR] => 1 ) [2025-04-09 05:04: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 02:04:04' and `end` < '2025-04-09 05:04: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-09 05:04:17] Production.INFO: count ==143 [2025-04-09 05:04:17] Production.ERROR: pbx CDR StartTime 2025-04-09 02:04:04 - End Time 2025-04-09 05:04:04 [2025-04-09 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867277', 'tblTempUsageDetail_20' ) start [2025-04-09 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867277', 'tblTempUsageDetail_20' ) end [2025-04-09 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867277', 'tblTempVendorCDR_20' ) start [2025-04-09 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867277', 'tblTempVendorCDR_20' ) end [2025-04-09 05:04:17] Production.INFO: ProcessCDR(1,14867277,1,1,2) [2025-04-09 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867277', 'tblTempUsageDetail_20' ) start [2025-04-09 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867277', 'tblTempUsageDetail_20' ) end [2025-04-09 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:04:21] Production.INFO: ==28999== Releasing lock... [2025-04-09 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:05:05 [end_date_ymd] => 2025-04-09 05:05:05 [RateCDR] => 1 ) [2025-04-09 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:05:05' and `end` < '2025-04-09 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:05:18] Production.INFO: count ==143 [2025-04-09 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:05:05 - End Time 2025-04-09 05:05:05 [2025-04-09 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867282', 'tblTempUsageDetail_20' ) start [2025-04-09 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867282', 'tblTempUsageDetail_20' ) end [2025-04-09 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867282', 'tblTempVendorCDR_20' ) start [2025-04-09 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867282', 'tblTempVendorCDR_20' ) end [2025-04-09 05:05:18] Production.INFO: ProcessCDR(1,14867282,1,1,2) [2025-04-09 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867282', 'tblTempUsageDetail_20' ) start [2025-04-09 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867282', 'tblTempUsageDetail_20' ) end [2025-04-09 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:05:22] Production.INFO: ==29070== Releasing lock... [2025-04-09 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:06:05 [end_date_ymd] => 2025-04-09 05:06:05 [RateCDR] => 1 ) [2025-04-09 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:06:05' and `end` < '2025-04-09 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:06:18] Production.INFO: count ==143 [2025-04-09 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:06:05 - End Time 2025-04-09 05:06:05 [2025-04-09 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867287', 'tblTempUsageDetail_20' ) start [2025-04-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867287', 'tblTempUsageDetail_20' ) end [2025-04-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867287', 'tblTempVendorCDR_20' ) start [2025-04-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867287', 'tblTempVendorCDR_20' ) end [2025-04-09 05:06:18] Production.INFO: ProcessCDR(1,14867287,1,1,2) [2025-04-09 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867287', 'tblTempUsageDetail_20' ) start [2025-04-09 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867287', 'tblTempUsageDetail_20' ) end [2025-04-09 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:06:21] Production.INFO: ==29140== Releasing lock... [2025-04-09 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:07:05 [end_date_ymd] => 2025-04-09 05:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:07:05' and `end` < '2025-04-09 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-09 05:07:18] Production.INFO: count ==143 [2025-04-09 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:07:05 - End Time 2025-04-09 05:07:05 [2025-04-09 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867292', 'tblTempUsageDetail_20' ) start [2025-04-09 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867292', 'tblTempUsageDetail_20' ) end [2025-04-09 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867292', 'tblTempVendorCDR_20' ) start [2025-04-09 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867292', 'tblTempVendorCDR_20' ) end [2025-04-09 05:07:19] Production.INFO: ProcessCDR(1,14867292,1,1,2) [2025-04-09 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867292', 'tblTempUsageDetail_20' ) start [2025-04-09 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867292', 'tblTempUsageDetail_20' ) end [2025-04-09 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:07:22] Production.INFO: ==29250== Releasing lock... [2025-04-09 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:08:04 [end_date_ymd] => 2025-04-09 05:08:04 [RateCDR] => 1 ) [2025-04-09 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-09 02:08:04' and `end` < '2025-04-09 05: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-09 05:08:17] Production.INFO: count ==143 [2025-04-09 05:08:17] Production.ERROR: pbx CDR StartTime 2025-04-09 02:08:04 - End Time 2025-04-09 05:08:04 [2025-04-09 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867297', 'tblTempUsageDetail_20' ) start [2025-04-09 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867297', 'tblTempUsageDetail_20' ) end [2025-04-09 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867297', 'tblTempVendorCDR_20' ) start [2025-04-09 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867297', 'tblTempVendorCDR_20' ) end [2025-04-09 05:08:17] Production.INFO: ProcessCDR(1,14867297,1,1,2) [2025-04-09 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867297', 'tblTempUsageDetail_20' ) start [2025-04-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867297', 'tblTempUsageDetail_20' ) end [2025-04-09 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:08:21] Production.INFO: ==29320== Releasing lock... [2025-04-09 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:09:05 [end_date_ymd] => 2025-04-09 05:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:09:05' and `end` < '2025-04-09 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-09 05:09:18] Production.INFO: count ==143 [2025-04-09 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:09:05 - End Time 2025-04-09 05:09:05 [2025-04-09 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867302', 'tblTempUsageDetail_20' ) start [2025-04-09 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867302', 'tblTempUsageDetail_20' ) end [2025-04-09 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867302', 'tblTempVendorCDR_20' ) start [2025-04-09 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867302', 'tblTempVendorCDR_20' ) end [2025-04-09 05:09:18] Production.INFO: ProcessCDR(1,14867302,1,1,2) [2025-04-09 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867302', 'tblTempUsageDetail_20' ) start [2025-04-09 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867302', 'tblTempUsageDetail_20' ) end [2025-04-09 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:09:21] Production.INFO: ==29392== Releasing lock... [2025-04-09 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:10:06 [end_date_ymd] => 2025-04-09 05:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:10:06' and `end` < '2025-04-09 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-09 05:10:18] Production.INFO: count ==141 [2025-04-09 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:10:06 - End Time 2025-04-09 05:10:06 [2025-04-09 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867308', 'tblTempUsageDetail_20' ) start [2025-04-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867308', 'tblTempUsageDetail_20' ) end [2025-04-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867308', 'tblTempVendorCDR_20' ) start [2025-04-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867308', 'tblTempVendorCDR_20' ) end [2025-04-09 05:10:18] Production.INFO: ProcessCDR(1,14867308,1,1,2) [2025-04-09 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867308', 'tblTempUsageDetail_20' ) start [2025-04-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867308', 'tblTempUsageDetail_20' ) end [2025-04-09 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:10:22] Production.INFO: ==29471== Releasing lock... [2025-04-09 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:11:05 [end_date_ymd] => 2025-04-09 05:11:05 [RateCDR] => 1 ) [2025-04-09 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:11:05' and `end` < '2025-04-09 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:11:17] Production.INFO: count ==141 [2025-04-09 05:11:17] Production.ERROR: pbx CDR StartTime 2025-04-09 02:11:05 - End Time 2025-04-09 05:11:05 [2025-04-09 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867313', 'tblTempUsageDetail_20' ) start [2025-04-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867313', 'tblTempUsageDetail_20' ) end [2025-04-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867313', 'tblTempVendorCDR_20' ) start [2025-04-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867313', 'tblTempVendorCDR_20' ) end [2025-04-09 05:11:17] Production.INFO: ProcessCDR(1,14867313,1,1,2) [2025-04-09 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867313', 'tblTempUsageDetail_20' ) start [2025-04-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867313', 'tblTempUsageDetail_20' ) end [2025-04-09 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:11:21] Production.INFO: ==29546== Releasing lock... [2025-04-09 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:12:06 [end_date_ymd] => 2025-04-09 05:12:06 [RateCDR] => 1 ) [2025-04-09 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:12:06' and `end` < '2025-04-09 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:12:18] Production.INFO: count ==141 [2025-04-09 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:12:06 - End Time 2025-04-09 05:12:06 [2025-04-09 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867318', 'tblTempUsageDetail_20' ) start [2025-04-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867318', 'tblTempUsageDetail_20' ) end [2025-04-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867318', 'tblTempVendorCDR_20' ) start [2025-04-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867318', 'tblTempVendorCDR_20' ) end [2025-04-09 05:12:18] Production.INFO: ProcessCDR(1,14867318,1,1,2) [2025-04-09 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867318', 'tblTempUsageDetail_20' ) start [2025-04-09 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867318', 'tblTempUsageDetail_20' ) end [2025-04-09 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:12:22] Production.INFO: ==29616== Releasing lock... [2025-04-09 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:13:04 [end_date_ymd] => 2025-04-09 05:13:04 [RateCDR] => 1 ) [2025-04-09 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:13:04' and `end` < '2025-04-09 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:13:17] Production.INFO: count ==141 [2025-04-09 05:13:17] Production.ERROR: pbx CDR StartTime 2025-04-09 02:13:04 - End Time 2025-04-09 05:13:04 [2025-04-09 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867323', 'tblTempUsageDetail_20' ) start [2025-04-09 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867323', 'tblTempUsageDetail_20' ) end [2025-04-09 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867323', 'tblTempVendorCDR_20' ) start [2025-04-09 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867323', 'tblTempVendorCDR_20' ) end [2025-04-09 05:13:17] Production.INFO: ProcessCDR(1,14867323,1,1,2) [2025-04-09 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867323', 'tblTempUsageDetail_20' ) start [2025-04-09 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867323', 'tblTempUsageDetail_20' ) end [2025-04-09 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:13:21] Production.INFO: ==29688== Releasing lock... [2025-04-09 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:14:05 [end_date_ymd] => 2025-04-09 05:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:14:05' and `end` < '2025-04-09 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:14:18] Production.INFO: count ==141 [2025-04-09 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:14:05 - End Time 2025-04-09 05:14:05 [2025-04-09 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867328', 'tblTempUsageDetail_20' ) start [2025-04-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867328', 'tblTempUsageDetail_20' ) end [2025-04-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867328', 'tblTempVendorCDR_20' ) start [2025-04-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867328', 'tblTempVendorCDR_20' ) end [2025-04-09 05:14:18] Production.INFO: ProcessCDR(1,14867328,1,1,2) [2025-04-09 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867328', 'tblTempUsageDetail_20' ) start [2025-04-09 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867328', 'tblTempUsageDetail_20' ) end [2025-04-09 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:14:21] Production.INFO: ==29763== Releasing lock... [2025-04-09 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:15:05 [end_date_ymd] => 2025-04-09 05:15:05 [RateCDR] => 1 ) [2025-04-09 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:15:05' and `end` < '2025-04-09 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:15:18] Production.INFO: count ==141 [2025-04-09 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:15:05 - End Time 2025-04-09 05:15:05 [2025-04-09 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867333', 'tblTempUsageDetail_20' ) start [2025-04-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867333', 'tblTempUsageDetail_20' ) end [2025-04-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867333', 'tblTempVendorCDR_20' ) start [2025-04-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867333', 'tblTempVendorCDR_20' ) end [2025-04-09 05:15:18] Production.INFO: ProcessCDR(1,14867333,1,1,2) [2025-04-09 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867333', 'tblTempUsageDetail_20' ) start [2025-04-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867333', 'tblTempUsageDetail_20' ) end [2025-04-09 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:15:21] Production.INFO: ==29835== Releasing lock... [2025-04-09 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:16:06 [end_date_ymd] => 2025-04-09 05:16:06 [RateCDR] => 1 ) [2025-04-09 05: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-09 02:16:06' and `end` < '2025-04-09 05: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-09 05:16:18] Production.INFO: count ==141 [2025-04-09 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:16:06 - End Time 2025-04-09 05:16:06 [2025-04-09 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867338', 'tblTempUsageDetail_20' ) start [2025-04-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867338', 'tblTempUsageDetail_20' ) end [2025-04-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867338', 'tblTempVendorCDR_20' ) start [2025-04-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867338', 'tblTempVendorCDR_20' ) end [2025-04-09 05:16:18] Production.INFO: ProcessCDR(1,14867338,1,1,2) [2025-04-09 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867338', 'tblTempUsageDetail_20' ) start [2025-04-09 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867338', 'tblTempUsageDetail_20' ) end [2025-04-09 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:16:22] Production.INFO: ==29910== Releasing lock... [2025-04-09 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:17:05 [end_date_ymd] => 2025-04-09 05:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:17:05' and `end` < '2025-04-09 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-09 05:17:18] Production.INFO: count ==141 [2025-04-09 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:17:05 - End Time 2025-04-09 05:17:05 [2025-04-09 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867343', 'tblTempUsageDetail_20' ) start [2025-04-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867343', 'tblTempUsageDetail_20' ) end [2025-04-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867343', 'tblTempVendorCDR_20' ) start [2025-04-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867343', 'tblTempVendorCDR_20' ) end [2025-04-09 05:17:18] Production.INFO: ProcessCDR(1,14867343,1,1,2) [2025-04-09 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867343', 'tblTempUsageDetail_20' ) start [2025-04-09 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867343', 'tblTempUsageDetail_20' ) end [2025-04-09 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:17:22] Production.INFO: ==29982== Releasing lock... [2025-04-09 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:18:05 [end_date_ymd] => 2025-04-09 05:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:18:05' and `end` < '2025-04-09 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-09 05:18:18] Production.INFO: count ==141 [2025-04-09 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:18:05 - End Time 2025-04-09 05:18:05 [2025-04-09 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867348', 'tblTempUsageDetail_20' ) start [2025-04-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867348', 'tblTempUsageDetail_20' ) end [2025-04-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867348', 'tblTempVendorCDR_20' ) start [2025-04-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867348', 'tblTempVendorCDR_20' ) end [2025-04-09 05:18:18] Production.INFO: ProcessCDR(1,14867348,1,1,2) [2025-04-09 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867348', 'tblTempUsageDetail_20' ) start [2025-04-09 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867348', 'tblTempUsageDetail_20' ) end [2025-04-09 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:18:22] Production.INFO: ==30066== Releasing lock... [2025-04-09 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:19:05 [end_date_ymd] => 2025-04-09 05:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:19:05' and `end` < '2025-04-09 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-09 05:19:17] Production.INFO: count ==141 [2025-04-09 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:19:05 - End Time 2025-04-09 05:19:05 [2025-04-09 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867353', 'tblTempUsageDetail_20' ) start [2025-04-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867353', 'tblTempUsageDetail_20' ) end [2025-04-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867353', 'tblTempVendorCDR_20' ) start [2025-04-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867353', 'tblTempVendorCDR_20' ) end [2025-04-09 05:19:18] Production.INFO: ProcessCDR(1,14867353,1,1,2) [2025-04-09 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867353', 'tblTempUsageDetail_20' ) start [2025-04-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867353', 'tblTempUsageDetail_20' ) end [2025-04-09 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:19:21] Production.INFO: ==30135== Releasing lock... [2025-04-09 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:20:06 [end_date_ymd] => 2025-04-09 05:20:06 [RateCDR] => 1 ) [2025-04-09 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:20:06' and `end` < '2025-04-09 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:20:19] Production.INFO: count ==132 [2025-04-09 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:20:06 - End Time 2025-04-09 05:20:06 [2025-04-09 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867359', 'tblTempUsageDetail_20' ) start [2025-04-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867359', 'tblTempUsageDetail_20' ) end [2025-04-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867359', 'tblTempVendorCDR_20' ) start [2025-04-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867359', 'tblTempVendorCDR_20' ) end [2025-04-09 05:20:19] Production.INFO: ProcessCDR(1,14867359,1,1,2) [2025-04-09 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867359', 'tblTempUsageDetail_20' ) start [2025-04-09 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867359', 'tblTempUsageDetail_20' ) end [2025-04-09 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:20:22] Production.INFO: ==30212== Releasing lock... [2025-04-09 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:21:05 [end_date_ymd] => 2025-04-09 05:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:21:05' and `end` < '2025-04-09 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-09 05:21:18] Production.INFO: count ==132 [2025-04-09 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:21:05 - End Time 2025-04-09 05:21:05 [2025-04-09 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867364', 'tblTempUsageDetail_20' ) start [2025-04-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867364', 'tblTempUsageDetail_20' ) end [2025-04-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867364', 'tblTempVendorCDR_20' ) start [2025-04-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867364', 'tblTempVendorCDR_20' ) end [2025-04-09 05:21:18] Production.INFO: ProcessCDR(1,14867364,1,1,2) [2025-04-09 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867364', 'tblTempUsageDetail_20' ) start [2025-04-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867364', 'tblTempUsageDetail_20' ) end [2025-04-09 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:21:21] Production.INFO: ==30288== Releasing lock... [2025-04-09 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:22:06 [end_date_ymd] => 2025-04-09 05:22:06 [RateCDR] => 1 ) [2025-04-09 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:22:06' and `end` < '2025-04-09 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:22:18] Production.INFO: count ==132 [2025-04-09 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:22:06 - End Time 2025-04-09 05:22:06 [2025-04-09 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867369', 'tblTempUsageDetail_20' ) start [2025-04-09 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867369', 'tblTempUsageDetail_20' ) end [2025-04-09 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867369', 'tblTempVendorCDR_20' ) start [2025-04-09 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867369', 'tblTempVendorCDR_20' ) end [2025-04-09 05:22:19] Production.INFO: ProcessCDR(1,14867369,1,1,2) [2025-04-09 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867369', 'tblTempUsageDetail_20' ) start [2025-04-09 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867369', 'tblTempUsageDetail_20' ) end [2025-04-09 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:22:22] Production.INFO: ==30361== Releasing lock... [2025-04-09 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:23:05 [end_date_ymd] => 2025-04-09 05:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:23:05' and `end` < '2025-04-09 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-09 05:23:18] Production.INFO: count ==132 [2025-04-09 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:23:05 - End Time 2025-04-09 05:23:05 [2025-04-09 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867374', 'tblTempUsageDetail_20' ) start [2025-04-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867374', 'tblTempUsageDetail_20' ) end [2025-04-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867374', 'tblTempVendorCDR_20' ) start [2025-04-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867374', 'tblTempVendorCDR_20' ) end [2025-04-09 05:23:18] Production.INFO: ProcessCDR(1,14867374,1,1,2) [2025-04-09 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867374', 'tblTempUsageDetail_20' ) start [2025-04-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867374', 'tblTempUsageDetail_20' ) end [2025-04-09 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:23:21] Production.INFO: ==30475== Releasing lock... [2025-04-09 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:24:06 [end_date_ymd] => 2025-04-09 05:24:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:24:06' and `end` < '2025-04-09 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-09 05:24:18] Production.INFO: count ==132 [2025-04-09 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:24:06 - End Time 2025-04-09 05:24:06 [2025-04-09 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867379', 'tblTempUsageDetail_20' ) start [2025-04-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867379', 'tblTempUsageDetail_20' ) end [2025-04-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867379', 'tblTempVendorCDR_20' ) start [2025-04-09 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867379', 'tblTempVendorCDR_20' ) end [2025-04-09 05:24:19] Production.INFO: ProcessCDR(1,14867379,1,1,2) [2025-04-09 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867379', 'tblTempUsageDetail_20' ) start [2025-04-09 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867379', 'tblTempUsageDetail_20' ) end [2025-04-09 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:24:22] Production.INFO: ==30555== Releasing lock... [2025-04-09 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:25:05 [end_date_ymd] => 2025-04-09 05:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:25:05' and `end` < '2025-04-09 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-09 05:25:18] Production.INFO: count ==132 [2025-04-09 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:25:05 - End Time 2025-04-09 05:25:05 [2025-04-09 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867384', 'tblTempUsageDetail_20' ) start [2025-04-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867384', 'tblTempUsageDetail_20' ) end [2025-04-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867384', 'tblTempVendorCDR_20' ) start [2025-04-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867384', 'tblTempVendorCDR_20' ) end [2025-04-09 05:25:18] Production.INFO: ProcessCDR(1,14867384,1,1,2) [2025-04-09 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867384', 'tblTempUsageDetail_20' ) start [2025-04-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867384', 'tblTempUsageDetail_20' ) end [2025-04-09 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:25:21] Production.INFO: ==30629== Releasing lock... [2025-04-09 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:26:05 [end_date_ymd] => 2025-04-09 05:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:26:05' and `end` < '2025-04-09 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-09 05:26:18] Production.INFO: count ==132 [2025-04-09 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:26:05 - End Time 2025-04-09 05:26:05 [2025-04-09 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867389', 'tblTempUsageDetail_20' ) start [2025-04-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867389', 'tblTempUsageDetail_20' ) end [2025-04-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867389', 'tblTempVendorCDR_20' ) start [2025-04-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867389', 'tblTempVendorCDR_20' ) end [2025-04-09 05:26:18] Production.INFO: ProcessCDR(1,14867389,1,1,2) [2025-04-09 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867389', 'tblTempUsageDetail_20' ) start [2025-04-09 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867389', 'tblTempUsageDetail_20' ) end [2025-04-09 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:26:22] Production.INFO: ==30704== Releasing lock... [2025-04-09 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:27:05 [end_date_ymd] => 2025-04-09 05:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:27:05' and `end` < '2025-04-09 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-09 05:27:18] Production.INFO: count ==132 [2025-04-09 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:27:05 - End Time 2025-04-09 05:27:05 [2025-04-09 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867394', 'tblTempUsageDetail_20' ) start [2025-04-09 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867394', 'tblTempUsageDetail_20' ) end [2025-04-09 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867394', 'tblTempVendorCDR_20' ) start [2025-04-09 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867394', 'tblTempVendorCDR_20' ) end [2025-04-09 05:27:18] Production.INFO: ProcessCDR(1,14867394,1,1,2) [2025-04-09 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867394', 'tblTempUsageDetail_20' ) start [2025-04-09 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867394', 'tblTempUsageDetail_20' ) end [2025-04-09 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:27:22] Production.INFO: ==30776== Releasing lock... [2025-04-09 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:28:06 [end_date_ymd] => 2025-04-09 05:28:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:28:06' and `end` < '2025-04-09 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-09 05:28:18] Production.INFO: count ==132 [2025-04-09 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:28:06 - End Time 2025-04-09 05:28:06 [2025-04-09 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867399', 'tblTempUsageDetail_20' ) start [2025-04-09 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867399', 'tblTempUsageDetail_20' ) end [2025-04-09 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867399', 'tblTempVendorCDR_20' ) start [2025-04-09 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867399', 'tblTempVendorCDR_20' ) end [2025-04-09 05:28:19] Production.INFO: ProcessCDR(1,14867399,1,1,2) [2025-04-09 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867399', 'tblTempUsageDetail_20' ) start [2025-04-09 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867399', 'tblTempUsageDetail_20' ) end [2025-04-09 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:28:22] Production.INFO: ==30850== Releasing lock... [2025-04-09 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:29:05 [end_date_ymd] => 2025-04-09 05:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:29:05' and `end` < '2025-04-09 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-09 05:29:18] Production.INFO: count ==132 [2025-04-09 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:29:05 - End Time 2025-04-09 05:29:05 [2025-04-09 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867404', 'tblTempUsageDetail_20' ) start [2025-04-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867404', 'tblTempUsageDetail_20' ) end [2025-04-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867404', 'tblTempVendorCDR_20' ) start [2025-04-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867404', 'tblTempVendorCDR_20' ) end [2025-04-09 05:29:18] Production.INFO: ProcessCDR(1,14867404,1,1,2) [2025-04-09 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867404', 'tblTempUsageDetail_20' ) start [2025-04-09 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867404', 'tblTempUsageDetail_20' ) end [2025-04-09 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:29:21] Production.INFO: ==30923== Releasing lock... [2025-04-09 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:30:06 [end_date_ymd] => 2025-04-09 05:30:06 [RateCDR] => 1 ) [2025-04-09 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:30:06' and `end` < '2025-04-09 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:30:19] Production.INFO: count ==122 [2025-04-09 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:30:06 - End Time 2025-04-09 05:30:06 [2025-04-09 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867409', 'tblTempUsageDetail_20' ) start [2025-04-09 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867409', 'tblTempUsageDetail_20' ) end [2025-04-09 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867409', 'tblTempVendorCDR_20' ) start [2025-04-09 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867409', 'tblTempVendorCDR_20' ) end [2025-04-09 05:30:19] Production.INFO: ProcessCDR(1,14867409,1,1,2) [2025-04-09 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867409', 'tblTempUsageDetail_20' ) start [2025-04-09 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867409', 'tblTempUsageDetail_20' ) end [2025-04-09 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:30:22] Production.INFO: ==31001== Releasing lock... [2025-04-09 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-09 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:31:05 [end_date_ymd] => 2025-04-09 05:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:31:05' and `end` < '2025-04-09 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-09 05:31:18] Production.INFO: count ==122 [2025-04-09 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:31:05 - End Time 2025-04-09 05:31:05 [2025-04-09 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867415', 'tblTempUsageDetail_20' ) start [2025-04-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867415', 'tblTempUsageDetail_20' ) end [2025-04-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867415', 'tblTempVendorCDR_20' ) start [2025-04-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867415', 'tblTempVendorCDR_20' ) end [2025-04-09 05:31:18] Production.INFO: ProcessCDR(1,14867415,1,1,2) [2025-04-09 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867415', 'tblTempUsageDetail_20' ) start [2025-04-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867415', 'tblTempUsageDetail_20' ) end [2025-04-09 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:31:21] Production.INFO: ==31078== Releasing lock... [2025-04-09 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-09 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:32:06 [end_date_ymd] => 2025-04-09 05:32:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:32:06' and `end` < '2025-04-09 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-09 05:32:18] Production.INFO: count ==122 [2025-04-09 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:32:06 - End Time 2025-04-09 05:32:06 [2025-04-09 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867420', 'tblTempUsageDetail_20' ) start [2025-04-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867420', 'tblTempUsageDetail_20' ) end [2025-04-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867420', 'tblTempVendorCDR_20' ) start [2025-04-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867420', 'tblTempVendorCDR_20' ) end [2025-04-09 05:32:18] Production.INFO: ProcessCDR(1,14867420,1,1,2) [2025-04-09 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867420', 'tblTempUsageDetail_20' ) start [2025-04-09 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867420', 'tblTempUsageDetail_20' ) end [2025-04-09 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:32:22] Production.INFO: ==31155== Releasing lock... [2025-04-09 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:32:22] Production.INFO: 29 MB #Memory Used# [2025-04-09 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:33:05 [end_date_ymd] => 2025-04-09 05:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:33:05' and `end` < '2025-04-09 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-09 05:33:17] Production.INFO: count ==122 [2025-04-09 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:33:05 - End Time 2025-04-09 05:33:05 [2025-04-09 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867425', 'tblTempUsageDetail_20' ) start [2025-04-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867425', 'tblTempUsageDetail_20' ) end [2025-04-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867425', 'tblTempVendorCDR_20' ) start [2025-04-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867425', 'tblTempVendorCDR_20' ) end [2025-04-09 05:33:18] Production.INFO: ProcessCDR(1,14867425,1,1,2) [2025-04-09 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867425', 'tblTempUsageDetail_20' ) start [2025-04-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867425', 'tblTempUsageDetail_20' ) end [2025-04-09 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:33:21] Production.INFO: ==31234== Releasing lock... [2025-04-09 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-09 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:34:05 [end_date_ymd] => 2025-04-09 05:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:34:05' and `end` < '2025-04-09 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-09 05:34:18] Production.INFO: count ==122 [2025-04-09 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:34:05 - End Time 2025-04-09 05:34:05 [2025-04-09 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867430', 'tblTempUsageDetail_20' ) start [2025-04-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867430', 'tblTempUsageDetail_20' ) end [2025-04-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867430', 'tblTempVendorCDR_20' ) start [2025-04-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867430', 'tblTempVendorCDR_20' ) end [2025-04-09 05:34:18] Production.INFO: ProcessCDR(1,14867430,1,1,2) [2025-04-09 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867430', 'tblTempUsageDetail_20' ) start [2025-04-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867430', 'tblTempUsageDetail_20' ) end [2025-04-09 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:34:21] Production.INFO: ==31311== Releasing lock... [2025-04-09 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:34:21] Production.INFO: 29 MB #Memory Used# [2025-04-09 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:35:05 [end_date_ymd] => 2025-04-09 05:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:35:05' and `end` < '2025-04-09 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-09 05:35:18] Production.INFO: count ==121 [2025-04-09 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:35:05 - End Time 2025-04-09 05:35:05 [2025-04-09 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867435', 'tblTempUsageDetail_20' ) start [2025-04-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867435', 'tblTempUsageDetail_20' ) end [2025-04-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867435', 'tblTempVendorCDR_20' ) start [2025-04-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867435', 'tblTempVendorCDR_20' ) end [2025-04-09 05:35:18] Production.INFO: ProcessCDR(1,14867435,1,1,2) [2025-04-09 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867435', 'tblTempUsageDetail_20' ) start [2025-04-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867435', 'tblTempUsageDetail_20' ) end [2025-04-09 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:35:21] Production.INFO: ==31383== Releasing lock... [2025-04-09 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:36:05 [end_date_ymd] => 2025-04-09 05:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:36:05' and `end` < '2025-04-09 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-09 05:36:18] Production.INFO: count ==121 [2025-04-09 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:36:05 - End Time 2025-04-09 05:36:05 [2025-04-09 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867440', 'tblTempUsageDetail_20' ) start [2025-04-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867440', 'tblTempUsageDetail_20' ) end [2025-04-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867440', 'tblTempVendorCDR_20' ) start [2025-04-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867440', 'tblTempVendorCDR_20' ) end [2025-04-09 05:36:18] Production.INFO: ProcessCDR(1,14867440,1,1,2) [2025-04-09 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867440', 'tblTempUsageDetail_20' ) start [2025-04-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867440', 'tblTempUsageDetail_20' ) end [2025-04-09 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:36:21] Production.INFO: ==31455== Releasing lock... [2025-04-09 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:37:06 [end_date_ymd] => 2025-04-09 05:37:06 [RateCDR] => 1 ) [2025-04-09 05: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-09 02:37:06' and `end` < '2025-04-09 05: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-09 05:37:18] Production.INFO: count ==119 [2025-04-09 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:37:06 - End Time 2025-04-09 05:37:06 [2025-04-09 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867445', 'tblTempUsageDetail_20' ) start [2025-04-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867445', 'tblTempUsageDetail_20' ) end [2025-04-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867445', 'tblTempVendorCDR_20' ) start [2025-04-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867445', 'tblTempVendorCDR_20' ) end [2025-04-09 05:37:18] Production.INFO: ProcessCDR(1,14867445,1,1,2) [2025-04-09 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867445', 'tblTempUsageDetail_20' ) start [2025-04-09 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867445', 'tblTempUsageDetail_20' ) end [2025-04-09 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:37:22] Production.INFO: ==31531== Releasing lock... [2025-04-09 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:38:05 [end_date_ymd] => 2025-04-09 05:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:38:05' and `end` < '2025-04-09 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-09 05:38:18] Production.INFO: count ==119 [2025-04-09 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:38:05 - End Time 2025-04-09 05:38:05 [2025-04-09 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867450', 'tblTempUsageDetail_20' ) start [2025-04-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867450', 'tblTempUsageDetail_20' ) end [2025-04-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867450', 'tblTempVendorCDR_20' ) start [2025-04-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867450', 'tblTempVendorCDR_20' ) end [2025-04-09 05:38:18] Production.INFO: ProcessCDR(1,14867450,1,1,2) [2025-04-09 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867450', 'tblTempUsageDetail_20' ) start [2025-04-09 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867450', 'tblTempUsageDetail_20' ) end [2025-04-09 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:38:21] Production.INFO: ==31645== Releasing lock... [2025-04-09 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:39:06 [end_date_ymd] => 2025-04-09 05:39:06 [RateCDR] => 1 ) [2025-04-09 05: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 02:39:06' and `end` < '2025-04-09 05: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-09 05:39:19] Production.INFO: count ==119 [2025-04-09 05:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:39:06 - End Time 2025-04-09 05:39:06 [2025-04-09 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867455', 'tblTempUsageDetail_20' ) start [2025-04-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867455', 'tblTempUsageDetail_20' ) end [2025-04-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867455', 'tblTempVendorCDR_20' ) start [2025-04-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867455', 'tblTempVendorCDR_20' ) end [2025-04-09 05:39:19] Production.INFO: ProcessCDR(1,14867455,1,1,2) [2025-04-09 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867455', 'tblTempUsageDetail_20' ) start [2025-04-09 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867455', 'tblTempUsageDetail_20' ) end [2025-04-09 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:39:22] Production.INFO: ==31724== Releasing lock... [2025-04-09 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:40:05 [end_date_ymd] => 2025-04-09 05:40:05 [RateCDR] => 1 ) [2025-04-09 05: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-09 02:40:05' and `end` < '2025-04-09 05: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-09 05:40:18] Production.INFO: count ==117 [2025-04-09 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:40:05 - End Time 2025-04-09 05:40:05 [2025-04-09 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867460', 'tblTempUsageDetail_20' ) start [2025-04-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867460', 'tblTempUsageDetail_20' ) end [2025-04-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867460', 'tblTempVendorCDR_20' ) start [2025-04-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867460', 'tblTempVendorCDR_20' ) end [2025-04-09 05:40:18] Production.INFO: ProcessCDR(1,14867460,1,1,2) [2025-04-09 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867460', 'tblTempUsageDetail_20' ) start [2025-04-09 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867460', 'tblTempUsageDetail_20' ) end [2025-04-09 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:40:22] Production.INFO: ==31806== Releasing lock... [2025-04-09 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:41:05 [end_date_ymd] => 2025-04-09 05:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:41:05' and `end` < '2025-04-09 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-09 05:41:18] Production.INFO: count ==117 [2025-04-09 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:41:05 - End Time 2025-04-09 05:41:05 [2025-04-09 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867466', 'tblTempUsageDetail_20' ) start [2025-04-09 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867466', 'tblTempUsageDetail_20' ) end [2025-04-09 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867466', 'tblTempVendorCDR_20' ) start [2025-04-09 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867466', 'tblTempVendorCDR_20' ) end [2025-04-09 05:41:18] Production.INFO: ProcessCDR(1,14867466,1,1,2) [2025-04-09 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867466', 'tblTempUsageDetail_20' ) start [2025-04-09 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867466', 'tblTempUsageDetail_20' ) end [2025-04-09 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:41:21] Production.INFO: ==31881== Releasing lock... [2025-04-09 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:42:05 [end_date_ymd] => 2025-04-09 05:42:05 [RateCDR] => 1 ) [2025-04-09 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:42:05' and `end` < '2025-04-09 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:42:18] Production.INFO: count ==118 [2025-04-09 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:42:05 - End Time 2025-04-09 05:42:05 [2025-04-09 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867471', 'tblTempUsageDetail_20' ) start [2025-04-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867471', 'tblTempUsageDetail_20' ) end [2025-04-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867471', 'tblTempVendorCDR_20' ) start [2025-04-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867471', 'tblTempVendorCDR_20' ) end [2025-04-09 05:42:18] Production.INFO: ProcessCDR(1,14867471,1,1,2) [2025-04-09 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867471', 'tblTempUsageDetail_20' ) start [2025-04-09 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867471', 'tblTempUsageDetail_20' ) end [2025-04-09 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:42:22] Production.INFO: ==31957== Releasing lock... [2025-04-09 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:43:06 [end_date_ymd] => 2025-04-09 05:43:06 [RateCDR] => 1 ) [2025-04-09 05: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 02:43:06' and `end` < '2025-04-09 05: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-09 05:43:18] Production.INFO: count ==118 [2025-04-09 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:43:06 - End Time 2025-04-09 05:43:06 [2025-04-09 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867476', 'tblTempUsageDetail_20' ) start [2025-04-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867476', 'tblTempUsageDetail_20' ) end [2025-04-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867476', 'tblTempVendorCDR_20' ) start [2025-04-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867476', 'tblTempVendorCDR_20' ) end [2025-04-09 05:43:18] Production.INFO: ProcessCDR(1,14867476,1,1,2) [2025-04-09 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867476', 'tblTempUsageDetail_20' ) start [2025-04-09 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867476', 'tblTempUsageDetail_20' ) end [2025-04-09 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:43:22] Production.INFO: ==32032== Releasing lock... [2025-04-09 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:44:05 [end_date_ymd] => 2025-04-09 05:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:44:05' and `end` < '2025-04-09 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-09 05:44:17] Production.INFO: count ==117 [2025-04-09 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:44:05 - End Time 2025-04-09 05:44:05 [2025-04-09 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867481', 'tblTempUsageDetail_20' ) start [2025-04-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867481', 'tblTempUsageDetail_20' ) end [2025-04-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867481', 'tblTempVendorCDR_20' ) start [2025-04-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867481', 'tblTempVendorCDR_20' ) end [2025-04-09 05:44:18] Production.INFO: ProcessCDR(1,14867481,1,1,2) [2025-04-09 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867481', 'tblTempUsageDetail_20' ) start [2025-04-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867481', 'tblTempUsageDetail_20' ) end [2025-04-09 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:44:21] Production.INFO: ==32106== Releasing lock... [2025-04-09 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:45:05 [end_date_ymd] => 2025-04-09 05:45:05 [RateCDR] => 1 ) [2025-04-09 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 02:45:05' and `end` < '2025-04-09 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:45:18] Production.INFO: count ==117 [2025-04-09 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:45:05 - End Time 2025-04-09 05:45:05 [2025-04-09 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867486', 'tblTempUsageDetail_20' ) start [2025-04-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867486', 'tblTempUsageDetail_20' ) end [2025-04-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867486', 'tblTempVendorCDR_20' ) start [2025-04-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867486', 'tblTempVendorCDR_20' ) end [2025-04-09 05:45:18] Production.INFO: ProcessCDR(1,14867486,1,1,2) [2025-04-09 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867486', 'tblTempUsageDetail_20' ) start [2025-04-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867486', 'tblTempUsageDetail_20' ) end [2025-04-09 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:45:21] Production.INFO: ==32184== Releasing lock... [2025-04-09 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:46:05 [end_date_ymd] => 2025-04-09 05:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:46:05' and `end` < '2025-04-09 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-09 05:46:18] Production.INFO: count ==117 [2025-04-09 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:46:05 - End Time 2025-04-09 05:46:05 [2025-04-09 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867491', 'tblTempUsageDetail_20' ) start [2025-04-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867491', 'tblTempUsageDetail_20' ) end [2025-04-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867491', 'tblTempVendorCDR_20' ) start [2025-04-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867491', 'tblTempVendorCDR_20' ) end [2025-04-09 05:46:18] Production.INFO: ProcessCDR(1,14867491,1,1,2) [2025-04-09 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867491', 'tblTempUsageDetail_20' ) start [2025-04-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867491', 'tblTempUsageDetail_20' ) end [2025-04-09 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:46:21] Production.INFO: ==32255== Releasing lock... [2025-04-09 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:47:05 [end_date_ymd] => 2025-04-09 05:47:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:47:05' and `end` < '2025-04-09 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-09 05:47:18] Production.INFO: count ==117 [2025-04-09 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:47:05 - End Time 2025-04-09 05:47:05 [2025-04-09 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867496', 'tblTempUsageDetail_20' ) start [2025-04-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867496', 'tblTempUsageDetail_20' ) end [2025-04-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867496', 'tblTempVendorCDR_20' ) start [2025-04-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867496', 'tblTempVendorCDR_20' ) end [2025-04-09 05:47:18] Production.INFO: ProcessCDR(1,14867496,1,1,2) [2025-04-09 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867496', 'tblTempUsageDetail_20' ) start [2025-04-09 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867496', 'tblTempUsageDetail_20' ) end [2025-04-09 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:47:22] Production.INFO: ==32328== Releasing lock... [2025-04-09 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:48:05 [end_date_ymd] => 2025-04-09 05:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:48:05' and `end` < '2025-04-09 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-09 05:48:18] Production.INFO: count ==71 [2025-04-09 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:48:05 - End Time 2025-04-09 05:48:05 [2025-04-09 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867501', 'tblTempUsageDetail_20' ) start [2025-04-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867501', 'tblTempUsageDetail_20' ) end [2025-04-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867501', 'tblTempVendorCDR_20' ) start [2025-04-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867501', 'tblTempVendorCDR_20' ) end [2025-04-09 05:48:18] Production.INFO: ProcessCDR(1,14867501,1,1,2) [2025-04-09 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867501', 'tblTempUsageDetail_20' ) start [2025-04-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867501', 'tblTempUsageDetail_20' ) end [2025-04-09 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:48:21] Production.INFO: ==32400== Releasing lock... [2025-04-09 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:49:05 [end_date_ymd] => 2025-04-09 05:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:49:05' and `end` < '2025-04-09 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-09 05:49:18] Production.INFO: count ==49 [2025-04-09 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:49:05 - End Time 2025-04-09 05:49:05 [2025-04-09 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867506', 'tblTempUsageDetail_20' ) start [2025-04-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867506', 'tblTempUsageDetail_20' ) end [2025-04-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867506', 'tblTempVendorCDR_20' ) start [2025-04-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867506', 'tblTempVendorCDR_20' ) end [2025-04-09 05:49:18] Production.INFO: ProcessCDR(1,14867506,1,1,2) [2025-04-09 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867506', 'tblTempUsageDetail_20' ) start [2025-04-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867506', 'tblTempUsageDetail_20' ) end [2025-04-09 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:49:21] Production.INFO: ==32476== Releasing lock... [2025-04-09 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-09 05:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:50:07 [end_date_ymd] => 2025-04-09 05:50:07 [RateCDR] => 1 ) [2025-04-09 05: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-09 02:50:07' and `end` < '2025-04-09 05: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-09 05:50:19] Production.INFO: count ==46 [2025-04-09 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 02:50:07 - End Time 2025-04-09 05:50:07 [2025-04-09 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867512', 'tblTempUsageDetail_20' ) start [2025-04-09 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867512', 'tblTempUsageDetail_20' ) end [2025-04-09 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867512', 'tblTempVendorCDR_20' ) start [2025-04-09 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867512', 'tblTempVendorCDR_20' ) end [2025-04-09 05:50:19] Production.INFO: ProcessCDR(1,14867512,1,1,2) [2025-04-09 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867512', 'tblTempUsageDetail_20' ) start [2025-04-09 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867512', 'tblTempUsageDetail_20' ) end [2025-04-09 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:50:23] Production.INFO: ==32552== Releasing lock... [2025-04-09 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:50:23] Production.INFO: 28 MB #Memory Used# [2025-04-09 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:51:05 [end_date_ymd] => 2025-04-09 05:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:51:05' and `end` < '2025-04-09 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-09 05:51:18] Production.INFO: count ==47 [2025-04-09 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:51:05 - End Time 2025-04-09 05:51:05 [2025-04-09 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867517', 'tblTempUsageDetail_20' ) start [2025-04-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867517', 'tblTempUsageDetail_20' ) end [2025-04-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867517', 'tblTempVendorCDR_20' ) start [2025-04-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867517', 'tblTempVendorCDR_20' ) end [2025-04-09 05:51:18] Production.INFO: ProcessCDR(1,14867517,1,1,2) [2025-04-09 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867517', 'tblTempUsageDetail_20' ) start [2025-04-09 05:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867517', 'tblTempUsageDetail_20' ) end [2025-04-09 05:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:51:23] Production.INFO: ==32625== Releasing lock... [2025-04-09 05:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:51:23] Production.INFO: 28 MB #Memory Used# [2025-04-09 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:52:05 [end_date_ymd] => 2025-04-09 05:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:52:05' and `end` < '2025-04-09 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-09 05:52:18] Production.INFO: count ==48 [2025-04-09 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:52:05 - End Time 2025-04-09 05:52:05 [2025-04-09 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867522', 'tblTempUsageDetail_20' ) start [2025-04-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867522', 'tblTempUsageDetail_20' ) end [2025-04-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867522', 'tblTempVendorCDR_20' ) start [2025-04-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867522', 'tblTempVendorCDR_20' ) end [2025-04-09 05:52:18] Production.INFO: ProcessCDR(1,14867522,1,1,2) [2025-04-09 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867522', 'tblTempUsageDetail_20' ) start [2025-04-09 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867522', 'tblTempUsageDetail_20' ) end [2025-04-09 05:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:52:23] Production.INFO: ==32702== Releasing lock... [2025-04-09 05:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:52:23] Production.INFO: 28 MB #Memory Used# [2025-04-09 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:53:05 [end_date_ymd] => 2025-04-09 05:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:53:05' and `end` < '2025-04-09 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-09 05:53:18] Production.INFO: count ==49 [2025-04-09 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:53:05 - End Time 2025-04-09 05:53:05 [2025-04-09 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867527', 'tblTempUsageDetail_20' ) start [2025-04-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867527', 'tblTempUsageDetail_20' ) end [2025-04-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867527', 'tblTempVendorCDR_20' ) start [2025-04-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867527', 'tblTempVendorCDR_20' ) end [2025-04-09 05:53:18] Production.INFO: ProcessCDR(1,14867527,1,1,2) [2025-04-09 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867527', 'tblTempUsageDetail_20' ) start [2025-04-09 05:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867527', 'tblTempUsageDetail_20' ) end [2025-04-09 05:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:53:23] Production.INFO: ==374== Releasing lock... [2025-04-09 05:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:53:23] Production.INFO: 28 MB #Memory Used# [2025-04-09 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:54:05 [end_date_ymd] => 2025-04-09 05:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:54:05' and `end` < '2025-04-09 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-09 05:54:18] Production.INFO: count ==50 [2025-04-09 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:54:05 - End Time 2025-04-09 05:54:05 [2025-04-09 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867532', 'tblTempUsageDetail_20' ) start [2025-04-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867532', 'tblTempUsageDetail_20' ) end [2025-04-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867532', 'tblTempVendorCDR_20' ) start [2025-04-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867532', 'tblTempVendorCDR_20' ) end [2025-04-09 05:54:18] Production.INFO: ProcessCDR(1,14867532,1,1,2) [2025-04-09 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867532', 'tblTempUsageDetail_20' ) start [2025-04-09 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867532', 'tblTempUsageDetail_20' ) end [2025-04-09 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:54:22] Production.INFO: ==449== Releasing lock... [2025-04-09 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:55:05 [end_date_ymd] => 2025-04-09 05:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:55:05' and `end` < '2025-04-09 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-09 05:55:18] Production.INFO: count ==52 [2025-04-09 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:55:05 - End Time 2025-04-09 05:55:05 [2025-04-09 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867537', 'tblTempUsageDetail_20' ) start [2025-04-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867537', 'tblTempUsageDetail_20' ) end [2025-04-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867537', 'tblTempVendorCDR_20' ) start [2025-04-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867537', 'tblTempVendorCDR_20' ) end [2025-04-09 05:55:18] Production.INFO: ProcessCDR(1,14867537,1,1,2) [2025-04-09 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867537', 'tblTempUsageDetail_20' ) start [2025-04-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867537', 'tblTempUsageDetail_20' ) end [2025-04-09 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:55:21] Production.INFO: ==522== Releasing lock... [2025-04-09 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:56:06 [end_date_ymd] => 2025-04-09 05:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 02:56:06' and `end` < '2025-04-09 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-09 05:56:18] Production.INFO: count ==50 [2025-04-09 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:56:06 - End Time 2025-04-09 05:56:06 [2025-04-09 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867542', 'tblTempUsageDetail_20' ) start [2025-04-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867542', 'tblTempUsageDetail_20' ) end [2025-04-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867542', 'tblTempVendorCDR_20' ) start [2025-04-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867542', 'tblTempVendorCDR_20' ) end [2025-04-09 05:56:18] Production.INFO: ProcessCDR(1,14867542,1,1,2) [2025-04-09 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867542', 'tblTempUsageDetail_20' ) start [2025-04-09 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867542', 'tblTempUsageDetail_20' ) end [2025-04-09 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:56:22] Production.INFO: ==601== Releasing lock... [2025-04-09 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:57:05 [end_date_ymd] => 2025-04-09 05:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:57:05' and `end` < '2025-04-09 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-09 05:57:18] Production.INFO: count ==50 [2025-04-09 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:57:05 - End Time 2025-04-09 05:57:05 [2025-04-09 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867547', 'tblTempUsageDetail_20' ) start [2025-04-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867547', 'tblTempUsageDetail_20' ) end [2025-04-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867547', 'tblTempVendorCDR_20' ) start [2025-04-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867547', 'tblTempVendorCDR_20' ) end [2025-04-09 05:57:18] Production.INFO: ProcessCDR(1,14867547,1,1,2) [2025-04-09 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867547', 'tblTempUsageDetail_20' ) start [2025-04-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867547', 'tblTempUsageDetail_20' ) end [2025-04-09 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:57:21] Production.INFO: ==697== Releasing lock... [2025-04-09 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:58:05 [end_date_ymd] => 2025-04-09 05:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 02:58:05' and `end` < '2025-04-09 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 05:58:18] Production.INFO: count ==51 [2025-04-09 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 02:58:05 - End Time 2025-04-09 05:58:05 [2025-04-09 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867552', 'tblTempUsageDetail_20' ) start [2025-04-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867552', 'tblTempUsageDetail_20' ) end [2025-04-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867552', 'tblTempVendorCDR_20' ) start [2025-04-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867552', 'tblTempVendorCDR_20' ) end [2025-04-09 05:58:18] Production.INFO: ProcessCDR(1,14867552,1,1,2) [2025-04-09 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867552', 'tblTempUsageDetail_20' ) start [2025-04-09 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867552', 'tblTempUsageDetail_20' ) end [2025-04-09 05:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:58:23] Production.INFO: ==775== Releasing lock... [2025-04-09 05:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 02:59:04 [end_date_ymd] => 2025-04-09 05:59:04 [RateCDR] => 1 ) [2025-04-09 05:59: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 02:59:04' and `end` < '2025-04-09 05:59: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-09 05:59:17] Production.INFO: count ==51 [2025-04-09 05:59:17] Production.ERROR: pbx CDR StartTime 2025-04-09 02:59:04 - End Time 2025-04-09 05:59:04 [2025-04-09 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867557', 'tblTempUsageDetail_20' ) start [2025-04-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867557', 'tblTempUsageDetail_20' ) end [2025-04-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867557', 'tblTempVendorCDR_20' ) start [2025-04-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867557', 'tblTempVendorCDR_20' ) end [2025-04-09 05:59:17] Production.INFO: ProcessCDR(1,14867557,1,1,2) [2025-04-09 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867557', 'tblTempUsageDetail_20' ) start [2025-04-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867557', 'tblTempUsageDetail_20' ) end [2025-04-09 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 05:59:21] Production.INFO: ==848== Releasing lock... [2025-04-09 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:00:06 [end_date_ymd] => 2025-04-09 06:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 03:00:06' and `end` < '2025-04-09 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-09 06:00:19] Production.INFO: count ==59 [2025-04-09 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 03:00:06 - End Time 2025-04-09 06:00:06 [2025-04-09 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867563', 'tblTempUsageDetail_20' ) start [2025-04-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867563', 'tblTempUsageDetail_20' ) end [2025-04-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867563', 'tblTempVendorCDR_20' ) start [2025-04-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867563', 'tblTempVendorCDR_20' ) end [2025-04-09 06:00:19] Production.INFO: ProcessCDR(1,14867563,1,1,2) [2025-04-09 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867563', 'tblTempUsageDetail_20' ) start [2025-04-09 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867563', 'tblTempUsageDetail_20' ) end [2025-04-09 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:00:24] Production.INFO: ==924== Releasing lock... [2025-04-09 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:01:06 [end_date_ymd] => 2025-04-09 06:01:06 [RateCDR] => 1 ) [2025-04-09 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:01:06' and `end` < '2025-04-09 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:01:18] Production.INFO: count ==61 [2025-04-09 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:01:06 - End Time 2025-04-09 06:01:06 [2025-04-09 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867568', 'tblTempUsageDetail_20' ) start [2025-04-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867568', 'tblTempUsageDetail_20' ) end [2025-04-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867568', 'tblTempVendorCDR_20' ) start [2025-04-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867568', 'tblTempVendorCDR_20' ) end [2025-04-09 06:01:18] Production.INFO: ProcessCDR(1,14867568,1,1,2) [2025-04-09 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867568', 'tblTempUsageDetail_20' ) start [2025-04-09 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867568', 'tblTempUsageDetail_20' ) end [2025-04-09 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:01:22] Production.INFO: ==1011== Releasing lock... [2025-04-09 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:02:05 [end_date_ymd] => 2025-04-09 06:02:05 [RateCDR] => 1 ) [2025-04-09 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:02:05' and `end` < '2025-04-09 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:02:18] Production.INFO: count ==62 [2025-04-09 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:02:05 - End Time 2025-04-09 06:02:05 [2025-04-09 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867573', 'tblTempUsageDetail_20' ) start [2025-04-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867573', 'tblTempUsageDetail_20' ) end [2025-04-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867573', 'tblTempVendorCDR_20' ) start [2025-04-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867573', 'tblTempVendorCDR_20' ) end [2025-04-09 06:02:18] Production.INFO: ProcessCDR(1,14867573,1,1,2) [2025-04-09 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867573', 'tblTempUsageDetail_20' ) start [2025-04-09 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867573', 'tblTempUsageDetail_20' ) end [2025-04-09 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:02:23] Production.INFO: ==1083== Releasing lock... [2025-04-09 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:03:05 [end_date_ymd] => 2025-04-09 06:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:03:05' and `end` < '2025-04-09 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-09 06:03:18] Production.INFO: count ==62 [2025-04-09 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:03:05 - End Time 2025-04-09 06:03:05 [2025-04-09 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867578', 'tblTempUsageDetail_20' ) start [2025-04-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867578', 'tblTempUsageDetail_20' ) end [2025-04-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867578', 'tblTempVendorCDR_20' ) start [2025-04-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867578', 'tblTempVendorCDR_20' ) end [2025-04-09 06:03:18] Production.INFO: ProcessCDR(1,14867578,1,1,2) [2025-04-09 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867578', 'tblTempUsageDetail_20' ) start [2025-04-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867578', 'tblTempUsageDetail_20' ) end [2025-04-09 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:03:22] Production.INFO: ==1157== Releasing lock... [2025-04-09 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:04:05 [end_date_ymd] => 2025-04-09 06:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:04:05' and `end` < '2025-04-09 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-09 06:04:17] Production.INFO: count ==62 [2025-04-09 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:04:05 - End Time 2025-04-09 06:04:05 [2025-04-09 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867583', 'tblTempUsageDetail_20' ) start [2025-04-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867583', 'tblTempUsageDetail_20' ) end [2025-04-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867583', 'tblTempVendorCDR_20' ) start [2025-04-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867583', 'tblTempVendorCDR_20' ) end [2025-04-09 06:04:17] Production.INFO: ProcessCDR(1,14867583,1,1,2) [2025-04-09 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867583', 'tblTempUsageDetail_20' ) start [2025-04-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867583', 'tblTempUsageDetail_20' ) end [2025-04-09 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:04:21] Production.INFO: ==1235== Releasing lock... [2025-04-09 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:05:05 [end_date_ymd] => 2025-04-09 06:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:05:05' and `end` < '2025-04-09 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-09 06:05:18] Production.INFO: count ==62 [2025-04-09 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:05:05 - End Time 2025-04-09 06:05:05 [2025-04-09 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867588', 'tblTempUsageDetail_20' ) start [2025-04-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867588', 'tblTempUsageDetail_20' ) end [2025-04-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867588', 'tblTempVendorCDR_20' ) start [2025-04-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867588', 'tblTempVendorCDR_20' ) end [2025-04-09 06:05:18] Production.INFO: ProcessCDR(1,14867588,1,1,2) [2025-04-09 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867588', 'tblTempUsageDetail_20' ) start [2025-04-09 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867588', 'tblTempUsageDetail_20' ) end [2025-04-09 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:05:22] Production.INFO: ==1317== Releasing lock... [2025-04-09 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:06:05 [end_date_ymd] => 2025-04-09 06:06:05 [RateCDR] => 1 ) [2025-04-09 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:06:05' and `end` < '2025-04-09 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:06:18] Production.INFO: count ==62 [2025-04-09 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:06:05 - End Time 2025-04-09 06:06:05 [2025-04-09 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867593', 'tblTempUsageDetail_20' ) start [2025-04-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867593', 'tblTempUsageDetail_20' ) end [2025-04-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867593', 'tblTempVendorCDR_20' ) start [2025-04-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867593', 'tblTempVendorCDR_20' ) end [2025-04-09 06:06:18] Production.INFO: ProcessCDR(1,14867593,1,1,2) [2025-04-09 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867593', 'tblTempUsageDetail_20' ) start [2025-04-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867593', 'tblTempUsageDetail_20' ) end [2025-04-09 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:06:21] Production.INFO: ==1388== Releasing lock... [2025-04-09 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:07:05 [end_date_ymd] => 2025-04-09 06:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:07:05' and `end` < '2025-04-09 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-09 06:07:18] Production.INFO: count ==62 [2025-04-09 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:07:05 - End Time 2025-04-09 06:07:05 [2025-04-09 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867598', 'tblTempUsageDetail_20' ) start [2025-04-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867598', 'tblTempUsageDetail_20' ) end [2025-04-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867598', 'tblTempVendorCDR_20' ) start [2025-04-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867598', 'tblTempVendorCDR_20' ) end [2025-04-09 06:07:18] Production.INFO: ProcessCDR(1,14867598,1,1,2) [2025-04-09 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867598', 'tblTempUsageDetail_20' ) start [2025-04-09 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867598', 'tblTempUsageDetail_20' ) end [2025-04-09 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:07:22] Production.INFO: ==1459== Releasing lock... [2025-04-09 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:08:05 [end_date_ymd] => 2025-04-09 06:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:08:05' and `end` < '2025-04-09 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-09 06:08:18] Production.INFO: count ==62 [2025-04-09 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:08:05 - End Time 2025-04-09 06:08:05 [2025-04-09 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867603', 'tblTempUsageDetail_20' ) start [2025-04-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867603', 'tblTempUsageDetail_20' ) end [2025-04-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867603', 'tblTempVendorCDR_20' ) start [2025-04-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867603', 'tblTempVendorCDR_20' ) end [2025-04-09 06:08:18] Production.INFO: ProcessCDR(1,14867603,1,1,2) [2025-04-09 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867603', 'tblTempUsageDetail_20' ) start [2025-04-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867603', 'tblTempUsageDetail_20' ) end [2025-04-09 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:08:21] Production.INFO: ==1565== Releasing lock... [2025-04-09 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:09:05 [end_date_ymd] => 2025-04-09 06:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:09:05' and `end` < '2025-04-09 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-09 06:09:17] Production.INFO: count ==64 [2025-04-09 06:09:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:09:05 - End Time 2025-04-09 06:09:05 [2025-04-09 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867608', 'tblTempUsageDetail_20' ) start [2025-04-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867608', 'tblTempUsageDetail_20' ) end [2025-04-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867608', 'tblTempVendorCDR_20' ) start [2025-04-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867608', 'tblTempVendorCDR_20' ) end [2025-04-09 06:09:17] Production.INFO: ProcessCDR(1,14867608,1,1,2) [2025-04-09 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867608', 'tblTempUsageDetail_20' ) start [2025-04-09 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867608', 'tblTempUsageDetail_20' ) end [2025-04-09 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:09:21] Production.INFO: ==1685== Releasing lock... [2025-04-09 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:10:05 [end_date_ymd] => 2025-04-09 06:10:05 [RateCDR] => 1 ) [2025-04-09 06: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 03:10:05' and `end` < '2025-04-09 06: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-09 06:10:18] Production.INFO: count ==72 [2025-04-09 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:10:05 - End Time 2025-04-09 06:10:05 [2025-04-09 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867614', 'tblTempUsageDetail_20' ) start [2025-04-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867614', 'tblTempUsageDetail_20' ) end [2025-04-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867614', 'tblTempVendorCDR_20' ) start [2025-04-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867614', 'tblTempVendorCDR_20' ) end [2025-04-09 06:10:18] Production.INFO: ProcessCDR(1,14867614,1,1,2) [2025-04-09 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867614', 'tblTempUsageDetail_20' ) start [2025-04-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867614', 'tblTempUsageDetail_20' ) end [2025-04-09 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:10:21] Production.INFO: ==1765== Releasing lock... [2025-04-09 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:11:05 [end_date_ymd] => 2025-04-09 06:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:11:05' and `end` < '2025-04-09 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-09 06:11:18] Production.INFO: count ==77 [2025-04-09 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:11:05 - End Time 2025-04-09 06:11:05 [2025-04-09 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867619', 'tblTempUsageDetail_20' ) start [2025-04-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867619', 'tblTempUsageDetail_20' ) end [2025-04-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867619', 'tblTempVendorCDR_20' ) start [2025-04-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867619', 'tblTempVendorCDR_20' ) end [2025-04-09 06:11:18] Production.INFO: ProcessCDR(1,14867619,1,1,2) [2025-04-09 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867619', 'tblTempUsageDetail_20' ) start [2025-04-09 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867619', 'tblTempUsageDetail_20' ) end [2025-04-09 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:11:23] Production.INFO: ==1845== Releasing lock... [2025-04-09 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:11:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:12:05 [end_date_ymd] => 2025-04-09 06:12:05 [RateCDR] => 1 ) [2025-04-09 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:12:05' and `end` < '2025-04-09 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:12:18] Production.INFO: count ==77 [2025-04-09 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:12:05 - End Time 2025-04-09 06:12:05 [2025-04-09 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867624', 'tblTempUsageDetail_20' ) start [2025-04-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867624', 'tblTempUsageDetail_20' ) end [2025-04-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867624', 'tblTempVendorCDR_20' ) start [2025-04-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867624', 'tblTempVendorCDR_20' ) end [2025-04-09 06:12:18] Production.INFO: ProcessCDR(1,14867624,1,1,2) [2025-04-09 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867624', 'tblTempUsageDetail_20' ) start [2025-04-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867624', 'tblTempUsageDetail_20' ) end [2025-04-09 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:12:21] Production.INFO: ==1923== Releasing lock... [2025-04-09 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:13:05 [end_date_ymd] => 2025-04-09 06:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:13:05' and `end` < '2025-04-09 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-09 06:13:18] Production.INFO: count ==77 [2025-04-09 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:13:05 - End Time 2025-04-09 06:13:05 [2025-04-09 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867629', 'tblTempUsageDetail_20' ) start [2025-04-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867629', 'tblTempUsageDetail_20' ) end [2025-04-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867629', 'tblTempVendorCDR_20' ) start [2025-04-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867629', 'tblTempVendorCDR_20' ) end [2025-04-09 06:13:18] Production.INFO: ProcessCDR(1,14867629,1,1,2) [2025-04-09 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867629', 'tblTempUsageDetail_20' ) start [2025-04-09 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867629', 'tblTempUsageDetail_20' ) end [2025-04-09 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:13:22] Production.INFO: ==1999== Releasing lock... [2025-04-09 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:13:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:14:05 [end_date_ymd] => 2025-04-09 06:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:14:05' and `end` < '2025-04-09 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-09 06:14:18] Production.INFO: count ==77 [2025-04-09 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:14:05 - End Time 2025-04-09 06:14:05 [2025-04-09 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867634', 'tblTempUsageDetail_20' ) start [2025-04-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867634', 'tblTempUsageDetail_20' ) end [2025-04-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867634', 'tblTempVendorCDR_20' ) start [2025-04-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867634', 'tblTempVendorCDR_20' ) end [2025-04-09 06:14:18] Production.INFO: ProcessCDR(1,14867634,1,1,2) [2025-04-09 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867634', 'tblTempUsageDetail_20' ) start [2025-04-09 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867634', 'tblTempUsageDetail_20' ) end [2025-04-09 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:14:22] Production.INFO: ==2074== Releasing lock... [2025-04-09 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:15:05 [end_date_ymd] => 2025-04-09 06:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:15:05' and `end` < '2025-04-09 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-09 06:15:18] Production.INFO: count ==77 [2025-04-09 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:15:05 - End Time 2025-04-09 06:15:05 [2025-04-09 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867639', 'tblTempUsageDetail_20' ) start [2025-04-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867639', 'tblTempUsageDetail_20' ) end [2025-04-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867639', 'tblTempVendorCDR_20' ) start [2025-04-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867639', 'tblTempVendorCDR_20' ) end [2025-04-09 06:15:18] Production.INFO: ProcessCDR(1,14867639,1,1,2) [2025-04-09 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867639', 'tblTempUsageDetail_20' ) start [2025-04-09 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867639', 'tblTempUsageDetail_20' ) end [2025-04-09 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:15:22] Production.INFO: ==2148== Releasing lock... [2025-04-09 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:16:05 [end_date_ymd] => 2025-04-09 06:16:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:16:05' and `end` < '2025-04-09 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-09 06:16:18] Production.INFO: count ==78 [2025-04-09 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:16:05 - End Time 2025-04-09 06:16:05 [2025-04-09 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867644', 'tblTempUsageDetail_20' ) start [2025-04-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867644', 'tblTempUsageDetail_20' ) end [2025-04-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867644', 'tblTempVendorCDR_20' ) start [2025-04-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867644', 'tblTempVendorCDR_20' ) end [2025-04-09 06:16:18] Production.INFO: ProcessCDR(1,14867644,1,1,2) [2025-04-09 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867644', 'tblTempUsageDetail_20' ) start [2025-04-09 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867644', 'tblTempUsageDetail_20' ) end [2025-04-09 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:16:23] Production.INFO: ==2223== Releasing lock... [2025-04-09 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:16:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:17:05 [end_date_ymd] => 2025-04-09 06:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:17:05' and `end` < '2025-04-09 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-09 06:17:18] Production.INFO: count ==78 [2025-04-09 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:17:05 - End Time 2025-04-09 06:17:05 [2025-04-09 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867649', 'tblTempUsageDetail_20' ) start [2025-04-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867649', 'tblTempUsageDetail_20' ) end [2025-04-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867649', 'tblTempVendorCDR_20' ) start [2025-04-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867649', 'tblTempVendorCDR_20' ) end [2025-04-09 06:17:18] Production.INFO: ProcessCDR(1,14867649,1,1,2) [2025-04-09 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867649', 'tblTempUsageDetail_20' ) start [2025-04-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867649', 'tblTempUsageDetail_20' ) end [2025-04-09 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:17:21] Production.INFO: ==2294== Releasing lock... [2025-04-09 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:18:05 [end_date_ymd] => 2025-04-09 06:18:05 [RateCDR] => 1 ) [2025-04-09 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:18:05' and `end` < '2025-04-09 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:18:18] Production.INFO: count ==78 [2025-04-09 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:18:05 - End Time 2025-04-09 06:18:05 [2025-04-09 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867654', 'tblTempUsageDetail_20' ) start [2025-04-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867654', 'tblTempUsageDetail_20' ) end [2025-04-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867654', 'tblTempVendorCDR_20' ) start [2025-04-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867654', 'tblTempVendorCDR_20' ) end [2025-04-09 06:18:18] Production.INFO: ProcessCDR(1,14867654,1,1,2) [2025-04-09 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867654', 'tblTempUsageDetail_20' ) start [2025-04-09 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867654', 'tblTempUsageDetail_20' ) end [2025-04-09 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:18:21] Production.INFO: ==2368== Releasing lock... [2025-04-09 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:19:05 [end_date_ymd] => 2025-04-09 06:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:19:05' and `end` < '2025-04-09 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-09 06:19:17] Production.INFO: count ==78 [2025-04-09 06:19:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:19:05 - End Time 2025-04-09 06:19:05 [2025-04-09 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867659', 'tblTempUsageDetail_20' ) start [2025-04-09 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867659', 'tblTempUsageDetail_20' ) end [2025-04-09 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867659', 'tblTempVendorCDR_20' ) start [2025-04-09 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867659', 'tblTempVendorCDR_20' ) end [2025-04-09 06:19:17] Production.INFO: ProcessCDR(1,14867659,1,1,2) [2025-04-09 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867659', 'tblTempUsageDetail_20' ) start [2025-04-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867659', 'tblTempUsageDetail_20' ) end [2025-04-09 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:19:21] Production.INFO: ==2439== Releasing lock... [2025-04-09 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:20:06 [end_date_ymd] => 2025-04-09 06:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 03:20:06' and `end` < '2025-04-09 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-09 06:20:19] Production.INFO: count ==78 [2025-04-09 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 03:20:06 - End Time 2025-04-09 06:20:06 [2025-04-09 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867665', 'tblTempUsageDetail_20' ) start [2025-04-09 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867665', 'tblTempUsageDetail_20' ) end [2025-04-09 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867665', 'tblTempVendorCDR_20' ) start [2025-04-09 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867665', 'tblTempVendorCDR_20' ) end [2025-04-09 06:20:19] Production.INFO: ProcessCDR(1,14867665,1,1,2) [2025-04-09 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867665', 'tblTempUsageDetail_20' ) start [2025-04-09 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867665', 'tblTempUsageDetail_20' ) end [2025-04-09 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:20:22] Production.INFO: ==2517== Releasing lock... [2025-04-09 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:21:05 [end_date_ymd] => 2025-04-09 06:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:21:05' and `end` < '2025-04-09 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-09 06:21:18] Production.INFO: count ==78 [2025-04-09 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:21:05 - End Time 2025-04-09 06:21:05 [2025-04-09 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867670', 'tblTempUsageDetail_20' ) start [2025-04-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867670', 'tblTempUsageDetail_20' ) end [2025-04-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867670', 'tblTempVendorCDR_20' ) start [2025-04-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867670', 'tblTempVendorCDR_20' ) end [2025-04-09 06:21:18] Production.INFO: ProcessCDR(1,14867670,1,1,2) [2025-04-09 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867670', 'tblTempUsageDetail_20' ) start [2025-04-09 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867670', 'tblTempUsageDetail_20' ) end [2025-04-09 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:21:21] Production.INFO: ==2591== Releasing lock... [2025-04-09 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:22:05 [end_date_ymd] => 2025-04-09 06:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:22:05' and `end` < '2025-04-09 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-09 06:22:18] Production.INFO: count ==78 [2025-04-09 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:22:05 - End Time 2025-04-09 06:22:05 [2025-04-09 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867675', 'tblTempUsageDetail_20' ) start [2025-04-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867675', 'tblTempUsageDetail_20' ) end [2025-04-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867675', 'tblTempVendorCDR_20' ) start [2025-04-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867675', 'tblTempVendorCDR_20' ) end [2025-04-09 06:22:18] Production.INFO: ProcessCDR(1,14867675,1,1,2) [2025-04-09 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867675', 'tblTempUsageDetail_20' ) start [2025-04-09 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867675', 'tblTempUsageDetail_20' ) end [2025-04-09 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:22:22] Production.INFO: ==2662== Releasing lock... [2025-04-09 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:23:05 [end_date_ymd] => 2025-04-09 06:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:23:05' and `end` < '2025-04-09 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-09 06:23:18] Production.INFO: count ==78 [2025-04-09 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:23:05 - End Time 2025-04-09 06:23:05 [2025-04-09 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867680', 'tblTempUsageDetail_20' ) start [2025-04-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867680', 'tblTempUsageDetail_20' ) end [2025-04-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867680', 'tblTempVendorCDR_20' ) start [2025-04-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867680', 'tblTempVendorCDR_20' ) end [2025-04-09 06:23:18] Production.INFO: ProcessCDR(1,14867680,1,1,2) [2025-04-09 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867680', 'tblTempUsageDetail_20' ) start [2025-04-09 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867680', 'tblTempUsageDetail_20' ) end [2025-04-09 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:23:22] Production.INFO: ==2740== Releasing lock... [2025-04-09 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:24:05 [end_date_ymd] => 2025-04-09 06:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:24:05' and `end` < '2025-04-09 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-09 06:24:18] Production.INFO: count ==78 [2025-04-09 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:24:05 - End Time 2025-04-09 06:24:05 [2025-04-09 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867685', 'tblTempUsageDetail_20' ) start [2025-04-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867685', 'tblTempUsageDetail_20' ) end [2025-04-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867685', 'tblTempVendorCDR_20' ) start [2025-04-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867685', 'tblTempVendorCDR_20' ) end [2025-04-09 06:24:18] Production.INFO: ProcessCDR(1,14867685,1,1,2) [2025-04-09 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867685', 'tblTempUsageDetail_20' ) start [2025-04-09 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867685', 'tblTempUsageDetail_20' ) end [2025-04-09 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:24:22] Production.INFO: ==2853== Releasing lock... [2025-04-09 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:25:06 [end_date_ymd] => 2025-04-09 06:25:06 [RateCDR] => 1 ) [2025-04-09 06: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 03:25:06' and `end` < '2025-04-09 06: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-09 06:25:19] Production.INFO: count ==78 [2025-04-09 06:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 03:25:06 - End Time 2025-04-09 06:25:06 [2025-04-09 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867690', 'tblTempUsageDetail_20' ) start [2025-04-09 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867690', 'tblTempUsageDetail_20' ) end [2025-04-09 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867690', 'tblTempVendorCDR_20' ) start [2025-04-09 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867690', 'tblTempVendorCDR_20' ) end [2025-04-09 06:25:19] Production.INFO: ProcessCDR(1,14867690,1,1,2) [2025-04-09 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867690', 'tblTempUsageDetail_20' ) start [2025-04-09 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867690', 'tblTempUsageDetail_20' ) end [2025-04-09 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:25:22] Production.INFO: ==2928== Releasing lock... [2025-04-09 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:26:05 [end_date_ymd] => 2025-04-09 06:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:26:05' and `end` < '2025-04-09 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-09 06:26:17] Production.INFO: count ==78 [2025-04-09 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:26:05 - End Time 2025-04-09 06:26:05 [2025-04-09 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867695', 'tblTempUsageDetail_20' ) start [2025-04-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867695', 'tblTempUsageDetail_20' ) end [2025-04-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867695', 'tblTempVendorCDR_20' ) start [2025-04-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867695', 'tblTempVendorCDR_20' ) end [2025-04-09 06:26:18] Production.INFO: ProcessCDR(1,14867695,1,1,2) [2025-04-09 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867695', 'tblTempUsageDetail_20' ) start [2025-04-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867695', 'tblTempUsageDetail_20' ) end [2025-04-09 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:26:21] Production.INFO: ==2998== Releasing lock... [2025-04-09 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:27:05 [end_date_ymd] => 2025-04-09 06:27:05 [RateCDR] => 1 ) [2025-04-09 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:27:05' and `end` < '2025-04-09 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:27:18] Production.INFO: count ==78 [2025-04-09 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:27:05 - End Time 2025-04-09 06:27:05 [2025-04-09 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867700', 'tblTempUsageDetail_20' ) start [2025-04-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867700', 'tblTempUsageDetail_20' ) end [2025-04-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867700', 'tblTempVendorCDR_20' ) start [2025-04-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867700', 'tblTempVendorCDR_20' ) end [2025-04-09 06:27:18] Production.INFO: ProcessCDR(1,14867700,1,1,2) [2025-04-09 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867700', 'tblTempUsageDetail_20' ) start [2025-04-09 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867700', 'tblTempUsageDetail_20' ) end [2025-04-09 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:27:22] Production.INFO: ==3073== Releasing lock... [2025-04-09 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:28:05 [end_date_ymd] => 2025-04-09 06:28:05 [RateCDR] => 1 ) [2025-04-09 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:28:05' and `end` < '2025-04-09 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-09 06:28:18] Production.INFO: count ==78 [2025-04-09 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:28:05 - End Time 2025-04-09 06:28:05 [2025-04-09 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867705', 'tblTempUsageDetail_20' ) start [2025-04-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867705', 'tblTempUsageDetail_20' ) end [2025-04-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867705', 'tblTempVendorCDR_20' ) start [2025-04-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867705', 'tblTempVendorCDR_20' ) end [2025-04-09 06:28:18] Production.INFO: ProcessCDR(1,14867705,1,1,2) [2025-04-09 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867705', 'tblTempUsageDetail_20' ) start [2025-04-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867705', 'tblTempUsageDetail_20' ) end [2025-04-09 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:28:21] Production.INFO: ==3148== Releasing lock... [2025-04-09 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:29:05 [end_date_ymd] => 2025-04-09 06:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:29:05' and `end` < '2025-04-09 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-09 06:29:18] Production.INFO: count ==78 [2025-04-09 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:29:05 - End Time 2025-04-09 06:29:05 [2025-04-09 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867710', 'tblTempUsageDetail_20' ) start [2025-04-09 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867710', 'tblTempUsageDetail_20' ) end [2025-04-09 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867710', 'tblTempVendorCDR_20' ) start [2025-04-09 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867710', 'tblTempVendorCDR_20' ) end [2025-04-09 06:29:18] Production.INFO: ProcessCDR(1,14867710,1,1,2) [2025-04-09 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867710', 'tblTempUsageDetail_20' ) start [2025-04-09 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867710', 'tblTempUsageDetail_20' ) end [2025-04-09 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:29:21] Production.INFO: ==3217== Releasing lock... [2025-04-09 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:30:05 [end_date_ymd] => 2025-04-09 06:30:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:30:05' and `end` < '2025-04-09 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-09 06:30:18] Production.INFO: count ==80 [2025-04-09 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:30:05 - End Time 2025-04-09 06:30:05 [2025-04-09 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867716', 'tblTempUsageDetail_20' ) start [2025-04-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867716', 'tblTempUsageDetail_20' ) end [2025-04-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867716', 'tblTempVendorCDR_20' ) start [2025-04-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867716', 'tblTempVendorCDR_20' ) end [2025-04-09 06:30:18] Production.INFO: ProcessCDR(1,14867716,1,1,2) [2025-04-09 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867716', 'tblTempUsageDetail_20' ) start [2025-04-09 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867716', 'tblTempUsageDetail_20' ) end [2025-04-09 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:30:22] Production.INFO: ==3295== Releasing lock... [2025-04-09 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:31:05 [end_date_ymd] => 2025-04-09 06:31:05 [RateCDR] => 1 ) [2025-04-09 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:31:05' and `end` < '2025-04-09 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:31:18] Production.INFO: count ==80 [2025-04-09 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:31:05 - End Time 2025-04-09 06:31:05 [2025-04-09 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867721', 'tblTempUsageDetail_20' ) start [2025-04-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867721', 'tblTempUsageDetail_20' ) end [2025-04-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867721', 'tblTempVendorCDR_20' ) start [2025-04-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867721', 'tblTempVendorCDR_20' ) end [2025-04-09 06:31:18] Production.INFO: ProcessCDR(1,14867721,1,1,2) [2025-04-09 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867721', 'tblTempUsageDetail_20' ) start [2025-04-09 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867721', 'tblTempUsageDetail_20' ) end [2025-04-09 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:31:22] Production.INFO: ==3367== Releasing lock... [2025-04-09 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:32:05 [end_date_ymd] => 2025-04-09 06:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:32:05' and `end` < '2025-04-09 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-09 06:32:17] Production.INFO: count ==80 [2025-04-09 06:32:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:32:05 - End Time 2025-04-09 06:32:05 [2025-04-09 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867726', 'tblTempUsageDetail_20' ) start [2025-04-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867726', 'tblTempUsageDetail_20' ) end [2025-04-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867726', 'tblTempVendorCDR_20' ) start [2025-04-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867726', 'tblTempVendorCDR_20' ) end [2025-04-09 06:32:17] Production.INFO: ProcessCDR(1,14867726,1,1,2) [2025-04-09 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867726', 'tblTempUsageDetail_20' ) start [2025-04-09 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867726', 'tblTempUsageDetail_20' ) end [2025-04-09 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:32:21] Production.INFO: ==3443== Releasing lock... [2025-04-09 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:33:05 [end_date_ymd] => 2025-04-09 06:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:33:05' and `end` < '2025-04-09 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-09 06:33:18] Production.INFO: count ==80 [2025-04-09 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:33:05 - End Time 2025-04-09 06:33:05 [2025-04-09 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867731', 'tblTempUsageDetail_20' ) start [2025-04-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867731', 'tblTempUsageDetail_20' ) end [2025-04-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867731', 'tblTempVendorCDR_20' ) start [2025-04-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867731', 'tblTempVendorCDR_20' ) end [2025-04-09 06:33:18] Production.INFO: ProcessCDR(1,14867731,1,1,2) [2025-04-09 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867731', 'tblTempUsageDetail_20' ) start [2025-04-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867731', 'tblTempUsageDetail_20' ) end [2025-04-09 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:33:21] Production.INFO: ==3517== Releasing lock... [2025-04-09 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:34:05 [end_date_ymd] => 2025-04-09 06:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:34:05' and `end` < '2025-04-09 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-09 06:34:17] Production.INFO: count ==80 [2025-04-09 06:34:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:34:05 - End Time 2025-04-09 06:34:05 [2025-04-09 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867736', 'tblTempUsageDetail_20' ) start [2025-04-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867736', 'tblTempUsageDetail_20' ) end [2025-04-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867736', 'tblTempVendorCDR_20' ) start [2025-04-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867736', 'tblTempVendorCDR_20' ) end [2025-04-09 06:34:17] Production.INFO: ProcessCDR(1,14867736,1,1,2) [2025-04-09 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867736', 'tblTempUsageDetail_20' ) start [2025-04-09 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867736', 'tblTempUsageDetail_20' ) end [2025-04-09 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:34:21] Production.INFO: ==3590== Releasing lock... [2025-04-09 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:35:05 [end_date_ymd] => 2025-04-09 06:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:35:05' and `end` < '2025-04-09 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-09 06:35:18] Production.INFO: count ==80 [2025-04-09 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:35:05 - End Time 2025-04-09 06:35:05 [2025-04-09 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867741', 'tblTempUsageDetail_20' ) start [2025-04-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867741', 'tblTempUsageDetail_20' ) end [2025-04-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867741', 'tblTempVendorCDR_20' ) start [2025-04-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867741', 'tblTempVendorCDR_20' ) end [2025-04-09 06:35:18] Production.INFO: ProcessCDR(1,14867741,1,1,2) [2025-04-09 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867741', 'tblTempUsageDetail_20' ) start [2025-04-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867741', 'tblTempUsageDetail_20' ) end [2025-04-09 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:35:21] Production.INFO: ==3662== Releasing lock... [2025-04-09 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:36:04 [end_date_ymd] => 2025-04-09 06:36:04 [RateCDR] => 1 ) [2025-04-09 06: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-09 03:36:04' and `end` < '2025-04-09 06: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-09 06:36:17] Production.INFO: count ==76 [2025-04-09 06:36:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:36:04 - End Time 2025-04-09 06:36:04 [2025-04-09 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867746', 'tblTempUsageDetail_20' ) start [2025-04-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867746', 'tblTempUsageDetail_20' ) end [2025-04-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867746', 'tblTempVendorCDR_20' ) start [2025-04-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867746', 'tblTempVendorCDR_20' ) end [2025-04-09 06:36:17] Production.INFO: ProcessCDR(1,14867746,1,1,2) [2025-04-09 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867746', 'tblTempUsageDetail_20' ) start [2025-04-09 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867746', 'tblTempUsageDetail_20' ) end [2025-04-09 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:36:21] Production.INFO: ==3733== Releasing lock... [2025-04-09 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:37:05 [end_date_ymd] => 2025-04-09 06:37:05 [RateCDR] => 1 ) [2025-04-09 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:37:05' and `end` < '2025-04-09 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:37:18] Production.INFO: count ==76 [2025-04-09 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:37:05 - End Time 2025-04-09 06:37:05 [2025-04-09 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867751', 'tblTempUsageDetail_20' ) start [2025-04-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867751', 'tblTempUsageDetail_20' ) end [2025-04-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867751', 'tblTempVendorCDR_20' ) start [2025-04-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867751', 'tblTempVendorCDR_20' ) end [2025-04-09 06:37:18] Production.INFO: ProcessCDR(1,14867751,1,1,2) [2025-04-09 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867751', 'tblTempUsageDetail_20' ) start [2025-04-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867751', 'tblTempUsageDetail_20' ) end [2025-04-09 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:37:21] Production.INFO: ==3808== Releasing lock... [2025-04-09 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:38:05 [end_date_ymd] => 2025-04-09 06:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:38:05' and `end` < '2025-04-09 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-09 06:38:18] Production.INFO: count ==76 [2025-04-09 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:38:05 - End Time 2025-04-09 06:38:05 [2025-04-09 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867756', 'tblTempUsageDetail_20' ) start [2025-04-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867756', 'tblTempUsageDetail_20' ) end [2025-04-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867756', 'tblTempVendorCDR_20' ) start [2025-04-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867756', 'tblTempVendorCDR_20' ) end [2025-04-09 06:38:18] Production.INFO: ProcessCDR(1,14867756,1,1,2) [2025-04-09 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867756', 'tblTempUsageDetail_20' ) start [2025-04-09 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867756', 'tblTempUsageDetail_20' ) end [2025-04-09 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:38:21] Production.INFO: ==3884== Releasing lock... [2025-04-09 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:39:05 [end_date_ymd] => 2025-04-09 06:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:39:05' and `end` < '2025-04-09 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-09 06:39:18] Production.INFO: count ==74 [2025-04-09 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:39:05 - End Time 2025-04-09 06:39:05 [2025-04-09 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867761', 'tblTempUsageDetail_20' ) start [2025-04-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867761', 'tblTempUsageDetail_20' ) end [2025-04-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867761', 'tblTempVendorCDR_20' ) start [2025-04-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867761', 'tblTempVendorCDR_20' ) end [2025-04-09 06:39:18] Production.INFO: ProcessCDR(1,14867761,1,1,2) [2025-04-09 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867761', 'tblTempUsageDetail_20' ) start [2025-04-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867761', 'tblTempUsageDetail_20' ) end [2025-04-09 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:39:21] Production.INFO: ==3957== Releasing lock... [2025-04-09 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:40:06 [end_date_ymd] => 2025-04-09 06:40:06 [RateCDR] => 1 ) [2025-04-09 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:40:06' and `end` < '2025-04-09 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:40:19] Production.INFO: count ==74 [2025-04-09 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 03:40:06 - End Time 2025-04-09 06:40:06 [2025-04-09 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867767', 'tblTempUsageDetail_20' ) start [2025-04-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867767', 'tblTempUsageDetail_20' ) end [2025-04-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867767', 'tblTempVendorCDR_20' ) start [2025-04-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867767', 'tblTempVendorCDR_20' ) end [2025-04-09 06:40:19] Production.INFO: ProcessCDR(1,14867767,1,1,2) [2025-04-09 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867767', 'tblTempUsageDetail_20' ) start [2025-04-09 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867767', 'tblTempUsageDetail_20' ) end [2025-04-09 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:40:23] Production.INFO: ==4073== Releasing lock... [2025-04-09 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:41:05 [end_date_ymd] => 2025-04-09 06:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:41:05' and `end` < '2025-04-09 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-09 06:41:17] Production.INFO: count ==74 [2025-04-09 06:41:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:41:05 - End Time 2025-04-09 06:41:05 [2025-04-09 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867772', 'tblTempUsageDetail_20' ) start [2025-04-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867772', 'tblTempUsageDetail_20' ) end [2025-04-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867772', 'tblTempVendorCDR_20' ) start [2025-04-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867772', 'tblTempVendorCDR_20' ) end [2025-04-09 06:41:17] Production.INFO: ProcessCDR(1,14867772,1,1,2) [2025-04-09 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867772', 'tblTempUsageDetail_20' ) start [2025-04-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867772', 'tblTempUsageDetail_20' ) end [2025-04-09 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:41:21] Production.INFO: ==4151== Releasing lock... [2025-04-09 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:42:05 [end_date_ymd] => 2025-04-09 06:42:05 [RateCDR] => 1 ) [2025-04-09 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:42:05' and `end` < '2025-04-09 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:42:18] Production.INFO: count ==74 [2025-04-09 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:42:05 - End Time 2025-04-09 06:42:05 [2025-04-09 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867777', 'tblTempUsageDetail_20' ) start [2025-04-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867777', 'tblTempUsageDetail_20' ) end [2025-04-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867777', 'tblTempVendorCDR_20' ) start [2025-04-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867777', 'tblTempVendorCDR_20' ) end [2025-04-09 06:42:18] Production.INFO: ProcessCDR(1,14867777,1,1,2) [2025-04-09 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867777', 'tblTempUsageDetail_20' ) start [2025-04-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867777', 'tblTempUsageDetail_20' ) end [2025-04-09 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:42:21] Production.INFO: ==4221== Releasing lock... [2025-04-09 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:43:05 [end_date_ymd] => 2025-04-09 06:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:43:05' and `end` < '2025-04-09 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-09 06:43:18] Production.INFO: count ==73 [2025-04-09 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:43:05 - End Time 2025-04-09 06:43:05 [2025-04-09 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867782', 'tblTempUsageDetail_20' ) start [2025-04-09 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867782', 'tblTempUsageDetail_20' ) end [2025-04-09 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867782', 'tblTempVendorCDR_20' ) start [2025-04-09 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867782', 'tblTempVendorCDR_20' ) end [2025-04-09 06:43:18] Production.INFO: ProcessCDR(1,14867782,1,1,2) [2025-04-09 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867782', 'tblTempUsageDetail_20' ) start [2025-04-09 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867782', 'tblTempUsageDetail_20' ) end [2025-04-09 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:43:21] Production.INFO: ==4290== Releasing lock... [2025-04-09 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:44:05 [end_date_ymd] => 2025-04-09 06:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:44:05' and `end` < '2025-04-09 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-09 06:44:18] Production.INFO: count ==72 [2025-04-09 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:44:05 - End Time 2025-04-09 06:44:05 [2025-04-09 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867787', 'tblTempUsageDetail_20' ) start [2025-04-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867787', 'tblTempUsageDetail_20' ) end [2025-04-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867787', 'tblTempVendorCDR_20' ) start [2025-04-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867787', 'tblTempVendorCDR_20' ) end [2025-04-09 06:44:18] Production.INFO: ProcessCDR(1,14867787,1,1,2) [2025-04-09 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867787', 'tblTempUsageDetail_20' ) start [2025-04-09 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867787', 'tblTempUsageDetail_20' ) end [2025-04-09 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:44:22] Production.INFO: ==4365== Releasing lock... [2025-04-09 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:45:05 [end_date_ymd] => 2025-04-09 06:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:45:05' and `end` < '2025-04-09 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-09 06:45:18] Production.INFO: count ==72 [2025-04-09 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:45:05 - End Time 2025-04-09 06:45:05 [2025-04-09 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867792', 'tblTempUsageDetail_20' ) start [2025-04-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867792', 'tblTempUsageDetail_20' ) end [2025-04-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867792', 'tblTempVendorCDR_20' ) start [2025-04-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867792', 'tblTempVendorCDR_20' ) end [2025-04-09 06:45:18] Production.INFO: ProcessCDR(1,14867792,1,1,2) [2025-04-09 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867792', 'tblTempUsageDetail_20' ) start [2025-04-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867792', 'tblTempUsageDetail_20' ) end [2025-04-09 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:45:21] Production.INFO: ==4435== Releasing lock... [2025-04-09 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:46:05 [end_date_ymd] => 2025-04-09 06:46:05 [RateCDR] => 1 ) [2025-04-09 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:46:05' and `end` < '2025-04-09 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:46:18] Production.INFO: count ==72 [2025-04-09 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:46:05 - End Time 2025-04-09 06:46:05 [2025-04-09 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867797', 'tblTempUsageDetail_20' ) start [2025-04-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867797', 'tblTempUsageDetail_20' ) end [2025-04-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867797', 'tblTempVendorCDR_20' ) start [2025-04-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867797', 'tblTempVendorCDR_20' ) end [2025-04-09 06:46:18] Production.INFO: ProcessCDR(1,14867797,1,1,2) [2025-04-09 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867797', 'tblTempUsageDetail_20' ) start [2025-04-09 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867797', 'tblTempUsageDetail_20' ) end [2025-04-09 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:46:22] Production.INFO: ==4509== Releasing lock... [2025-04-09 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:47:04 [end_date_ymd] => 2025-04-09 06:47:04 [RateCDR] => 1 ) [2025-04-09 06: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-09 03:47:04' and `end` < '2025-04-09 06: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-09 06:47:17] Production.INFO: count ==72 [2025-04-09 06:47:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:47:04 - End Time 2025-04-09 06:47:04 [2025-04-09 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867802', 'tblTempUsageDetail_20' ) start [2025-04-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867802', 'tblTempUsageDetail_20' ) end [2025-04-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867802', 'tblTempVendorCDR_20' ) start [2025-04-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867802', 'tblTempVendorCDR_20' ) end [2025-04-09 06:47:17] Production.INFO: ProcessCDR(1,14867802,1,1,2) [2025-04-09 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867802', 'tblTempUsageDetail_20' ) start [2025-04-09 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867802', 'tblTempUsageDetail_20' ) end [2025-04-09 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:47:20] Production.INFO: ==4588== Releasing lock... [2025-04-09 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:48:05 [end_date_ymd] => 2025-04-09 06:48:05 [RateCDR] => 1 ) [2025-04-09 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:48:05' and `end` < '2025-04-09 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:48:18] Production.INFO: count ==72 [2025-04-09 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:48:05 - End Time 2025-04-09 06:48:05 [2025-04-09 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867807', 'tblTempUsageDetail_20' ) start [2025-04-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867807', 'tblTempUsageDetail_20' ) end [2025-04-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867807', 'tblTempVendorCDR_20' ) start [2025-04-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867807', 'tblTempVendorCDR_20' ) end [2025-04-09 06:48:18] Production.INFO: ProcessCDR(1,14867807,1,1,2) [2025-04-09 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867807', 'tblTempUsageDetail_20' ) start [2025-04-09 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867807', 'tblTempUsageDetail_20' ) end [2025-04-09 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:48:21] Production.INFO: ==4664== Releasing lock... [2025-04-09 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:49:05 [end_date_ymd] => 2025-04-09 06:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:49:05' and `end` < '2025-04-09 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-09 06:49:18] Production.INFO: count ==72 [2025-04-09 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:49:05 - End Time 2025-04-09 06:49:05 [2025-04-09 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867812', 'tblTempUsageDetail_20' ) start [2025-04-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867812', 'tblTempUsageDetail_20' ) end [2025-04-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867812', 'tblTempVendorCDR_20' ) start [2025-04-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867812', 'tblTempVendorCDR_20' ) end [2025-04-09 06:49:18] Production.INFO: ProcessCDR(1,14867812,1,1,2) [2025-04-09 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867812', 'tblTempUsageDetail_20' ) start [2025-04-09 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867812', 'tblTempUsageDetail_20' ) end [2025-04-09 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:49:21] Production.INFO: ==4740== Releasing lock... [2025-04-09 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:50:05 [end_date_ymd] => 2025-04-09 06:50:05 [RateCDR] => 1 ) [2025-04-09 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:50:05' and `end` < '2025-04-09 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:50:18] Production.INFO: count ==72 [2025-04-09 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:50:05 - End Time 2025-04-09 06:50:05 [2025-04-09 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867818', 'tblTempUsageDetail_20' ) start [2025-04-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867818', 'tblTempUsageDetail_20' ) end [2025-04-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867818', 'tblTempVendorCDR_20' ) start [2025-04-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867818', 'tblTempVendorCDR_20' ) end [2025-04-09 06:50:18] Production.INFO: ProcessCDR(1,14867818,1,1,2) [2025-04-09 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867818', 'tblTempUsageDetail_20' ) start [2025-04-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867818', 'tblTempUsageDetail_20' ) end [2025-04-09 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:50:22] Production.INFO: ==4811== Releasing lock... [2025-04-09 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:51:05 [end_date_ymd] => 2025-04-09 06:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:51:05' and `end` < '2025-04-09 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-09 06:51:18] Production.INFO: count ==72 [2025-04-09 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:51:05 - End Time 2025-04-09 06:51:05 [2025-04-09 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867823', 'tblTempUsageDetail_20' ) start [2025-04-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867823', 'tblTempUsageDetail_20' ) end [2025-04-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867823', 'tblTempVendorCDR_20' ) start [2025-04-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867823', 'tblTempVendorCDR_20' ) end [2025-04-09 06:51:18] Production.INFO: ProcessCDR(1,14867823,1,1,2) [2025-04-09 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867823', 'tblTempUsageDetail_20' ) start [2025-04-09 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867823', 'tblTempUsageDetail_20' ) end [2025-04-09 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:51:22] Production.INFO: ==4895== Releasing lock... [2025-04-09 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:52:05 [end_date_ymd] => 2025-04-09 06:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:52:05' and `end` < '2025-04-09 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-09 06:52:18] Production.INFO: count ==74 [2025-04-09 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:52:05 - End Time 2025-04-09 06:52:05 [2025-04-09 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867828', 'tblTempUsageDetail_20' ) start [2025-04-09 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867828', 'tblTempUsageDetail_20' ) end [2025-04-09 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867828', 'tblTempVendorCDR_20' ) start [2025-04-09 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867828', 'tblTempVendorCDR_20' ) end [2025-04-09 06:52:18] Production.INFO: ProcessCDR(1,14867828,1,1,2) [2025-04-09 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867828', 'tblTempUsageDetail_20' ) start [2025-04-09 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867828', 'tblTempUsageDetail_20' ) end [2025-04-09 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:52:21] Production.INFO: ==4975== Releasing lock... [2025-04-09 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:53:05 [end_date_ymd] => 2025-04-09 06:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:53:05' and `end` < '2025-04-09 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-09 06:53:18] Production.INFO: count ==77 [2025-04-09 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:53:05 - End Time 2025-04-09 06:53:05 [2025-04-09 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867833', 'tblTempUsageDetail_20' ) start [2025-04-09 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867833', 'tblTempUsageDetail_20' ) end [2025-04-09 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867833', 'tblTempVendorCDR_20' ) start [2025-04-09 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867833', 'tblTempVendorCDR_20' ) end [2025-04-09 06:53:18] Production.INFO: ProcessCDR(1,14867833,1,1,2) [2025-04-09 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867833', 'tblTempUsageDetail_20' ) start [2025-04-09 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867833', 'tblTempUsageDetail_20' ) end [2025-04-09 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:53:23] Production.INFO: ==5048== Releasing lock... [2025-04-09 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:54:05 [end_date_ymd] => 2025-04-09 06:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:54:05' and `end` < '2025-04-09 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-09 06:54:17] Production.INFO: count ==78 [2025-04-09 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:54:05 - End Time 2025-04-09 06:54:05 [2025-04-09 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867838', 'tblTempUsageDetail_20' ) start [2025-04-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867838', 'tblTempUsageDetail_20' ) end [2025-04-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867838', 'tblTempVendorCDR_20' ) start [2025-04-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867838', 'tblTempVendorCDR_20' ) end [2025-04-09 06:54:18] Production.INFO: ProcessCDR(1,14867838,1,1,2) [2025-04-09 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867838', 'tblTempUsageDetail_20' ) start [2025-04-09 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867838', 'tblTempUsageDetail_20' ) end [2025-04-09 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:54:22] Production.INFO: ==5139== Releasing lock... [2025-04-09 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:55:05 [end_date_ymd] => 2025-04-09 06:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:55:05' and `end` < '2025-04-09 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-09 06:55:18] Production.INFO: count ==78 [2025-04-09 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:55:05 - End Time 2025-04-09 06:55:05 [2025-04-09 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867843', 'tblTempUsageDetail_20' ) start [2025-04-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867843', 'tblTempUsageDetail_20' ) end [2025-04-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867843', 'tblTempVendorCDR_20' ) start [2025-04-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867843', 'tblTempVendorCDR_20' ) end [2025-04-09 06:55:18] Production.INFO: ProcessCDR(1,14867843,1,1,2) [2025-04-09 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867843', 'tblTempUsageDetail_20' ) start [2025-04-09 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867843', 'tblTempUsageDetail_20' ) end [2025-04-09 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:55:22] Production.INFO: ==5252== Releasing lock... [2025-04-09 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:56:05 [end_date_ymd] => 2025-04-09 06:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:56:05' and `end` < '2025-04-09 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-09 06:56:18] Production.INFO: count ==78 [2025-04-09 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:56:05 - End Time 2025-04-09 06:56:05 [2025-04-09 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867848', 'tblTempUsageDetail_20' ) start [2025-04-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867848', 'tblTempUsageDetail_20' ) end [2025-04-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867848', 'tblTempVendorCDR_20' ) start [2025-04-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867848', 'tblTempVendorCDR_20' ) end [2025-04-09 06:56:18] Production.INFO: ProcessCDR(1,14867848,1,1,2) [2025-04-09 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867848', 'tblTempUsageDetail_20' ) start [2025-04-09 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867848', 'tblTempUsageDetail_20' ) end [2025-04-09 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:56:21] Production.INFO: ==5331== Releasing lock... [2025-04-09 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:57:05 [end_date_ymd] => 2025-04-09 06:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 03:57:05' and `end` < '2025-04-09 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-09 06:57:18] Production.INFO: count ==78 [2025-04-09 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:57:05 - End Time 2025-04-09 06:57:05 [2025-04-09 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867853', 'tblTempUsageDetail_20' ) start [2025-04-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867853', 'tblTempUsageDetail_20' ) end [2025-04-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867853', 'tblTempVendorCDR_20' ) start [2025-04-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867853', 'tblTempVendorCDR_20' ) end [2025-04-09 06:57:18] Production.INFO: ProcessCDR(1,14867853,1,1,2) [2025-04-09 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867853', 'tblTempUsageDetail_20' ) start [2025-04-09 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867853', 'tblTempUsageDetail_20' ) end [2025-04-09 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:57:21] Production.INFO: ==5401== Releasing lock... [2025-04-09 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:58:06 [end_date_ymd] => 2025-04-09 06:58:06 [RateCDR] => 1 ) [2025-04-09 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:58:06' and `end` < '2025-04-09 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:58:18] Production.INFO: count ==78 [2025-04-09 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 03:58:06 - End Time 2025-04-09 06:58:06 [2025-04-09 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867858', 'tblTempUsageDetail_20' ) start [2025-04-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867858', 'tblTempUsageDetail_20' ) end [2025-04-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867858', 'tblTempVendorCDR_20' ) start [2025-04-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867858', 'tblTempVendorCDR_20' ) end [2025-04-09 06:58:18] Production.INFO: ProcessCDR(1,14867858,1,1,2) [2025-04-09 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867858', 'tblTempUsageDetail_20' ) start [2025-04-09 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867858', 'tblTempUsageDetail_20' ) end [2025-04-09 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:58:22] Production.INFO: ==5479== Releasing lock... [2025-04-09 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 03:59:05 [end_date_ymd] => 2025-04-09 06:59:05 [RateCDR] => 1 ) [2025-04-09 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 03:59:05' and `end` < '2025-04-09 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 06:59:17] Production.INFO: count ==78 [2025-04-09 06:59:17] Production.ERROR: pbx CDR StartTime 2025-04-09 03:59:05 - End Time 2025-04-09 06:59:05 [2025-04-09 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867863', 'tblTempUsageDetail_20' ) start [2025-04-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867863', 'tblTempUsageDetail_20' ) end [2025-04-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867863', 'tblTempVendorCDR_20' ) start [2025-04-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867863', 'tblTempVendorCDR_20' ) end [2025-04-09 06:59:17] Production.INFO: ProcessCDR(1,14867863,1,1,2) [2025-04-09 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867863', 'tblTempUsageDetail_20' ) start [2025-04-09 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867863', 'tblTempUsageDetail_20' ) end [2025-04-09 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 06:59:21] Production.INFO: ==5551== Releasing lock... [2025-04-09 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 06:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:00:06 [end_date_ymd] => 2025-04-09 07:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:00:06' and `end` < '2025-04-09 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-09 07:00:19] Production.INFO: count ==78 [2025-04-09 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:00:06 - End Time 2025-04-09 07:00:06 [2025-04-09 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867869', 'tblTempUsageDetail_20' ) start [2025-04-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867869', 'tblTempUsageDetail_20' ) end [2025-04-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867869', 'tblTempVendorCDR_20' ) start [2025-04-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867869', 'tblTempVendorCDR_20' ) end [2025-04-09 07:00:19] Production.INFO: ProcessCDR(1,14867869,1,1,2) [2025-04-09 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867869', 'tblTempUsageDetail_20' ) start [2025-04-09 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867869', 'tblTempUsageDetail_20' ) end [2025-04-09 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:00:22] Production.INFO: ==5625== Releasing lock... [2025-04-09 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:01:05 [end_date_ymd] => 2025-04-09 07:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:01:05' and `end` < '2025-04-09 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-09 07:01:18] Production.INFO: count ==78 [2025-04-09 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:01:05 - End Time 2025-04-09 07:01:05 [2025-04-09 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867874', 'tblTempUsageDetail_20' ) start [2025-04-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867874', 'tblTempUsageDetail_20' ) end [2025-04-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867874', 'tblTempVendorCDR_20' ) start [2025-04-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867874', 'tblTempVendorCDR_20' ) end [2025-04-09 07:01:18] Production.INFO: ProcessCDR(1,14867874,1,1,2) [2025-04-09 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867874', 'tblTempUsageDetail_20' ) start [2025-04-09 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867874', 'tblTempUsageDetail_20' ) end [2025-04-09 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:01:22] Production.INFO: ==5719== Releasing lock... [2025-04-09 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:02:05 [end_date_ymd] => 2025-04-09 07:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:02:05' and `end` < '2025-04-09 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-09 07:02:20] Production.INFO: count ==78 [2025-04-09 07:02:20] Production.ERROR: pbx CDR StartTime 2025-04-09 04:02:05 - End Time 2025-04-09 07:02:05 [2025-04-09 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867879', 'tblTempUsageDetail_20' ) start [2025-04-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867879', 'tblTempUsageDetail_20' ) end [2025-04-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867879', 'tblTempVendorCDR_20' ) start [2025-04-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867879', 'tblTempVendorCDR_20' ) end [2025-04-09 07:02:20] Production.INFO: ProcessCDR(1,14867879,1,1,2) [2025-04-09 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867879', 'tblTempUsageDetail_20' ) start [2025-04-09 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867879', 'tblTempUsageDetail_20' ) end [2025-04-09 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:02:23] Production.INFO: ==5873== Releasing lock... [2025-04-09 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:02:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:03:05 [end_date_ymd] => 2025-04-09 07:03:05 [RateCDR] => 1 ) [2025-04-09 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:03:05' and `end` < '2025-04-09 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:03:18] Production.INFO: count ==80 [2025-04-09 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:03:05 - End Time 2025-04-09 07:03:05 [2025-04-09 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867884', 'tblTempUsageDetail_20' ) start [2025-04-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867884', 'tblTempUsageDetail_20' ) end [2025-04-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867884', 'tblTempVendorCDR_20' ) start [2025-04-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867884', 'tblTempVendorCDR_20' ) end [2025-04-09 07:03:18] Production.INFO: ProcessCDR(1,14867884,1,1,2) [2025-04-09 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867884', 'tblTempUsageDetail_20' ) start [2025-04-09 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867884', 'tblTempUsageDetail_20' ) end [2025-04-09 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:03:21] Production.INFO: ==5948== Releasing lock... [2025-04-09 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:04:05 [end_date_ymd] => 2025-04-09 07:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:04:05' and `end` < '2025-04-09 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-09 07:04:19] Production.INFO: count ==80 [2025-04-09 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:04:05 - End Time 2025-04-09 07:04:05 [2025-04-09 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867889', 'tblTempUsageDetail_20' ) start [2025-04-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867889', 'tblTempUsageDetail_20' ) end [2025-04-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867889', 'tblTempVendorCDR_20' ) start [2025-04-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867889', 'tblTempVendorCDR_20' ) end [2025-04-09 07:04:19] Production.INFO: ProcessCDR(1,14867889,1,1,2) [2025-04-09 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867889', 'tblTempUsageDetail_20' ) start [2025-04-09 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867889', 'tblTempUsageDetail_20' ) end [2025-04-09 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:04:22] Production.INFO: ==6028== Releasing lock... [2025-04-09 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:05:05 [end_date_ymd] => 2025-04-09 07:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:05:05' and `end` < '2025-04-09 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-09 07:05:18] Production.INFO: count ==80 [2025-04-09 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:05:05 - End Time 2025-04-09 07:05:05 [2025-04-09 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867894', 'tblTempUsageDetail_20' ) start [2025-04-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867894', 'tblTempUsageDetail_20' ) end [2025-04-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867894', 'tblTempVendorCDR_20' ) start [2025-04-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867894', 'tblTempVendorCDR_20' ) end [2025-04-09 07:05:18] Production.INFO: ProcessCDR(1,14867894,1,1,2) [2025-04-09 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867894', 'tblTempUsageDetail_20' ) start [2025-04-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867894', 'tblTempUsageDetail_20' ) end [2025-04-09 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:05:21] Production.INFO: ==6182== Releasing lock... [2025-04-09 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:06:05 [end_date_ymd] => 2025-04-09 07:06:05 [RateCDR] => 1 ) [2025-04-09 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:06:05' and `end` < '2025-04-09 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:06:19] Production.INFO: count ==80 [2025-04-09 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:06:05 - End Time 2025-04-09 07:06:05 [2025-04-09 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867899', 'tblTempUsageDetail_20' ) start [2025-04-09 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867899', 'tblTempUsageDetail_20' ) end [2025-04-09 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867899', 'tblTempVendorCDR_20' ) start [2025-04-09 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867899', 'tblTempVendorCDR_20' ) end [2025-04-09 07:06:19] Production.INFO: ProcessCDR(1,14867899,1,1,2) [2025-04-09 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867899', 'tblTempUsageDetail_20' ) start [2025-04-09 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867899', 'tblTempUsageDetail_20' ) end [2025-04-09 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:06:22] Production.INFO: ==6259== Releasing lock... [2025-04-09 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:07:05 [end_date_ymd] => 2025-04-09 07:07:05 [RateCDR] => 1 ) [2025-04-09 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:07:05' and `end` < '2025-04-09 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:07:20] Production.INFO: count ==79 [2025-04-09 07:07:20] Production.ERROR: pbx CDR StartTime 2025-04-09 04:07:05 - End Time 2025-04-09 07:07:05 [2025-04-09 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867904', 'tblTempUsageDetail_20' ) start [2025-04-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867904', 'tblTempUsageDetail_20' ) end [2025-04-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867904', 'tblTempVendorCDR_20' ) start [2025-04-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867904', 'tblTempVendorCDR_20' ) end [2025-04-09 07:07:20] Production.INFO: ProcessCDR(1,14867904,1,1,2) [2025-04-09 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867904', 'tblTempUsageDetail_20' ) start [2025-04-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867904', 'tblTempUsageDetail_20' ) end [2025-04-09 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:07:23] Production.INFO: ==6334== Releasing lock... [2025-04-09 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:07:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:08:05 [end_date_ymd] => 2025-04-09 07:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:08:05' and `end` < '2025-04-09 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-09 07:08:18] Production.INFO: count ==75 [2025-04-09 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:08:05 - End Time 2025-04-09 07:08:05 [2025-04-09 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867909', 'tblTempUsageDetail_20' ) start [2025-04-09 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867909', 'tblTempUsageDetail_20' ) end [2025-04-09 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867909', 'tblTempVendorCDR_20' ) start [2025-04-09 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867909', 'tblTempVendorCDR_20' ) end [2025-04-09 07:08:18] Production.INFO: ProcessCDR(1,14867909,1,1,2) [2025-04-09 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867909', 'tblTempUsageDetail_20' ) start [2025-04-09 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867909', 'tblTempUsageDetail_20' ) end [2025-04-09 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:08:22] Production.INFO: ==6452== Releasing lock... [2025-04-09 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:09:05 [end_date_ymd] => 2025-04-09 07:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:09:05' and `end` < '2025-04-09 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-09 07:09:18] Production.INFO: count ==72 [2025-04-09 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:09:05 - End Time 2025-04-09 07:09:05 [2025-04-09 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867914', 'tblTempUsageDetail_20' ) start [2025-04-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867914', 'tblTempUsageDetail_20' ) end [2025-04-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867914', 'tblTempVendorCDR_20' ) start [2025-04-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867914', 'tblTempVendorCDR_20' ) end [2025-04-09 07:09:18] Production.INFO: ProcessCDR(1,14867914,1,1,2) [2025-04-09 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867914', 'tblTempUsageDetail_20' ) start [2025-04-09 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867914', 'tblTempUsageDetail_20' ) end [2025-04-09 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:09:22] Production.INFO: ==6573== Releasing lock... [2025-04-09 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:10:06 [end_date_ymd] => 2025-04-09 07:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:10:06' and `end` < '2025-04-09 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-09 07:10:19] Production.INFO: count ==61 [2025-04-09 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:10:06 - End Time 2025-04-09 07:10:06 [2025-04-09 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867920', 'tblTempUsageDetail_20' ) start [2025-04-09 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867920', 'tblTempUsageDetail_20' ) end [2025-04-09 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867920', 'tblTempVendorCDR_20' ) start [2025-04-09 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867920', 'tblTempVendorCDR_20' ) end [2025-04-09 07:10:19] Production.INFO: ProcessCDR(1,14867920,1,1,2) [2025-04-09 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867920', 'tblTempUsageDetail_20' ) start [2025-04-09 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867920', 'tblTempUsageDetail_20' ) end [2025-04-09 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:10:22] Production.INFO: ==6651== Releasing lock... [2025-04-09 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:11:05 [end_date_ymd] => 2025-04-09 07:11:05 [RateCDR] => 1 ) [2025-04-09 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:11:05' and `end` < '2025-04-09 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:11:18] Production.INFO: count ==59 [2025-04-09 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:11:05 - End Time 2025-04-09 07:11:05 [2025-04-09 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867925', 'tblTempUsageDetail_20' ) start [2025-04-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867925', 'tblTempUsageDetail_20' ) end [2025-04-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867925', 'tblTempVendorCDR_20' ) start [2025-04-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867925', 'tblTempVendorCDR_20' ) end [2025-04-09 07:11:18] Production.INFO: ProcessCDR(1,14867925,1,1,2) [2025-04-09 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867925', 'tblTempUsageDetail_20' ) start [2025-04-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867925', 'tblTempUsageDetail_20' ) end [2025-04-09 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:11:22] Production.INFO: ==6776== Releasing lock... [2025-04-09 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:12:05 [end_date_ymd] => 2025-04-09 07:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:12:05' and `end` < '2025-04-09 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-09 07:12:18] Production.INFO: count ==59 [2025-04-09 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:12:05 - End Time 2025-04-09 07:12:05 [2025-04-09 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867930', 'tblTempUsageDetail_20' ) start [2025-04-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867930', 'tblTempUsageDetail_20' ) end [2025-04-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867930', 'tblTempVendorCDR_20' ) start [2025-04-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867930', 'tblTempVendorCDR_20' ) end [2025-04-09 07:12:18] Production.INFO: ProcessCDR(1,14867930,1,1,2) [2025-04-09 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867930', 'tblTempUsageDetail_20' ) start [2025-04-09 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867930', 'tblTempUsageDetail_20' ) end [2025-04-09 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:12:21] Production.INFO: ==6933== Releasing lock... [2025-04-09 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:13:05 [end_date_ymd] => 2025-04-09 07:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:13:05' and `end` < '2025-04-09 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-09 07:13:18] Production.INFO: count ==59 [2025-04-09 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:13:05 - End Time 2025-04-09 07:13:05 [2025-04-09 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867935', 'tblTempUsageDetail_20' ) start [2025-04-09 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867935', 'tblTempUsageDetail_20' ) end [2025-04-09 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867935', 'tblTempVendorCDR_20' ) start [2025-04-09 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867935', 'tblTempVendorCDR_20' ) end [2025-04-09 07:13:18] Production.INFO: ProcessCDR(1,14867935,1,1,2) [2025-04-09 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867935', 'tblTempUsageDetail_20' ) start [2025-04-09 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867935', 'tblTempUsageDetail_20' ) end [2025-04-09 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:13:21] Production.INFO: ==7008== Releasing lock... [2025-04-09 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:14:05 [end_date_ymd] => 2025-04-09 07:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:14:05' and `end` < '2025-04-09 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-09 07:14:18] Production.INFO: count ==59 [2025-04-09 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:14:05 - End Time 2025-04-09 07:14:05 [2025-04-09 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867940', 'tblTempUsageDetail_20' ) start [2025-04-09 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867940', 'tblTempUsageDetail_20' ) end [2025-04-09 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867940', 'tblTempVendorCDR_20' ) start [2025-04-09 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867940', 'tblTempVendorCDR_20' ) end [2025-04-09 07:14:18] Production.INFO: ProcessCDR(1,14867940,1,1,2) [2025-04-09 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867940', 'tblTempUsageDetail_20' ) start [2025-04-09 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867940', 'tblTempUsageDetail_20' ) end [2025-04-09 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:14:21] Production.INFO: ==7087== Releasing lock... [2025-04-09 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:15:05 [end_date_ymd] => 2025-04-09 07:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:15:05' and `end` < '2025-04-09 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-09 07:15:19] Production.INFO: count ==59 [2025-04-09 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:15:05 - End Time 2025-04-09 07:15:05 [2025-04-09 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867945', 'tblTempUsageDetail_20' ) start [2025-04-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867945', 'tblTempUsageDetail_20' ) end [2025-04-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867945', 'tblTempVendorCDR_20' ) start [2025-04-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867945', 'tblTempVendorCDR_20' ) end [2025-04-09 07:15:19] Production.INFO: ProcessCDR(1,14867945,1,1,2) [2025-04-09 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867945', 'tblTempUsageDetail_20' ) start [2025-04-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867945', 'tblTempUsageDetail_20' ) end [2025-04-09 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:15:22] Production.INFO: ==7207== Releasing lock... [2025-04-09 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:16:06 [end_date_ymd] => 2025-04-09 07:16:06 [RateCDR] => 1 ) [2025-04-09 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:16:06' and `end` < '2025-04-09 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:16:19] Production.INFO: count ==64 [2025-04-09 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:16:06 - End Time 2025-04-09 07:16:06 [2025-04-09 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867950', 'tblTempUsageDetail_20' ) start [2025-04-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867950', 'tblTempUsageDetail_20' ) end [2025-04-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867950', 'tblTempVendorCDR_20' ) start [2025-04-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867950', 'tblTempVendorCDR_20' ) end [2025-04-09 07:16:19] Production.INFO: ProcessCDR(1,14867950,1,1,2) [2025-04-09 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867950', 'tblTempUsageDetail_20' ) start [2025-04-09 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867950', 'tblTempUsageDetail_20' ) end [2025-04-09 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:16:22] Production.INFO: ==7323== Releasing lock... [2025-04-09 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:17:05 [end_date_ymd] => 2025-04-09 07:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:17:05' and `end` < '2025-04-09 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-09 07:17:18] Production.INFO: count ==64 [2025-04-09 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:17:05 - End Time 2025-04-09 07:17:05 [2025-04-09 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867955', 'tblTempUsageDetail_20' ) start [2025-04-09 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867955', 'tblTempUsageDetail_20' ) end [2025-04-09 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867955', 'tblTempVendorCDR_20' ) start [2025-04-09 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867955', 'tblTempVendorCDR_20' ) end [2025-04-09 07:17:18] Production.INFO: ProcessCDR(1,14867955,1,1,2) [2025-04-09 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867955', 'tblTempUsageDetail_20' ) start [2025-04-09 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867955', 'tblTempUsageDetail_20' ) end [2025-04-09 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:17:22] Production.INFO: ==7398== Releasing lock... [2025-04-09 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:18:06 [end_date_ymd] => 2025-04-09 07:18:06 [RateCDR] => 1 ) [2025-04-09 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:18:06' and `end` < '2025-04-09 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:18:19] Production.INFO: count ==64 [2025-04-09 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:18:06 - End Time 2025-04-09 07:18:06 [2025-04-09 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867960', 'tblTempUsageDetail_20' ) start [2025-04-09 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867960', 'tblTempUsageDetail_20' ) end [2025-04-09 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867960', 'tblTempVendorCDR_20' ) start [2025-04-09 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867960', 'tblTempVendorCDR_20' ) end [2025-04-09 07:18:19] Production.INFO: ProcessCDR(1,14867960,1,1,2) [2025-04-09 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867960', 'tblTempUsageDetail_20' ) start [2025-04-09 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867960', 'tblTempUsageDetail_20' ) end [2025-04-09 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:18:23] Production.INFO: ==7479== Releasing lock... [2025-04-09 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:19:06 [end_date_ymd] => 2025-04-09 07:19:06 [RateCDR] => 1 ) [2025-04-09 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:19:06' and `end` < '2025-04-09 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:19:19] Production.INFO: count ==64 [2025-04-09 07:19:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:19:06 - End Time 2025-04-09 07:19:06 [2025-04-09 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867965', 'tblTempUsageDetail_20' ) start [2025-04-09 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867965', 'tblTempUsageDetail_20' ) end [2025-04-09 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867965', 'tblTempVendorCDR_20' ) start [2025-04-09 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867965', 'tblTempVendorCDR_20' ) end [2025-04-09 07:19:19] Production.INFO: ProcessCDR(1,14867965,1,1,2) [2025-04-09 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867965', 'tblTempUsageDetail_20' ) start [2025-04-09 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867965', 'tblTempUsageDetail_20' ) end [2025-04-09 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:19:23] Production.INFO: ==7556== Releasing lock... [2025-04-09 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:19:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:20:06 [end_date_ymd] => 2025-04-09 07:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:20:06' and `end` < '2025-04-09 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-09 07:20:19] Production.INFO: count ==64 [2025-04-09 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:20:06 - End Time 2025-04-09 07:20:06 [2025-04-09 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867970', 'tblTempUsageDetail_20' ) start [2025-04-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867970', 'tblTempUsageDetail_20' ) end [2025-04-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867970', 'tblTempVendorCDR_20' ) start [2025-04-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867970', 'tblTempVendorCDR_20' ) end [2025-04-09 07:20:19] Production.INFO: ProcessCDR(1,14867970,1,1,2) [2025-04-09 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867970', 'tblTempUsageDetail_20' ) start [2025-04-09 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867970', 'tblTempUsageDetail_20' ) end [2025-04-09 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:20:23] Production.INFO: ==7639== Releasing lock... [2025-04-09 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:21:05 [end_date_ymd] => 2025-04-09 07:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:21:05' and `end` < '2025-04-09 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-09 07:21:18] Production.INFO: count ==64 [2025-04-09 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:21:05 - End Time 2025-04-09 07:21:05 [2025-04-09 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867976', 'tblTempUsageDetail_20' ) start [2025-04-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867976', 'tblTempUsageDetail_20' ) end [2025-04-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867976', 'tblTempVendorCDR_20' ) start [2025-04-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867976', 'tblTempVendorCDR_20' ) end [2025-04-09 07:21:18] Production.INFO: ProcessCDR(1,14867976,1,1,2) [2025-04-09 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867976', 'tblTempUsageDetail_20' ) start [2025-04-09 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867976', 'tblTempUsageDetail_20' ) end [2025-04-09 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:21:22] Production.INFO: ==7720== Releasing lock... [2025-04-09 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:22:06 [end_date_ymd] => 2025-04-09 07:22:06 [RateCDR] => 1 ) [2025-04-09 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:22:06' and `end` < '2025-04-09 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:22:20] Production.INFO: count ==64 [2025-04-09 07:22:20] Production.ERROR: pbx CDR StartTime 2025-04-09 04:22:06 - End Time 2025-04-09 07:22:06 [2025-04-09 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867981', 'tblTempUsageDetail_20' ) start [2025-04-09 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867981', 'tblTempUsageDetail_20' ) end [2025-04-09 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867981', 'tblTempVendorCDR_20' ) start [2025-04-09 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867981', 'tblTempVendorCDR_20' ) end [2025-04-09 07:22:20] Production.INFO: ProcessCDR(1,14867981,1,1,2) [2025-04-09 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867981', 'tblTempUsageDetail_20' ) start [2025-04-09 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867981', 'tblTempUsageDetail_20' ) end [2025-04-09 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:22:24] Production.INFO: ==7797== Releasing lock... [2025-04-09 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:22:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:23:05 [end_date_ymd] => 2025-04-09 07:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:23:05' and `end` < '2025-04-09 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-09 07:23:18] Production.INFO: count ==66 [2025-04-09 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:23:05 - End Time 2025-04-09 07:23:05 [2025-04-09 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867986', 'tblTempUsageDetail_20' ) start [2025-04-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867986', 'tblTempUsageDetail_20' ) end [2025-04-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867986', 'tblTempVendorCDR_20' ) start [2025-04-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867986', 'tblTempVendorCDR_20' ) end [2025-04-09 07:23:18] Production.INFO: ProcessCDR(1,14867986,1,1,2) [2025-04-09 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867986', 'tblTempUsageDetail_20' ) start [2025-04-09 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867986', 'tblTempUsageDetail_20' ) end [2025-04-09 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:23:22] Production.INFO: ==7880== Releasing lock... [2025-04-09 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:24:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:24:07 [end_date_ymd] => 2025-04-09 07:24:07 [RateCDR] => 1 ) [2025-04-09 07:24:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:24:07' and `end` < '2025-04-09 07:24:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:24:19] Production.INFO: count ==66 [2025-04-09 07:24:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:24:07 - End Time 2025-04-09 07:24:07 [2025-04-09 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867991', 'tblTempUsageDetail_20' ) start [2025-04-09 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867991', 'tblTempUsageDetail_20' ) end [2025-04-09 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867991', 'tblTempVendorCDR_20' ) start [2025-04-09 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867991', 'tblTempVendorCDR_20' ) end [2025-04-09 07:24:19] Production.INFO: ProcessCDR(1,14867991,1,1,2) [2025-04-09 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867991', 'tblTempUsageDetail_20' ) start [2025-04-09 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867991', 'tblTempUsageDetail_20' ) end [2025-04-09 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:24:23] Production.INFO: ==7959== Releasing lock... [2025-04-09 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:24:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:25:05 [end_date_ymd] => 2025-04-09 07:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:25:05' and `end` < '2025-04-09 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-09 07:25:18] Production.INFO: count ==66 [2025-04-09 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:25:05 - End Time 2025-04-09 07:25:05 [2025-04-09 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867996', 'tblTempUsageDetail_20' ) start [2025-04-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14867996', 'tblTempUsageDetail_20' ) end [2025-04-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867996', 'tblTempVendorCDR_20' ) start [2025-04-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14867996', 'tblTempVendorCDR_20' ) end [2025-04-09 07:25:18] Production.INFO: ProcessCDR(1,14867996,1,1,2) [2025-04-09 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14867996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14867996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14867996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14867996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867996', 'tblTempUsageDetail_20' ) start [2025-04-09 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14867996', 'tblTempUsageDetail_20' ) end [2025-04-09 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:25:21] Production.INFO: ==8037== Releasing lock... [2025-04-09 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:26:05 [end_date_ymd] => 2025-04-09 07:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:26:05' and `end` < '2025-04-09 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-09 07:26:18] Production.INFO: count ==71 [2025-04-09 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:26:05 - End Time 2025-04-09 07:26:05 [2025-04-09 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868001', 'tblTempUsageDetail_20' ) start [2025-04-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868001', 'tblTempUsageDetail_20' ) end [2025-04-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868001', 'tblTempVendorCDR_20' ) start [2025-04-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868001', 'tblTempVendorCDR_20' ) end [2025-04-09 07:26:18] Production.INFO: ProcessCDR(1,14868001,1,1,2) [2025-04-09 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868001', 'tblTempUsageDetail_20' ) start [2025-04-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868001', 'tblTempUsageDetail_20' ) end [2025-04-09 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:26:21] Production.INFO: ==8160== Releasing lock... [2025-04-09 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:27:05 [end_date_ymd] => 2025-04-09 07:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:27:05' and `end` < '2025-04-09 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-09 07:27:18] Production.INFO: count ==71 [2025-04-09 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:27:05 - End Time 2025-04-09 07:27:05 [2025-04-09 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868006', 'tblTempUsageDetail_20' ) start [2025-04-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868006', 'tblTempUsageDetail_20' ) end [2025-04-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868006', 'tblTempVendorCDR_20' ) start [2025-04-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868006', 'tblTempVendorCDR_20' ) end [2025-04-09 07:27:18] Production.INFO: ProcessCDR(1,14868006,1,1,2) [2025-04-09 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868006', 'tblTempUsageDetail_20' ) start [2025-04-09 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868006', 'tblTempUsageDetail_20' ) end [2025-04-09 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:27:21] Production.INFO: ==8239== Releasing lock... [2025-04-09 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:28:05 [end_date_ymd] => 2025-04-09 07:28:05 [RateCDR] => 1 ) [2025-04-09 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:28:05' and `end` < '2025-04-09 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:28:18] Production.INFO: count ==71 [2025-04-09 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:28:05 - End Time 2025-04-09 07:28:05 [2025-04-09 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868011', 'tblTempUsageDetail_20' ) start [2025-04-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868011', 'tblTempUsageDetail_20' ) end [2025-04-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868011', 'tblTempVendorCDR_20' ) start [2025-04-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868011', 'tblTempVendorCDR_20' ) end [2025-04-09 07:28:18] Production.INFO: ProcessCDR(1,14868011,1,1,2) [2025-04-09 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868011', 'tblTempUsageDetail_20' ) start [2025-04-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868011', 'tblTempUsageDetail_20' ) end [2025-04-09 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:28:21] Production.INFO: ==8319== Releasing lock... [2025-04-09 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-09 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:29:05 [end_date_ymd] => 2025-04-09 07:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:29:05' and `end` < '2025-04-09 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-09 07:29:18] Production.INFO: count ==73 [2025-04-09 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:29:05 - End Time 2025-04-09 07:29:05 [2025-04-09 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868016', 'tblTempUsageDetail_20' ) start [2025-04-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868016', 'tblTempUsageDetail_20' ) end [2025-04-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868016', 'tblTempVendorCDR_20' ) start [2025-04-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868016', 'tblTempVendorCDR_20' ) end [2025-04-09 07:29:18] Production.INFO: ProcessCDR(1,14868016,1,1,2) [2025-04-09 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868016', 'tblTempUsageDetail_20' ) start [2025-04-09 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868016', 'tblTempUsageDetail_20' ) end [2025-04-09 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:29:21] Production.INFO: ==8400== Releasing lock... [2025-04-09 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:30:06 [end_date_ymd] => 2025-04-09 07:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:30:06' and `end` < '2025-04-09 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-09 07:30:19] Production.INFO: count ==76 [2025-04-09 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:30:06 - End Time 2025-04-09 07:30:06 [2025-04-09 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868021', 'tblTempUsageDetail_20' ) start [2025-04-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868021', 'tblTempUsageDetail_20' ) end [2025-04-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868021', 'tblTempVendorCDR_20' ) start [2025-04-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868021', 'tblTempVendorCDR_20' ) end [2025-04-09 07:30:19] Production.INFO: ProcessCDR(1,14868021,1,1,2) [2025-04-09 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868021', 'tblTempUsageDetail_20' ) start [2025-04-09 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868021', 'tblTempUsageDetail_20' ) end [2025-04-09 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:30:22] Production.INFO: ==8488== Releasing lock... [2025-04-09 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:31:05 [end_date_ymd] => 2025-04-09 07:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:31:05' and `end` < '2025-04-09 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-09 07:31:18] Production.INFO: count ==74 [2025-04-09 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:31:05 - End Time 2025-04-09 07:31:05 [2025-04-09 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868027', 'tblTempUsageDetail_20' ) start [2025-04-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868027', 'tblTempUsageDetail_20' ) end [2025-04-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868027', 'tblTempVendorCDR_20' ) start [2025-04-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868027', 'tblTempVendorCDR_20' ) end [2025-04-09 07:31:18] Production.INFO: ProcessCDR(1,14868027,1,1,2) [2025-04-09 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868027', 'tblTempUsageDetail_20' ) start [2025-04-09 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868027', 'tblTempUsageDetail_20' ) end [2025-04-09 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:31:21] Production.INFO: ==8567== Releasing lock... [2025-04-09 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:32:05 [end_date_ymd] => 2025-04-09 07:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:32:05' and `end` < '2025-04-09 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-09 07:32:18] Production.INFO: count ==74 [2025-04-09 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:32:05 - End Time 2025-04-09 07:32:05 [2025-04-09 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868032', 'tblTempUsageDetail_20' ) start [2025-04-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868032', 'tblTempUsageDetail_20' ) end [2025-04-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868032', 'tblTempVendorCDR_20' ) start [2025-04-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868032', 'tblTempVendorCDR_20' ) end [2025-04-09 07:32:18] Production.INFO: ProcessCDR(1,14868032,1,1,2) [2025-04-09 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868032', 'tblTempUsageDetail_20' ) start [2025-04-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868032', 'tblTempUsageDetail_20' ) end [2025-04-09 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:32:21] Production.INFO: ==8646== Releasing lock... [2025-04-09 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:33:05 [end_date_ymd] => 2025-04-09 07:33:05 [RateCDR] => 1 ) [2025-04-09 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:33:05' and `end` < '2025-04-09 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:33:17] Production.INFO: count ==76 [2025-04-09 07:33:17] Production.ERROR: pbx CDR StartTime 2025-04-09 04:33:05 - End Time 2025-04-09 07:33:05 [2025-04-09 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868037', 'tblTempUsageDetail_20' ) start [2025-04-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868037', 'tblTempUsageDetail_20' ) end [2025-04-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868037', 'tblTempVendorCDR_20' ) start [2025-04-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868037', 'tblTempVendorCDR_20' ) end [2025-04-09 07:33:17] Production.INFO: ProcessCDR(1,14868037,1,1,2) [2025-04-09 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868037', 'tblTempUsageDetail_20' ) start [2025-04-09 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868037', 'tblTempUsageDetail_20' ) end [2025-04-09 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:33:21] Production.INFO: ==8728== Releasing lock... [2025-04-09 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:34:05 [end_date_ymd] => 2025-04-09 07:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:34:05' and `end` < '2025-04-09 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-09 07:34:17] Production.INFO: count ==81 [2025-04-09 07:34:17] Production.ERROR: pbx CDR StartTime 2025-04-09 04:34:05 - End Time 2025-04-09 07:34:05 [2025-04-09 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868042', 'tblTempUsageDetail_20' ) start [2025-04-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868042', 'tblTempUsageDetail_20' ) end [2025-04-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868042', 'tblTempVendorCDR_20' ) start [2025-04-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868042', 'tblTempVendorCDR_20' ) end [2025-04-09 07:34:17] Production.INFO: ProcessCDR(1,14868042,1,1,2) [2025-04-09 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868042', 'tblTempUsageDetail_20' ) start [2025-04-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868042', 'tblTempUsageDetail_20' ) end [2025-04-09 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:34:21] Production.INFO: ==8809== Releasing lock... [2025-04-09 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:35:05 [end_date_ymd] => 2025-04-09 07:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:35:05' and `end` < '2025-04-09 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-09 07:35:18] Production.INFO: count ==83 [2025-04-09 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:35:05 - End Time 2025-04-09 07:35:05 [2025-04-09 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868047', 'tblTempUsageDetail_20' ) start [2025-04-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868047', 'tblTempUsageDetail_20' ) end [2025-04-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868047', 'tblTempVendorCDR_20' ) start [2025-04-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868047', 'tblTempVendorCDR_20' ) end [2025-04-09 07:35:18] Production.INFO: ProcessCDR(1,14868047,1,1,2) [2025-04-09 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868047', 'tblTempUsageDetail_20' ) start [2025-04-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868047', 'tblTempUsageDetail_20' ) end [2025-04-09 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:35:21] Production.INFO: ==8893== Releasing lock... [2025-04-09 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:36:05 [end_date_ymd] => 2025-04-09 07:36:05 [RateCDR] => 1 ) [2025-04-09 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:36:05' and `end` < '2025-04-09 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:36:18] Production.INFO: count ==84 [2025-04-09 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:36:05 - End Time 2025-04-09 07:36:05 [2025-04-09 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868052', 'tblTempUsageDetail_20' ) start [2025-04-09 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868052', 'tblTempUsageDetail_20' ) end [2025-04-09 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868052', 'tblTempVendorCDR_20' ) start [2025-04-09 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868052', 'tblTempVendorCDR_20' ) end [2025-04-09 07:36:18] Production.INFO: ProcessCDR(1,14868052,1,1,2) [2025-04-09 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868052', 'tblTempUsageDetail_20' ) start [2025-04-09 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868052', 'tblTempUsageDetail_20' ) end [2025-04-09 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:36:23] Production.INFO: ==8970== Releasing lock... [2025-04-09 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:36:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:37:05 [end_date_ymd] => 2025-04-09 07:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:37:05' and `end` < '2025-04-09 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-09 07:37:18] Production.INFO: count ==84 [2025-04-09 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:37:05 - End Time 2025-04-09 07:37:05 [2025-04-09 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868057', 'tblTempUsageDetail_20' ) start [2025-04-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868057', 'tblTempUsageDetail_20' ) end [2025-04-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868057', 'tblTempVendorCDR_20' ) start [2025-04-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868057', 'tblTempVendorCDR_20' ) end [2025-04-09 07:37:18] Production.INFO: ProcessCDR(1,14868057,1,1,2) [2025-04-09 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868057', 'tblTempUsageDetail_20' ) start [2025-04-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868057', 'tblTempUsageDetail_20' ) end [2025-04-09 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:37:21] Production.INFO: ==9051== Releasing lock... [2025-04-09 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-09 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:38:05 [end_date_ymd] => 2025-04-09 07:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:38:05' and `end` < '2025-04-09 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-09 07:38:18] Production.INFO: count ==86 [2025-04-09 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:38:05 - End Time 2025-04-09 07:38:05 [2025-04-09 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868062', 'tblTempUsageDetail_20' ) start [2025-04-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868062', 'tblTempUsageDetail_20' ) end [2025-04-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868062', 'tblTempVendorCDR_20' ) start [2025-04-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868062', 'tblTempVendorCDR_20' ) end [2025-04-09 07:38:18] Production.INFO: ProcessCDR(1,14868062,1,1,2) [2025-04-09 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868062', 'tblTempUsageDetail_20' ) start [2025-04-09 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868062', 'tblTempUsageDetail_20' ) end [2025-04-09 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:38:23] Production.INFO: ==9132== Releasing lock... [2025-04-09 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:38:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:39:05 [end_date_ymd] => 2025-04-09 07:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:39:05' and `end` < '2025-04-09 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-09 07:39:18] Production.INFO: count ==86 [2025-04-09 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:39:05 - End Time 2025-04-09 07:39:05 [2025-04-09 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868067', 'tblTempUsageDetail_20' ) start [2025-04-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868067', 'tblTempUsageDetail_20' ) end [2025-04-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868067', 'tblTempVendorCDR_20' ) start [2025-04-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868067', 'tblTempVendorCDR_20' ) end [2025-04-09 07:39:18] Production.INFO: ProcessCDR(1,14868067,1,1,2) [2025-04-09 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868067', 'tblTempUsageDetail_20' ) start [2025-04-09 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868067', 'tblTempUsageDetail_20' ) end [2025-04-09 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:39:21] Production.INFO: ==9212== Releasing lock... [2025-04-09 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:40:06 [end_date_ymd] => 2025-04-09 07:40:06 [RateCDR] => 1 ) [2025-04-09 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:40:06' and `end` < '2025-04-09 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:40:18] Production.INFO: count ==86 [2025-04-09 07:40:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:40:06 - End Time 2025-04-09 07:40:06 [2025-04-09 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868073', 'tblTempUsageDetail_20' ) start [2025-04-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868073', 'tblTempUsageDetail_20' ) end [2025-04-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868073', 'tblTempVendorCDR_20' ) start [2025-04-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868073', 'tblTempVendorCDR_20' ) end [2025-04-09 07:40:18] Production.INFO: ProcessCDR(1,14868073,1,1,2) [2025-04-09 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868073', 'tblTempUsageDetail_20' ) start [2025-04-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868073', 'tblTempUsageDetail_20' ) end [2025-04-09 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:40:22] Production.INFO: ==9300== Releasing lock... [2025-04-09 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:41:05 [end_date_ymd] => 2025-04-09 07:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:41:05' and `end` < '2025-04-09 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-09 07:41:18] Production.INFO: count ==86 [2025-04-09 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:41:05 - End Time 2025-04-09 07:41:05 [2025-04-09 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868078', 'tblTempUsageDetail_20' ) start [2025-04-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868078', 'tblTempUsageDetail_20' ) end [2025-04-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868078', 'tblTempVendorCDR_20' ) start [2025-04-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868078', 'tblTempVendorCDR_20' ) end [2025-04-09 07:41:18] Production.INFO: ProcessCDR(1,14868078,1,1,2) [2025-04-09 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868078', 'tblTempUsageDetail_20' ) start [2025-04-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868078', 'tblTempUsageDetail_20' ) end [2025-04-09 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:41:21] Production.INFO: ==9380== Releasing lock... [2025-04-09 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:42:04 [end_date_ymd] => 2025-04-09 07:42:04 [RateCDR] => 1 ) [2025-04-09 07:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:42:04' and `end` < '2025-04-09 07:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:42:17] Production.INFO: count ==87 [2025-04-09 07:42:17] Production.ERROR: pbx CDR StartTime 2025-04-09 04:42:04 - End Time 2025-04-09 07:42:04 [2025-04-09 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868083', 'tblTempUsageDetail_20' ) start [2025-04-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868083', 'tblTempUsageDetail_20' ) end [2025-04-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868083', 'tblTempVendorCDR_20' ) start [2025-04-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868083', 'tblTempVendorCDR_20' ) end [2025-04-09 07:42:17] Production.INFO: ProcessCDR(1,14868083,1,1,2) [2025-04-09 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868083', 'tblTempUsageDetail_20' ) start [2025-04-09 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868083', 'tblTempUsageDetail_20' ) end [2025-04-09 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:42:22] Production.INFO: ==9496== Releasing lock... [2025-04-09 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:43:05 [end_date_ymd] => 2025-04-09 07:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:43:05' and `end` < '2025-04-09 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-09 07:43:18] Production.INFO: count ==88 [2025-04-09 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:43:05 - End Time 2025-04-09 07:43:05 [2025-04-09 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868088', 'tblTempUsageDetail_20' ) start [2025-04-09 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868088', 'tblTempUsageDetail_20' ) end [2025-04-09 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868088', 'tblTempVendorCDR_20' ) start [2025-04-09 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868088', 'tblTempVendorCDR_20' ) end [2025-04-09 07:43:18] Production.INFO: ProcessCDR(1,14868088,1,1,2) [2025-04-09 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868088', 'tblTempUsageDetail_20' ) start [2025-04-09 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868088', 'tblTempUsageDetail_20' ) end [2025-04-09 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:43:23] Production.INFO: ==9574== Releasing lock... [2025-04-09 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:44:06 [end_date_ymd] => 2025-04-09 07:44:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:44:06' and `end` < '2025-04-09 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-09 07:44:18] Production.INFO: count ==88 [2025-04-09 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:44:06 - End Time 2025-04-09 07:44:06 [2025-04-09 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868093', 'tblTempUsageDetail_20' ) start [2025-04-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868093', 'tblTempUsageDetail_20' ) end [2025-04-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868093', 'tblTempVendorCDR_20' ) start [2025-04-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868093', 'tblTempVendorCDR_20' ) end [2025-04-09 07:44:18] Production.INFO: ProcessCDR(1,14868093,1,1,2) [2025-04-09 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868093', 'tblTempUsageDetail_20' ) start [2025-04-09 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868093', 'tblTempUsageDetail_20' ) end [2025-04-09 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:44:22] Production.INFO: ==9658== Releasing lock... [2025-04-09 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:45:05 [end_date_ymd] => 2025-04-09 07:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:45:05' and `end` < '2025-04-09 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-09 07:45:18] Production.INFO: count ==88 [2025-04-09 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:45:05 - End Time 2025-04-09 07:45:05 [2025-04-09 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868098', 'tblTempUsageDetail_20' ) start [2025-04-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868098', 'tblTempUsageDetail_20' ) end [2025-04-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868098', 'tblTempVendorCDR_20' ) start [2025-04-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868098', 'tblTempVendorCDR_20' ) end [2025-04-09 07:45:18] Production.INFO: ProcessCDR(1,14868098,1,1,2) [2025-04-09 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868098', 'tblTempUsageDetail_20' ) start [2025-04-09 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868098', 'tblTempUsageDetail_20' ) end [2025-04-09 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:45:21] Production.INFO: ==9737== Releasing lock... [2025-04-09 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:46:05 [end_date_ymd] => 2025-04-09 07:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:46:05' and `end` < '2025-04-09 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-09 07:46:18] Production.INFO: count ==86 [2025-04-09 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:46:05 - End Time 2025-04-09 07:46:05 [2025-04-09 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868103', 'tblTempUsageDetail_20' ) start [2025-04-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868103', 'tblTempUsageDetail_20' ) end [2025-04-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868103', 'tblTempVendorCDR_20' ) start [2025-04-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868103', 'tblTempVendorCDR_20' ) end [2025-04-09 07:46:18] Production.INFO: ProcessCDR(1,14868103,1,1,2) [2025-04-09 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868103', 'tblTempUsageDetail_20' ) start [2025-04-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868103', 'tblTempUsageDetail_20' ) end [2025-04-09 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:46:21] Production.INFO: ==9810== Releasing lock... [2025-04-09 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:47:05 [end_date_ymd] => 2025-04-09 07:47:05 [RateCDR] => 1 ) [2025-04-09 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:47:05' and `end` < '2025-04-09 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:47:18] Production.INFO: count ==86 [2025-04-09 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:47:05 - End Time 2025-04-09 07:47:05 [2025-04-09 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868108', 'tblTempUsageDetail_20' ) start [2025-04-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868108', 'tblTempUsageDetail_20' ) end [2025-04-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868108', 'tblTempVendorCDR_20' ) start [2025-04-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868108', 'tblTempVendorCDR_20' ) end [2025-04-09 07:47:18] Production.INFO: ProcessCDR(1,14868108,1,1,2) [2025-04-09 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868108', 'tblTempUsageDetail_20' ) start [2025-04-09 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868108', 'tblTempUsageDetail_20' ) end [2025-04-09 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:47:22] Production.INFO: ==9888== Releasing lock... [2025-04-09 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:48:05 [end_date_ymd] => 2025-04-09 07:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:48:05' and `end` < '2025-04-09 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-09 07:48:18] Production.INFO: count ==87 [2025-04-09 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:48:05 - End Time 2025-04-09 07:48:05 [2025-04-09 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868113', 'tblTempUsageDetail_20' ) start [2025-04-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868113', 'tblTempUsageDetail_20' ) end [2025-04-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868113', 'tblTempVendorCDR_20' ) start [2025-04-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868113', 'tblTempVendorCDR_20' ) end [2025-04-09 07:48:18] Production.INFO: ProcessCDR(1,14868113,1,1,2) [2025-04-09 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868113', 'tblTempUsageDetail_20' ) start [2025-04-09 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868113', 'tblTempUsageDetail_20' ) end [2025-04-09 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:48:23] Production.INFO: ==9970== Releasing lock... [2025-04-09 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:49:05 [end_date_ymd] => 2025-04-09 07:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:49:05' and `end` < '2025-04-09 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-09 07:49:18] Production.INFO: count ==90 [2025-04-09 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:49:05 - End Time 2025-04-09 07:49:05 [2025-04-09 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868118', 'tblTempUsageDetail_20' ) start [2025-04-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868118', 'tblTempUsageDetail_20' ) end [2025-04-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868118', 'tblTempVendorCDR_20' ) start [2025-04-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868118', 'tblTempVendorCDR_20' ) end [2025-04-09 07:49:18] Production.INFO: ProcessCDR(1,14868118,1,1,2) [2025-04-09 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868118', 'tblTempUsageDetail_20' ) start [2025-04-09 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868118', 'tblTempUsageDetail_20' ) end [2025-04-09 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:49:23] Production.INFO: ==10054== Releasing lock... [2025-04-09 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:50:06 [end_date_ymd] => 2025-04-09 07:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 04:50:06' and `end` < '2025-04-09 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-09 07:50:18] Production.INFO: count ==101 [2025-04-09 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:50:06 - End Time 2025-04-09 07:50:06 [2025-04-09 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868124', 'tblTempUsageDetail_20' ) start [2025-04-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868124', 'tblTempUsageDetail_20' ) end [2025-04-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868124', 'tblTempVendorCDR_20' ) start [2025-04-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868124', 'tblTempVendorCDR_20' ) end [2025-04-09 07:50:19] Production.INFO: ProcessCDR(1,14868124,1,1,2) [2025-04-09 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868124', 'tblTempUsageDetail_20' ) start [2025-04-09 07:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868124', 'tblTempUsageDetail_20' ) end [2025-04-09 07:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:50:24] Production.INFO: ==10130== Releasing lock... [2025-04-09 07:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:50:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:51:05 [end_date_ymd] => 2025-04-09 07:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:51:05' and `end` < '2025-04-09 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-09 07:51:18] Production.INFO: count ==105 [2025-04-09 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:51:05 - End Time 2025-04-09 07:51:05 [2025-04-09 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868129', 'tblTempUsageDetail_20' ) start [2025-04-09 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868129', 'tblTempUsageDetail_20' ) end [2025-04-09 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868129', 'tblTempVendorCDR_20' ) start [2025-04-09 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868129', 'tblTempVendorCDR_20' ) end [2025-04-09 07:51:18] Production.INFO: ProcessCDR(1,14868129,1,1,2) [2025-04-09 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868129', 'tblTempUsageDetail_20' ) start [2025-04-09 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868129', 'tblTempUsageDetail_20' ) end [2025-04-09 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:51:21] Production.INFO: ==10210== Releasing lock... [2025-04-09 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:52:06 [end_date_ymd] => 2025-04-09 07:52:06 [RateCDR] => 1 ) [2025-04-09 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:52:06' and `end` < '2025-04-09 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:52:18] Production.INFO: count ==106 [2025-04-09 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:52:06 - End Time 2025-04-09 07:52:06 [2025-04-09 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868134', 'tblTempUsageDetail_20' ) start [2025-04-09 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868134', 'tblTempUsageDetail_20' ) end [2025-04-09 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868134', 'tblTempVendorCDR_20' ) start [2025-04-09 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868134', 'tblTempVendorCDR_20' ) end [2025-04-09 07:52:18] Production.INFO: ProcessCDR(1,14868134,1,1,2) [2025-04-09 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868134', 'tblTempUsageDetail_20' ) start [2025-04-09 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868134', 'tblTempUsageDetail_20' ) end [2025-04-09 07:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:52:24] Production.INFO: ==10292== Releasing lock... [2025-04-09 07:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:52:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:53:05 [end_date_ymd] => 2025-04-09 07:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:53:05' and `end` < '2025-04-09 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-09 07:53:18] Production.INFO: count ==112 [2025-04-09 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:53:05 - End Time 2025-04-09 07:53:05 [2025-04-09 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868139', 'tblTempUsageDetail_20' ) start [2025-04-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868139', 'tblTempUsageDetail_20' ) end [2025-04-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868139', 'tblTempVendorCDR_20' ) start [2025-04-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868139', 'tblTempVendorCDR_20' ) end [2025-04-09 07:53:18] Production.INFO: ProcessCDR(1,14868139,1,1,2) [2025-04-09 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868139', 'tblTempUsageDetail_20' ) start [2025-04-09 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868139', 'tblTempUsageDetail_20' ) end [2025-04-09 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:53:23] Production.INFO: ==10369== Releasing lock... [2025-04-09 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:54:05 [end_date_ymd] => 2025-04-09 07:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:54:05' and `end` < '2025-04-09 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-09 07:54:18] Production.INFO: count ==112 [2025-04-09 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:54:05 - End Time 2025-04-09 07:54:05 [2025-04-09 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868144', 'tblTempUsageDetail_20' ) start [2025-04-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868144', 'tblTempUsageDetail_20' ) end [2025-04-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868144', 'tblTempVendorCDR_20' ) start [2025-04-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868144', 'tblTempVendorCDR_20' ) end [2025-04-09 07:54:18] Production.INFO: ProcessCDR(1,14868144,1,1,2) [2025-04-09 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868144', 'tblTempUsageDetail_20' ) start [2025-04-09 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868144', 'tblTempUsageDetail_20' ) end [2025-04-09 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:54:21] Production.INFO: ==10444== Releasing lock... [2025-04-09 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-09 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:55:05 [end_date_ymd] => 2025-04-09 07:55:05 [RateCDR] => 1 ) [2025-04-09 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:55:05' and `end` < '2025-04-09 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:55:18] Production.INFO: count ==118 [2025-04-09 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:55:05 - End Time 2025-04-09 07:55:05 [2025-04-09 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868149', 'tblTempUsageDetail_20' ) start [2025-04-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868149', 'tblTempUsageDetail_20' ) end [2025-04-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868149', 'tblTempVendorCDR_20' ) start [2025-04-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868149', 'tblTempVendorCDR_20' ) end [2025-04-09 07:55:18] Production.INFO: ProcessCDR(1,14868149,1,1,2) [2025-04-09 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868149', 'tblTempUsageDetail_20' ) start [2025-04-09 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868149', 'tblTempUsageDetail_20' ) end [2025-04-09 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:55:23] Production.INFO: ==10522== Releasing lock... [2025-04-09 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:55:23] Production.INFO: 29 MB #Memory Used# [2025-04-09 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:56:05 [end_date_ymd] => 2025-04-09 07:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:56:05' and `end` < '2025-04-09 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-09 07:56:18] Production.INFO: count ==122 [2025-04-09 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:56:05 - End Time 2025-04-09 07:56:05 [2025-04-09 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868154', 'tblTempUsageDetail_20' ) start [2025-04-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868154', 'tblTempUsageDetail_20' ) end [2025-04-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868154', 'tblTempVendorCDR_20' ) start [2025-04-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868154', 'tblTempVendorCDR_20' ) end [2025-04-09 07:56:18] Production.INFO: ProcessCDR(1,14868154,1,1,2) [2025-04-09 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868154', 'tblTempUsageDetail_20' ) start [2025-04-09 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868154', 'tblTempUsageDetail_20' ) end [2025-04-09 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:56:22] Production.INFO: ==10600== Releasing lock... [2025-04-09 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:57:06 [end_date_ymd] => 2025-04-09 07:57:06 [RateCDR] => 1 ) [2025-04-09 07:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 04:57:06' and `end` < '2025-04-09 07:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 07:57:19] Production.INFO: count ==120 [2025-04-09 07:57:19] Production.ERROR: pbx CDR StartTime 2025-04-09 04:57:06 - End Time 2025-04-09 07:57:06 [2025-04-09 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868159', 'tblTempUsageDetail_20' ) start [2025-04-09 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868159', 'tblTempUsageDetail_20' ) end [2025-04-09 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868159', 'tblTempVendorCDR_20' ) start [2025-04-09 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868159', 'tblTempVendorCDR_20' ) end [2025-04-09 07:57:19] Production.INFO: ProcessCDR(1,14868159,1,1,2) [2025-04-09 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868159', 'tblTempUsageDetail_20' ) start [2025-04-09 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868159', 'tblTempUsageDetail_20' ) end [2025-04-09 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:57:22] Production.INFO: ==10712== Releasing lock... [2025-04-09 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:58:05 [end_date_ymd] => 2025-04-09 07:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 04:58:05' and `end` < '2025-04-09 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-09 07:58:18] Production.INFO: count ==127 [2025-04-09 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:58:05 - End Time 2025-04-09 07:58:05 [2025-04-09 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868164', 'tblTempUsageDetail_20' ) start [2025-04-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868164', 'tblTempUsageDetail_20' ) end [2025-04-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868164', 'tblTempVendorCDR_20' ) start [2025-04-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868164', 'tblTempVendorCDR_20' ) end [2025-04-09 07:58:18] Production.INFO: ProcessCDR(1,14868164,1,1,2) [2025-04-09 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868164', 'tblTempUsageDetail_20' ) start [2025-04-09 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868164', 'tblTempUsageDetail_20' ) end [2025-04-09 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:58:23] Production.INFO: ==10786== Releasing lock... [2025-04-09 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 04:59:04 [end_date_ymd] => 2025-04-09 07:59:04 [RateCDR] => 1 ) [2025-04-09 07:59: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 04:59:04' and `end` < '2025-04-09 07:59: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-09 07:59:18] Production.INFO: count ==127 [2025-04-09 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 04:59:04 - End Time 2025-04-09 07:59:04 [2025-04-09 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868169', 'tblTempUsageDetail_20' ) start [2025-04-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868169', 'tblTempUsageDetail_20' ) end [2025-04-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868169', 'tblTempVendorCDR_20' ) start [2025-04-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868169', 'tblTempVendorCDR_20' ) end [2025-04-09 07:59:18] Production.INFO: ProcessCDR(1,14868169,1,1,2) [2025-04-09 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868169', 'tblTempUsageDetail_20' ) start [2025-04-09 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868169', 'tblTempUsageDetail_20' ) end [2025-04-09 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 07:59:21] Production.INFO: ==10861== Releasing lock... [2025-04-09 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:00:06 [end_date_ymd] => 2025-04-09 08:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 05:00:06' and `end` < '2025-04-09 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-09 08:00:19] Production.INFO: count ==136 [2025-04-09 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:00:06 - End Time 2025-04-09 08:00:06 [2025-04-09 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868174', 'tblTempUsageDetail_20' ) start [2025-04-09 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868174', 'tblTempUsageDetail_20' ) end [2025-04-09 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868174', 'tblTempVendorCDR_20' ) start [2025-04-09 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868174', 'tblTempVendorCDR_20' ) end [2025-04-09 08:00:19] Production.INFO: ProcessCDR(1,14868174,1,1,2) [2025-04-09 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868174', 'tblTempUsageDetail_20' ) start [2025-04-09 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868174', 'tblTempUsageDetail_20' ) end [2025-04-09 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:00:23] Production.INFO: ==10940== Releasing lock... [2025-04-09 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:01:05 [end_date_ymd] => 2025-04-09 08:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:01:05' and `end` < '2025-04-09 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-09 08:01:18] Production.INFO: count ==148 [2025-04-09 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:01:05 - End Time 2025-04-09 08:01:05 [2025-04-09 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868180', 'tblTempUsageDetail_20' ) start [2025-04-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868180', 'tblTempUsageDetail_20' ) end [2025-04-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868180', 'tblTempVendorCDR_20' ) start [2025-04-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868180', 'tblTempVendorCDR_20' ) end [2025-04-09 08:01:18] Production.INFO: ProcessCDR(1,14868180,1,1,2) [2025-04-09 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868180', 'tblTempUsageDetail_20' ) start [2025-04-09 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868180', 'tblTempUsageDetail_20' ) end [2025-04-09 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:01:23] Production.INFO: ==11032== Releasing lock... [2025-04-09 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:02:05 [end_date_ymd] => 2025-04-09 08:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:02:05' and `end` < '2025-04-09 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-09 08:02:18] Production.INFO: count ==153 [2025-04-09 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:02:05 - End Time 2025-04-09 08:02:05 [2025-04-09 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868185', 'tblTempUsageDetail_20' ) start [2025-04-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868185', 'tblTempUsageDetail_20' ) end [2025-04-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868185', 'tblTempVendorCDR_20' ) start [2025-04-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868185', 'tblTempVendorCDR_20' ) end [2025-04-09 08:02:18] Production.INFO: ProcessCDR(1,14868185,1,1,2) [2025-04-09 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868185', 'tblTempUsageDetail_20' ) start [2025-04-09 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868185', 'tblTempUsageDetail_20' ) end [2025-04-09 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:02:22] Production.INFO: ==11106== Releasing lock... [2025-04-09 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:03:06 [end_date_ymd] => 2025-04-09 08:03:06 [RateCDR] => 1 ) [2025-04-09 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:03:06' and `end` < '2025-04-09 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:03:18] Production.INFO: count ==153 [2025-04-09 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:03:06 - End Time 2025-04-09 08:03:06 [2025-04-09 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868190', 'tblTempUsageDetail_20' ) start [2025-04-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868190', 'tblTempUsageDetail_20' ) end [2025-04-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868190', 'tblTempVendorCDR_20' ) start [2025-04-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868190', 'tblTempVendorCDR_20' ) end [2025-04-09 08:03:18] Production.INFO: ProcessCDR(1,14868190,1,1,2) [2025-04-09 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868190', 'tblTempUsageDetail_20' ) start [2025-04-09 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868190', 'tblTempUsageDetail_20' ) end [2025-04-09 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:03:22] Production.INFO: ==11181== Releasing lock... [2025-04-09 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:04:05 [end_date_ymd] => 2025-04-09 08:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:04:05' and `end` < '2025-04-09 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-09 08:04:18] Production.INFO: count ==156 [2025-04-09 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:04:05 - End Time 2025-04-09 08:04:05 [2025-04-09 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868195', 'tblTempUsageDetail_20' ) start [2025-04-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868195', 'tblTempUsageDetail_20' ) end [2025-04-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868195', 'tblTempVendorCDR_20' ) start [2025-04-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868195', 'tblTempVendorCDR_20' ) end [2025-04-09 08:04:18] Production.INFO: ProcessCDR(1,14868195,1,1,2) [2025-04-09 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868195', 'tblTempUsageDetail_20' ) start [2025-04-09 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868195', 'tblTempUsageDetail_20' ) end [2025-04-09 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:04:23] Production.INFO: ==11260== Releasing lock... [2025-04-09 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:05:05 [end_date_ymd] => 2025-04-09 08:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:05:05' and `end` < '2025-04-09 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-09 08:05:18] Production.INFO: count ==162 [2025-04-09 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:05:05 - End Time 2025-04-09 08:05:05 [2025-04-09 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868200', 'tblTempUsageDetail_20' ) start [2025-04-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868200', 'tblTempUsageDetail_20' ) end [2025-04-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868200', 'tblTempVendorCDR_20' ) start [2025-04-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868200', 'tblTempVendorCDR_20' ) end [2025-04-09 08:05:18] Production.INFO: ProcessCDR(1,14868200,1,1,2) [2025-04-09 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868200', 'tblTempUsageDetail_20' ) start [2025-04-09 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868200', 'tblTempUsageDetail_20' ) end [2025-04-09 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:05:23] Production.INFO: ==11337== Releasing lock... [2025-04-09 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-09 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:06:05 [end_date_ymd] => 2025-04-09 08:06:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:06:05' and `end` < '2025-04-09 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-09 08:06:17] Production.INFO: count ==165 [2025-04-09 08:06:17] Production.ERROR: pbx CDR StartTime 2025-04-09 05:06:05 - End Time 2025-04-09 08:06:05 [2025-04-09 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868205', 'tblTempUsageDetail_20' ) start [2025-04-09 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868205', 'tblTempUsageDetail_20' ) end [2025-04-09 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868205', 'tblTempVendorCDR_20' ) start [2025-04-09 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868205', 'tblTempVendorCDR_20' ) end [2025-04-09 08:06:17] Production.INFO: ProcessCDR(1,14868205,1,1,2) [2025-04-09 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868205', 'tblTempUsageDetail_20' ) start [2025-04-09 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868205', 'tblTempUsageDetail_20' ) end [2025-04-09 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:06:22] Production.INFO: ==11410== Releasing lock... [2025-04-09 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-09 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:07:05 [end_date_ymd] => 2025-04-09 08:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:07:05' and `end` < '2025-04-09 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-09 08:07:18] Production.INFO: count ==169 [2025-04-09 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:07:05 - End Time 2025-04-09 08:07:05 [2025-04-09 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868210', 'tblTempUsageDetail_20' ) start [2025-04-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868210', 'tblTempUsageDetail_20' ) end [2025-04-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868210', 'tblTempVendorCDR_20' ) start [2025-04-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868210', 'tblTempVendorCDR_20' ) end [2025-04-09 08:07:18] Production.INFO: ProcessCDR(1,14868210,1,1,2) [2025-04-09 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868210', 'tblTempUsageDetail_20' ) start [2025-04-09 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868210', 'tblTempUsageDetail_20' ) end [2025-04-09 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:07:23] Production.INFO: ==11489== Releasing lock... [2025-04-09 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:07:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:08:05 [end_date_ymd] => 2025-04-09 08:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:08:05' and `end` < '2025-04-09 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-09 08:08:18] Production.INFO: count ==170 [2025-04-09 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:08:05 - End Time 2025-04-09 08:08:05 [2025-04-09 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868215', 'tblTempUsageDetail_20' ) start [2025-04-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868215', 'tblTempUsageDetail_20' ) end [2025-04-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868215', 'tblTempVendorCDR_20' ) start [2025-04-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868215', 'tblTempVendorCDR_20' ) end [2025-04-09 08:08:18] Production.INFO: ProcessCDR(1,14868215,1,1,2) [2025-04-09 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868215', 'tblTempUsageDetail_20' ) start [2025-04-09 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868215', 'tblTempUsageDetail_20' ) end [2025-04-09 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:08:22] Production.INFO: ==11569== Releasing lock... [2025-04-09 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:09:05 [end_date_ymd] => 2025-04-09 08:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:09:05' and `end` < '2025-04-09 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-09 08:09:18] Production.INFO: count ==178 [2025-04-09 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:09:05 - End Time 2025-04-09 08:09:05 [2025-04-09 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868220', 'tblTempUsageDetail_20' ) start [2025-04-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868220', 'tblTempUsageDetail_20' ) end [2025-04-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868220', 'tblTempVendorCDR_20' ) start [2025-04-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868220', 'tblTempVendorCDR_20' ) end [2025-04-09 08:09:18] Production.INFO: ProcessCDR(1,14868220,1,1,2) [2025-04-09 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868220', 'tblTempUsageDetail_20' ) start [2025-04-09 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868220', 'tblTempUsageDetail_20' ) end [2025-04-09 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:09:21] Production.INFO: ==11644== Releasing lock... [2025-04-09 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:10:05 [end_date_ymd] => 2025-04-09 08:10:05 [RateCDR] => 1 ) [2025-04-09 08: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 05:10:05' and `end` < '2025-04-09 08: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-09 08:10:18] Production.INFO: count ==186 [2025-04-09 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:10:05 - End Time 2025-04-09 08:10:05 [2025-04-09 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868226', 'tblTempUsageDetail_20' ) start [2025-04-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868226', 'tblTempUsageDetail_20' ) end [2025-04-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868226', 'tblTempVendorCDR_20' ) start [2025-04-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868226', 'tblTempVendorCDR_20' ) end [2025-04-09 08:10:18] Production.INFO: ProcessCDR(1,14868226,1,1,2) [2025-04-09 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868226', 'tblTempUsageDetail_20' ) start [2025-04-09 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868226', 'tblTempUsageDetail_20' ) end [2025-04-09 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:10:21] Production.INFO: ==11724== Releasing lock... [2025-04-09 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:10:21] Production.INFO: 30 MB #Memory Used# [2025-04-09 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:11:05 [end_date_ymd] => 2025-04-09 08:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:11:05' and `end` < '2025-04-09 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-09 08:11:18] Production.INFO: count ==204 [2025-04-09 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:11:05 - End Time 2025-04-09 08:11:05 [2025-04-09 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868231', 'tblTempUsageDetail_20' ) start [2025-04-09 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868231', 'tblTempUsageDetail_20' ) end [2025-04-09 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868231', 'tblTempVendorCDR_20' ) start [2025-04-09 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868231', 'tblTempVendorCDR_20' ) end [2025-04-09 08:11:18] Production.INFO: ProcessCDR(1,14868231,1,1,2) [2025-04-09 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868231', 'tblTempUsageDetail_20' ) start [2025-04-09 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868231', 'tblTempUsageDetail_20' ) end [2025-04-09 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:11:21] Production.INFO: ==11802== Releasing lock... [2025-04-09 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:11:21] Production.INFO: 30 MB #Memory Used# [2025-04-09 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:12:05 [end_date_ymd] => 2025-04-09 08:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:12:05' and `end` < '2025-04-09 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-09 08:12:18] Production.INFO: count ==205 [2025-04-09 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:12:05 - End Time 2025-04-09 08:12:05 [2025-04-09 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868236', 'tblTempUsageDetail_20' ) start [2025-04-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868236', 'tblTempUsageDetail_20' ) end [2025-04-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868236', 'tblTempVendorCDR_20' ) start [2025-04-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868236', 'tblTempVendorCDR_20' ) end [2025-04-09 08:12:18] Production.INFO: ProcessCDR(1,14868236,1,1,2) [2025-04-09 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868236', 'tblTempUsageDetail_20' ) start [2025-04-09 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868236', 'tblTempUsageDetail_20' ) end [2025-04-09 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:12:23] Production.INFO: ==11894== Releasing lock... [2025-04-09 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:12:23] Production.INFO: 30 MB #Memory Used# [2025-04-09 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:13:05 [end_date_ymd] => 2025-04-09 08:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:13:05' and `end` < '2025-04-09 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-09 08:13:18] Production.INFO: count ==215 [2025-04-09 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:13:05 - End Time 2025-04-09 08:13:05 [2025-04-09 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868241', 'tblTempUsageDetail_20' ) start [2025-04-09 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868241', 'tblTempUsageDetail_20' ) end [2025-04-09 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868241', 'tblTempVendorCDR_20' ) start [2025-04-09 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868241', 'tblTempVendorCDR_20' ) end [2025-04-09 08:13:18] Production.INFO: ProcessCDR(1,14868241,1,1,2) [2025-04-09 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868241', 'tblTempUsageDetail_20' ) start [2025-04-09 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868241', 'tblTempUsageDetail_20' ) end [2025-04-09 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:13:21] Production.INFO: ==11993== Releasing lock... [2025-04-09 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-09 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:14:05 [end_date_ymd] => 2025-04-09 08:14:05 [RateCDR] => 1 ) [2025-04-09 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:14:05' and `end` < '2025-04-09 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:14:18] Production.INFO: count ==217 [2025-04-09 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:14:05 - End Time 2025-04-09 08:14:05 [2025-04-09 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868246', 'tblTempUsageDetail_20' ) start [2025-04-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868246', 'tblTempUsageDetail_20' ) end [2025-04-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868246', 'tblTempVendorCDR_20' ) start [2025-04-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868246', 'tblTempVendorCDR_20' ) end [2025-04-09 08:14:18] Production.INFO: ProcessCDR(1,14868246,1,1,2) [2025-04-09 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868246', 'tblTempUsageDetail_20' ) start [2025-04-09 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868246', 'tblTempUsageDetail_20' ) end [2025-04-09 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:14:22] Production.INFO: ==12065== Releasing lock... [2025-04-09 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:15:05 [end_date_ymd] => 2025-04-09 08:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:15:05' and `end` < '2025-04-09 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-09 08:15:18] Production.INFO: count ==217 [2025-04-09 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:15:05 - End Time 2025-04-09 08:15:05 [2025-04-09 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868251', 'tblTempUsageDetail_20' ) start [2025-04-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868251', 'tblTempUsageDetail_20' ) end [2025-04-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868251', 'tblTempVendorCDR_20' ) start [2025-04-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868251', 'tblTempVendorCDR_20' ) end [2025-04-09 08:15:18] Production.INFO: ProcessCDR(1,14868251,1,1,2) [2025-04-09 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868251', 'tblTempUsageDetail_20' ) start [2025-04-09 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868251', 'tblTempUsageDetail_20' ) end [2025-04-09 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:15:22] Production.INFO: ==12141== Releasing lock... [2025-04-09 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-09 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:16:05 [end_date_ymd] => 2025-04-09 08:16:05 [RateCDR] => 1 ) [2025-04-09 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:16:05' and `end` < '2025-04-09 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:16:18] Production.INFO: count ==224 [2025-04-09 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:16:05 - End Time 2025-04-09 08:16:05 [2025-04-09 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868256', 'tblTempUsageDetail_20' ) start [2025-04-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868256', 'tblTempUsageDetail_20' ) end [2025-04-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868256', 'tblTempVendorCDR_20' ) start [2025-04-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868256', 'tblTempVendorCDR_20' ) end [2025-04-09 08:16:18] Production.INFO: ProcessCDR(1,14868256,1,1,2) [2025-04-09 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868256', 'tblTempUsageDetail_20' ) start [2025-04-09 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868256', 'tblTempUsageDetail_20' ) end [2025-04-09 08:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:16:24] Production.INFO: ==12213== Releasing lock... [2025-04-09 08:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:16:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-09 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:17:05 [end_date_ymd] => 2025-04-09 08:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:17:05' and `end` < '2025-04-09 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-09 08:17:18] Production.INFO: count ==233 [2025-04-09 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:17:05 - End Time 2025-04-09 08:17:05 [2025-04-09 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868261', 'tblTempUsageDetail_20' ) start [2025-04-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868261', 'tblTempUsageDetail_20' ) end [2025-04-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868261', 'tblTempVendorCDR_20' ) start [2025-04-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868261', 'tblTempVendorCDR_20' ) end [2025-04-09 08:17:18] Production.INFO: ProcessCDR(1,14868261,1,1,2) [2025-04-09 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868261', 'tblTempUsageDetail_20' ) start [2025-04-09 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868261', 'tblTempUsageDetail_20' ) end [2025-04-09 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:17:23] Production.INFO: ==12285== Releasing lock... [2025-04-09 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-09 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:18:05 [end_date_ymd] => 2025-04-09 08:18:05 [RateCDR] => 1 ) [2025-04-09 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:18:05' and `end` < '2025-04-09 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:18:18] Production.INFO: count ==234 [2025-04-09 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:18:05 - End Time 2025-04-09 08:18:05 [2025-04-09 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868266', 'tblTempUsageDetail_20' ) start [2025-04-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868266', 'tblTempUsageDetail_20' ) end [2025-04-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868266', 'tblTempVendorCDR_20' ) start [2025-04-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868266', 'tblTempVendorCDR_20' ) end [2025-04-09 08:18:18] Production.INFO: ProcessCDR(1,14868266,1,1,2) [2025-04-09 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868266', 'tblTempUsageDetail_20' ) start [2025-04-09 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868266', 'tblTempUsageDetail_20' ) end [2025-04-09 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:18:23] Production.INFO: ==12362== Releasing lock... [2025-04-09 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-09 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:19:06 [end_date_ymd] => 2025-04-09 08:19:06 [RateCDR] => 1 ) [2025-04-09 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:19:06' and `end` < '2025-04-09 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:19:18] Production.INFO: count ==235 [2025-04-09 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:19:06 - End Time 2025-04-09 08:19:06 [2025-04-09 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868271', 'tblTempUsageDetail_20' ) start [2025-04-09 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868271', 'tblTempUsageDetail_20' ) end [2025-04-09 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868271', 'tblTempVendorCDR_20' ) start [2025-04-09 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868271', 'tblTempVendorCDR_20' ) end [2025-04-09 08:19:18] Production.INFO: ProcessCDR(1,14868271,1,1,2) [2025-04-09 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868271', 'tblTempUsageDetail_20' ) start [2025-04-09 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868271', 'tblTempUsageDetail_20' ) end [2025-04-09 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:19:23] Production.INFO: ==12444== Releasing lock... [2025-04-09 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:19:23] Production.INFO: 30 MB #Memory Used# [2025-04-09 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:20:06 [end_date_ymd] => 2025-04-09 08:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 05:20:06' and `end` < '2025-04-09 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-09 08:20:19] Production.INFO: count ==250 [2025-04-09 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:20:06 - End Time 2025-04-09 08:20:06 [2025-04-09 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868277', 'tblTempUsageDetail_20' ) start [2025-04-09 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868277', 'tblTempUsageDetail_20' ) end [2025-04-09 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868277', 'tblTempVendorCDR_20' ) start [2025-04-09 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868277', 'tblTempVendorCDR_20' ) end [2025-04-09 08:20:19] Production.INFO: ProcessCDR(1,14868277,1,1,2) [2025-04-09 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868277', 'tblTempUsageDetail_20' ) start [2025-04-09 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868277', 'tblTempUsageDetail_20' ) end [2025-04-09 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:20:22] Production.INFO: ==12518== Releasing lock... [2025-04-09 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-09 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:21:05 [end_date_ymd] => 2025-04-09 08:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:21:05' and `end` < '2025-04-09 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-09 08:21:18] Production.INFO: count ==275 [2025-04-09 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:21:05 - End Time 2025-04-09 08:21:05 [2025-04-09 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868282', 'tblTempUsageDetail_20' ) start [2025-04-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868282', 'tblTempUsageDetail_20' ) end [2025-04-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868282', 'tblTempVendorCDR_20' ) start [2025-04-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868282', 'tblTempVendorCDR_20' ) end [2025-04-09 08:21:18] Production.INFO: ProcessCDR(1,14868282,1,1,2) [2025-04-09 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868282', 'tblTempUsageDetail_20' ) start [2025-04-09 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868282', 'tblTempUsageDetail_20' ) end [2025-04-09 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:21:22] Production.INFO: ==12596== Releasing lock... [2025-04-09 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-09 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:22:05 [end_date_ymd] => 2025-04-09 08:22:05 [RateCDR] => 1 ) [2025-04-09 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:22:05' and `end` < '2025-04-09 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:22:18] Production.INFO: count ==285 [2025-04-09 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:22:05 - End Time 2025-04-09 08:22:05 [2025-04-09 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868287', 'tblTempUsageDetail_20' ) start [2025-04-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868287', 'tblTempUsageDetail_20' ) end [2025-04-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868287', 'tblTempVendorCDR_20' ) start [2025-04-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868287', 'tblTempVendorCDR_20' ) end [2025-04-09 08:22:18] Production.INFO: ProcessCDR(1,14868287,1,1,2) [2025-04-09 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868287', 'tblTempUsageDetail_20' ) start [2025-04-09 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868287', 'tblTempUsageDetail_20' ) end [2025-04-09 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:22:23] Production.INFO: ==12672== Releasing lock... [2025-04-09 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:22:23] Production.INFO: 31 MB #Memory Used# [2025-04-09 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:23:05 [end_date_ymd] => 2025-04-09 08:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:23:05' and `end` < '2025-04-09 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-09 08:23:18] Production.INFO: count ==295 [2025-04-09 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:23:05 - End Time 2025-04-09 08:23:05 [2025-04-09 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868292', 'tblTempUsageDetail_20' ) start [2025-04-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868292', 'tblTempUsageDetail_20' ) end [2025-04-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868292', 'tblTempVendorCDR_20' ) start [2025-04-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868292', 'tblTempVendorCDR_20' ) end [2025-04-09 08:23:18] Production.INFO: ProcessCDR(1,14868292,1,1,2) [2025-04-09 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868292', 'tblTempUsageDetail_20' ) start [2025-04-09 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868292', 'tblTempUsageDetail_20' ) end [2025-04-09 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:23:22] Production.INFO: ==12746== Releasing lock... [2025-04-09 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:24:05 [end_date_ymd] => 2025-04-09 08:24:05 [RateCDR] => 1 ) [2025-04-09 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:24:05' and `end` < '2025-04-09 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:24:18] Production.INFO: count ==295 [2025-04-09 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:24:05 - End Time 2025-04-09 08:24:05 [2025-04-09 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868297', 'tblTempUsageDetail_20' ) start [2025-04-09 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868297', 'tblTempUsageDetail_20' ) end [2025-04-09 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868297', 'tblTempVendorCDR_20' ) start [2025-04-09 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868297', 'tblTempVendorCDR_20' ) end [2025-04-09 08:24:18] Production.INFO: ProcessCDR(1,14868297,1,1,2) [2025-04-09 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868297', 'tblTempUsageDetail_20' ) start [2025-04-09 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868297', 'tblTempUsageDetail_20' ) end [2025-04-09 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:24:21] Production.INFO: ==12823== Releasing lock... [2025-04-09 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:25:05 [end_date_ymd] => 2025-04-09 08:25:05 [RateCDR] => 1 ) [2025-04-09 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:25:05' and `end` < '2025-04-09 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-09 08:25:18] Production.INFO: count ==305 [2025-04-09 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:25:05 - End Time 2025-04-09 08:25:05 [2025-04-09 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868302', 'tblTempUsageDetail_20' ) start [2025-04-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868302', 'tblTempUsageDetail_20' ) end [2025-04-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868302', 'tblTempVendorCDR_20' ) start [2025-04-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868302', 'tblTempVendorCDR_20' ) end [2025-04-09 08:25:18] Production.INFO: ProcessCDR(1,14868302,1,1,2) [2025-04-09 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868302', 'tblTempUsageDetail_20' ) start [2025-04-09 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868302', 'tblTempUsageDetail_20' ) end [2025-04-09 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:25:22] Production.INFO: ==12899== Releasing lock... [2025-04-09 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:26:05 [end_date_ymd] => 2025-04-09 08:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:26:05' and `end` < '2025-04-09 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-09 08:26:18] Production.INFO: count ==305 [2025-04-09 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:26:05 - End Time 2025-04-09 08:26:05 [2025-04-09 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868307', 'tblTempUsageDetail_20' ) start [2025-04-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868307', 'tblTempUsageDetail_20' ) end [2025-04-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868307', 'tblTempVendorCDR_20' ) start [2025-04-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868307', 'tblTempVendorCDR_20' ) end [2025-04-09 08:26:18] Production.INFO: ProcessCDR(1,14868307,1,1,2) [2025-04-09 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868307', 'tblTempUsageDetail_20' ) start [2025-04-09 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868307', 'tblTempUsageDetail_20' ) end [2025-04-09 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:26:21] Production.INFO: ==12977== Releasing lock... [2025-04-09 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:27:05 [end_date_ymd] => 2025-04-09 08:27:05 [RateCDR] => 1 ) [2025-04-09 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:27:05' and `end` < '2025-04-09 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:27:18] Production.INFO: count ==306 [2025-04-09 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:27:05 - End Time 2025-04-09 08:27:05 [2025-04-09 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868312', 'tblTempUsageDetail_20' ) start [2025-04-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868312', 'tblTempUsageDetail_20' ) end [2025-04-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868312', 'tblTempVendorCDR_20' ) start [2025-04-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868312', 'tblTempVendorCDR_20' ) end [2025-04-09 08:27:18] Production.INFO: ProcessCDR(1,14868312,1,1,2) [2025-04-09 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868312', 'tblTempUsageDetail_20' ) start [2025-04-09 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868312', 'tblTempUsageDetail_20' ) end [2025-04-09 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:27:22] Production.INFO: ==13048== Releasing lock... [2025-04-09 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:28:04 [end_date_ymd] => 2025-04-09 08:28:04 [RateCDR] => 1 ) [2025-04-09 08:28: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 05:28:04' and `end` < '2025-04-09 08:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:28:17] Production.INFO: count ==308 [2025-04-09 08:28:17] Production.ERROR: pbx CDR StartTime 2025-04-09 05:28:04 - End Time 2025-04-09 08:28:04 [2025-04-09 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868317', 'tblTempUsageDetail_20' ) start [2025-04-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868317', 'tblTempUsageDetail_20' ) end [2025-04-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868317', 'tblTempVendorCDR_20' ) start [2025-04-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868317', 'tblTempVendorCDR_20' ) end [2025-04-09 08:28:18] Production.INFO: ProcessCDR(1,14868317,1,1,2) [2025-04-09 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868317', 'tblTempUsageDetail_20' ) start [2025-04-09 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868317', 'tblTempUsageDetail_20' ) end [2025-04-09 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:28:23] Production.INFO: ==13166== Releasing lock... [2025-04-09 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:28:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-09 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:29:05 [end_date_ymd] => 2025-04-09 08:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:29:05' and `end` < '2025-04-09 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-09 08:29:18] Production.INFO: count ==310 [2025-04-09 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:29:05 - End Time 2025-04-09 08:29:05 [2025-04-09 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868322', 'tblTempUsageDetail_20' ) start [2025-04-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868322', 'tblTempUsageDetail_20' ) end [2025-04-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868322', 'tblTempVendorCDR_20' ) start [2025-04-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868322', 'tblTempVendorCDR_20' ) end [2025-04-09 08:29:18] Production.INFO: ProcessCDR(1,14868322,1,1,2) [2025-04-09 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868322', 'tblTempUsageDetail_20' ) start [2025-04-09 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868322', 'tblTempUsageDetail_20' ) end [2025-04-09 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:29:23] Production.INFO: ==13243== Releasing lock... [2025-04-09 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:30:06 [end_date_ymd] => 2025-04-09 08:30:06 [RateCDR] => 1 ) [2025-04-09 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:30:06' and `end` < '2025-04-09 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:30:19] Production.INFO: count ==328 [2025-04-09 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:30:06 - End Time 2025-04-09 08:30:06 [2025-04-09 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868328', 'tblTempUsageDetail_20' ) start [2025-04-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868328', 'tblTempUsageDetail_20' ) end [2025-04-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868328', 'tblTempVendorCDR_20' ) start [2025-04-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868328', 'tblTempVendorCDR_20' ) end [2025-04-09 08:30:19] Production.INFO: ProcessCDR(1,14868328,1,1,2) [2025-04-09 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868328', 'tblTempUsageDetail_20' ) start [2025-04-09 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868328', 'tblTempUsageDetail_20' ) end [2025-04-09 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:30:24] Production.INFO: ==13317== Releasing lock... [2025-04-09 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:30:24] Production.INFO: 31 MB #Memory Used# [2025-04-09 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:31:05 [end_date_ymd] => 2025-04-09 08:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:31:05' and `end` < '2025-04-09 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-09 08:31:18] Production.INFO: count ==340 [2025-04-09 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:31:05 - End Time 2025-04-09 08:31:05 [2025-04-09 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868333', 'tblTempUsageDetail_20' ) start [2025-04-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868333', 'tblTempUsageDetail_20' ) end [2025-04-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868333', 'tblTempVendorCDR_20' ) start [2025-04-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868333', 'tblTempVendorCDR_20' ) end [2025-04-09 08:31:18] Production.INFO: ProcessCDR(1,14868333,1,1,2) [2025-04-09 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868333', 'tblTempUsageDetail_20' ) start [2025-04-09 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868333', 'tblTempUsageDetail_20' ) end [2025-04-09 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:31:21] Production.INFO: ==13397== Releasing lock... [2025-04-09 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:32:05 [end_date_ymd] => 2025-04-09 08:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:32:05' and `end` < '2025-04-09 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-09 08:32:18] Production.INFO: count ==350 [2025-04-09 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:32:05 - End Time 2025-04-09 08:32:05 [2025-04-09 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868338', 'tblTempUsageDetail_20' ) start [2025-04-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868338', 'tblTempUsageDetail_20' ) end [2025-04-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868338', 'tblTempVendorCDR_20' ) start [2025-04-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868338', 'tblTempVendorCDR_20' ) end [2025-04-09 08:32:18] Production.INFO: ProcessCDR(1,14868338,1,1,2) [2025-04-09 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868338', 'tblTempUsageDetail_20' ) start [2025-04-09 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868338', 'tblTempUsageDetail_20' ) end [2025-04-09 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:32:22] Production.INFO: ==13471== Releasing lock... [2025-04-09 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:32:22] Production.INFO: 31 MB #Memory Used# [2025-04-09 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:33:05 [end_date_ymd] => 2025-04-09 08:33:05 [RateCDR] => 1 ) [2025-04-09 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:33:05' and `end` < '2025-04-09 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:33:18] Production.INFO: count ==352 [2025-04-09 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:33:05 - End Time 2025-04-09 08:33:05 [2025-04-09 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868343', 'tblTempUsageDetail_20' ) start [2025-04-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868343', 'tblTempUsageDetail_20' ) end [2025-04-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868343', 'tblTempVendorCDR_20' ) start [2025-04-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868343', 'tblTempVendorCDR_20' ) end [2025-04-09 08:33:18] Production.INFO: ProcessCDR(1,14868343,1,1,2) [2025-04-09 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868343', 'tblTempUsageDetail_20' ) start [2025-04-09 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868343', 'tblTempUsageDetail_20' ) end [2025-04-09 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:33:23] Production.INFO: ==13543== Releasing lock... [2025-04-09 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:33:23] Production.INFO: 31 MB #Memory Used# [2025-04-09 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:34:05 [end_date_ymd] => 2025-04-09 08:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:34:05' and `end` < '2025-04-09 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-09 08:34:18] Production.INFO: count ==374 [2025-04-09 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:34:05 - End Time 2025-04-09 08:34:05 [2025-04-09 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868348', 'tblTempUsageDetail_20' ) start [2025-04-09 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868348', 'tblTempUsageDetail_20' ) end [2025-04-09 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868348', 'tblTempVendorCDR_20' ) start [2025-04-09 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868348', 'tblTempVendorCDR_20' ) end [2025-04-09 08:34:18] Production.INFO: ProcessCDR(1,14868348,1,1,2) [2025-04-09 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868348', 'tblTempUsageDetail_20' ) start [2025-04-09 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868348', 'tblTempUsageDetail_20' ) end [2025-04-09 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:34:23] Production.INFO: ==13620== Releasing lock... [2025-04-09 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:34:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:35:05 [end_date_ymd] => 2025-04-09 08:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:35:05' and `end` < '2025-04-09 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-09 08:35:17] Production.INFO: count ==377 [2025-04-09 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:35:05 - End Time 2025-04-09 08:35:05 [2025-04-09 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868353', 'tblTempUsageDetail_20' ) start [2025-04-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868353', 'tblTempUsageDetail_20' ) end [2025-04-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868353', 'tblTempVendorCDR_20' ) start [2025-04-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868353', 'tblTempVendorCDR_20' ) end [2025-04-09 08:35:18] Production.INFO: ProcessCDR(1,14868353,1,1,2) [2025-04-09 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868353', 'tblTempUsageDetail_20' ) start [2025-04-09 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868353', 'tblTempUsageDetail_20' ) end [2025-04-09 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:35:23] Production.INFO: ==13697== Releasing lock... [2025-04-09 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:35:23] Production.INFO: 31 MB #Memory Used# [2025-04-09 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:36:06 [end_date_ymd] => 2025-04-09 08:36:06 [RateCDR] => 1 ) [2025-04-09 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:36:06' and `end` < '2025-04-09 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:36:18] Production.INFO: count ==385 [2025-04-09 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:36:06 - End Time 2025-04-09 08:36:06 [2025-04-09 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868358', 'tblTempUsageDetail_20' ) start [2025-04-09 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868358', 'tblTempUsageDetail_20' ) end [2025-04-09 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868358', 'tblTempVendorCDR_20' ) start [2025-04-09 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868358', 'tblTempVendorCDR_20' ) end [2025-04-09 08:36:19] Production.INFO: ProcessCDR(1,14868358,1,1,2) [2025-04-09 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868358', 'tblTempUsageDetail_20' ) start [2025-04-09 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868358', 'tblTempUsageDetail_20' ) end [2025-04-09 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:36:24] Production.INFO: ==13772== Releasing lock... [2025-04-09 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:36:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:37:04 [end_date_ymd] => 2025-04-09 08:37:04 [RateCDR] => 1 ) [2025-04-09 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:37:04' and `end` < '2025-04-09 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:37:17] Production.INFO: count ==385 [2025-04-09 08:37:17] Production.ERROR: pbx CDR StartTime 2025-04-09 05:37:04 - End Time 2025-04-09 08:37:04 [2025-04-09 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868363', 'tblTempUsageDetail_20' ) start [2025-04-09 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868363', 'tblTempUsageDetail_20' ) end [2025-04-09 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868363', 'tblTempVendorCDR_20' ) start [2025-04-09 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868363', 'tblTempVendorCDR_20' ) end [2025-04-09 08:37:17] Production.INFO: ProcessCDR(1,14868363,1,1,2) [2025-04-09 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868363', 'tblTempUsageDetail_20' ) start [2025-04-09 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868363', 'tblTempUsageDetail_20' ) end [2025-04-09 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:37:21] Production.INFO: ==13845== Releasing lock... [2025-04-09 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:38:05 [end_date_ymd] => 2025-04-09 08:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:38:05' and `end` < '2025-04-09 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-09 08:38:18] Production.INFO: count ==390 [2025-04-09 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:38:05 - End Time 2025-04-09 08:38:05 [2025-04-09 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868368', 'tblTempUsageDetail_20' ) start [2025-04-09 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868368', 'tblTempUsageDetail_20' ) end [2025-04-09 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868368', 'tblTempVendorCDR_20' ) start [2025-04-09 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868368', 'tblTempVendorCDR_20' ) end [2025-04-09 08:38:18] Production.INFO: ProcessCDR(1,14868368,1,1,2) [2025-04-09 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868368', 'tblTempUsageDetail_20' ) start [2025-04-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868368', 'tblTempUsageDetail_20' ) end [2025-04-09 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:38:23] Production.INFO: ==13918== Releasing lock... [2025-04-09 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:38:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:39:05 [end_date_ymd] => 2025-04-09 08:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:39:05' and `end` < '2025-04-09 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-09 08:39:18] Production.INFO: count ==398 [2025-04-09 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:39:05 - End Time 2025-04-09 08:39:05 [2025-04-09 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868373', 'tblTempUsageDetail_20' ) start [2025-04-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868373', 'tblTempUsageDetail_20' ) end [2025-04-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868373', 'tblTempVendorCDR_20' ) start [2025-04-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868373', 'tblTempVendorCDR_20' ) end [2025-04-09 08:39:18] Production.INFO: ProcessCDR(1,14868373,1,1,2) [2025-04-09 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868373', 'tblTempUsageDetail_20' ) start [2025-04-09 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868373', 'tblTempUsageDetail_20' ) end [2025-04-09 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:39:21] Production.INFO: ==13989== Releasing lock... [2025-04-09 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:40:06 [end_date_ymd] => 2025-04-09 08:40:06 [RateCDR] => 1 ) [2025-04-09 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:40:06' and `end` < '2025-04-09 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:40:19] Production.INFO: count ==413 [2025-04-09 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:40:06 - End Time 2025-04-09 08:40:06 [2025-04-09 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868379', 'tblTempUsageDetail_20' ) start [2025-04-09 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868379', 'tblTempUsageDetail_20' ) end [2025-04-09 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868379', 'tblTempVendorCDR_20' ) start [2025-04-09 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868379', 'tblTempVendorCDR_20' ) end [2025-04-09 08:40:19] Production.INFO: ProcessCDR(1,14868379,1,1,2) [2025-04-09 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868379', 'tblTempUsageDetail_20' ) start [2025-04-09 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868379', 'tblTempUsageDetail_20' ) end [2025-04-09 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:40:23] Production.INFO: ==14069== Releasing lock... [2025-04-09 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:41:05 [end_date_ymd] => 2025-04-09 08:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:41:05' and `end` < '2025-04-09 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-09 08:41:18] Production.INFO: count ==453 [2025-04-09 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:41:05 - End Time 2025-04-09 08:41:05 [2025-04-09 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868384', 'tblTempUsageDetail_20' ) start [2025-04-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868384', 'tblTempUsageDetail_20' ) end [2025-04-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868384', 'tblTempVendorCDR_20' ) start [2025-04-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868384', 'tblTempVendorCDR_20' ) end [2025-04-09 08:41:18] Production.INFO: ProcessCDR(1,14868384,1,1,2) [2025-04-09 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868384', 'tblTempUsageDetail_20' ) start [2025-04-09 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868384', 'tblTempUsageDetail_20' ) end [2025-04-09 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:41:23] Production.INFO: ==14145== Releasing lock... [2025-04-09 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:41:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:42:05 [end_date_ymd] => 2025-04-09 08:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:42:05' and `end` < '2025-04-09 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-09 08:42:17] Production.INFO: count ==474 [2025-04-09 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:42:05 - End Time 2025-04-09 08:42:05 [2025-04-09 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868389', 'tblTempUsageDetail_20' ) start [2025-04-09 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868389', 'tblTempUsageDetail_20' ) end [2025-04-09 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868389', 'tblTempVendorCDR_20' ) start [2025-04-09 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868389', 'tblTempVendorCDR_20' ) end [2025-04-09 08:42:18] Production.INFO: ProcessCDR(1,14868389,1,1,2) [2025-04-09 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868389', 'tblTempUsageDetail_20' ) start [2025-04-09 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868389', 'tblTempUsageDetail_20' ) end [2025-04-09 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:42:23] Production.INFO: ==14217== Releasing lock... [2025-04-09 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:42:23] Production.INFO: 32 MB #Memory Used# [2025-04-09 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:43:04 [end_date_ymd] => 2025-04-09 08:43:04 [RateCDR] => 1 ) [2025-04-09 08: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-09 05:43:04' and `end` < '2025-04-09 08: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-09 08:43:17] Production.INFO: count ==475 [2025-04-09 08:43:17] Production.ERROR: pbx CDR StartTime 2025-04-09 05:43:04 - End Time 2025-04-09 08:43:04 [2025-04-09 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868394', 'tblTempUsageDetail_20' ) start [2025-04-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868394', 'tblTempUsageDetail_20' ) end [2025-04-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868394', 'tblTempVendorCDR_20' ) start [2025-04-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868394', 'tblTempVendorCDR_20' ) end [2025-04-09 08:43:17] Production.INFO: ProcessCDR(1,14868394,1,1,2) [2025-04-09 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868394', 'tblTempUsageDetail_20' ) start [2025-04-09 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868394', 'tblTempUsageDetail_20' ) end [2025-04-09 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:43:21] Production.INFO: ==14333== Releasing lock... [2025-04-09 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:44:05 [end_date_ymd] => 2025-04-09 08:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:44:05' and `end` < '2025-04-09 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-09 08:44:18] Production.INFO: count ==477 [2025-04-09 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:44:05 - End Time 2025-04-09 08:44:05 [2025-04-09 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868399', 'tblTempUsageDetail_20' ) start [2025-04-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868399', 'tblTempUsageDetail_20' ) end [2025-04-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868399', 'tblTempVendorCDR_20' ) start [2025-04-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868399', 'tblTempVendorCDR_20' ) end [2025-04-09 08:44:18] Production.INFO: ProcessCDR(1,14868399,1,1,2) [2025-04-09 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868399', 'tblTempUsageDetail_20' ) start [2025-04-09 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868399', 'tblTempUsageDetail_20' ) end [2025-04-09 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:44:23] Production.INFO: ==14405== Releasing lock... [2025-04-09 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:44:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-09 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:45:06 [end_date_ymd] => 2025-04-09 08:45:06 [RateCDR] => 1 ) [2025-04-09 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:45:06' and `end` < '2025-04-09 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:45:18] Production.INFO: count ==483 [2025-04-09 08:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:45:06 - End Time 2025-04-09 08:45:06 [2025-04-09 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868404', 'tblTempUsageDetail_20' ) start [2025-04-09 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868404', 'tblTempUsageDetail_20' ) end [2025-04-09 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868404', 'tblTempVendorCDR_20' ) start [2025-04-09 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868404', 'tblTempVendorCDR_20' ) end [2025-04-09 08:45:19] Production.INFO: ProcessCDR(1,14868404,1,1,2) [2025-04-09 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868404', 'tblTempUsageDetail_20' ) start [2025-04-09 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868404', 'tblTempUsageDetail_20' ) end [2025-04-09 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:45:22] Production.INFO: ==14477== Releasing lock... [2025-04-09 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-09 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:46:05 [end_date_ymd] => 2025-04-09 08:46:05 [RateCDR] => 1 ) [2025-04-09 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:46:05' and `end` < '2025-04-09 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:46:18] Production.INFO: count ==484 [2025-04-09 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:46:05 - End Time 2025-04-09 08:46:05 [2025-04-09 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868409', 'tblTempUsageDetail_20' ) start [2025-04-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868409', 'tblTempUsageDetail_20' ) end [2025-04-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868409', 'tblTempVendorCDR_20' ) start [2025-04-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868409', 'tblTempVendorCDR_20' ) end [2025-04-09 08:46:18] Production.INFO: ProcessCDR(1,14868409,1,1,2) [2025-04-09 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868409', 'tblTempUsageDetail_20' ) start [2025-04-09 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868409', 'tblTempUsageDetail_20' ) end [2025-04-09 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:46:23] Production.INFO: ==14554== Releasing lock... [2025-04-09 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:46:23] Production.INFO: 32 MB #Memory Used# [2025-04-09 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:47:06 [end_date_ymd] => 2025-04-09 08:47:06 [RateCDR] => 1 ) [2025-04-09 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:47:06' and `end` < '2025-04-09 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:47:19] Production.INFO: count ==503 [2025-04-09 08:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:47:06 - End Time 2025-04-09 08:47:06 [2025-04-09 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868414', 'tblTempUsageDetail_20' ) start [2025-04-09 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868414', 'tblTempUsageDetail_20' ) end [2025-04-09 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868414', 'tblTempVendorCDR_20' ) start [2025-04-09 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868414', 'tblTempVendorCDR_20' ) end [2025-04-09 08:47:19] Production.INFO: ProcessCDR(1,14868414,1,1,2) [2025-04-09 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868414', 'tblTempUsageDetail_20' ) start [2025-04-09 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868414', 'tblTempUsageDetail_20' ) end [2025-04-09 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:47:24] Production.INFO: ==14632== Releasing lock... [2025-04-09 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:47:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:48:05 [end_date_ymd] => 2025-04-09 08:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:48:05' and `end` < '2025-04-09 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-09 08:48:18] Production.INFO: count ==511 [2025-04-09 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:48:05 - End Time 2025-04-09 08:48:05 [2025-04-09 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868419', 'tblTempUsageDetail_20' ) start [2025-04-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868419', 'tblTempUsageDetail_20' ) end [2025-04-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868419', 'tblTempVendorCDR_20' ) start [2025-04-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868419', 'tblTempVendorCDR_20' ) end [2025-04-09 08:48:18] Production.INFO: ProcessCDR(1,14868419,1,1,2) [2025-04-09 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868419', 'tblTempUsageDetail_20' ) start [2025-04-09 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868419', 'tblTempUsageDetail_20' ) end [2025-04-09 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:48:24] Production.INFO: ==14703== Releasing lock... [2025-04-09 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:48:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:49:06 [end_date_ymd] => 2025-04-09 08:49:06 [RateCDR] => 1 ) [2025-04-09 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:49:06' and `end` < '2025-04-09 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:49:19] Production.INFO: count ==517 [2025-04-09 08:49:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:49:06 - End Time 2025-04-09 08:49:06 [2025-04-09 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868424', 'tblTempUsageDetail_20' ) start [2025-04-09 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868424', 'tblTempUsageDetail_20' ) end [2025-04-09 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868424', 'tblTempVendorCDR_20' ) start [2025-04-09 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868424', 'tblTempVendorCDR_20' ) end [2025-04-09 08:49:19] Production.INFO: ProcessCDR(1,14868424,1,1,2) [2025-04-09 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868424', 'tblTempUsageDetail_20' ) start [2025-04-09 08:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868424', 'tblTempUsageDetail_20' ) end [2025-04-09 08:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:49:25] Production.INFO: ==14781== Releasing lock... [2025-04-09 08:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:49:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:50:06 [end_date_ymd] => 2025-04-09 08:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 05:50:06' and `end` < '2025-04-09 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-09 08:50:19] Production.INFO: count ==535 [2025-04-09 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:50:06 - End Time 2025-04-09 08:50:06 [2025-04-09 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868430', 'tblTempUsageDetail_20' ) start [2025-04-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868430', 'tblTempUsageDetail_20' ) end [2025-04-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868430', 'tblTempVendorCDR_20' ) start [2025-04-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868430', 'tblTempVendorCDR_20' ) end [2025-04-09 08:50:20] Production.INFO: ProcessCDR(1,14868430,1,1,2) [2025-04-09 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868430', 'tblTempUsageDetail_20' ) start [2025-04-09 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868430', 'tblTempUsageDetail_20' ) end [2025-04-09 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:50:25] Production.INFO: ==14856== Releasing lock... [2025-04-09 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:50:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:51:05 [end_date_ymd] => 2025-04-09 08:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:51:05' and `end` < '2025-04-09 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-09 08:51:18] Production.INFO: count ==577 [2025-04-09 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:51:05 - End Time 2025-04-09 08:51:05 [2025-04-09 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868435', 'tblTempUsageDetail_20' ) start [2025-04-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868435', 'tblTempUsageDetail_20' ) end [2025-04-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868435', 'tblTempVendorCDR_20' ) start [2025-04-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868435', 'tblTempVendorCDR_20' ) end [2025-04-09 08:51:18] Production.INFO: ProcessCDR(1,14868435,1,1,2) [2025-04-09 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868435', 'tblTempUsageDetail_20' ) start [2025-04-09 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868435', 'tblTempUsageDetail_20' ) end [2025-04-09 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:51:22] Production.INFO: ==14933== Releasing lock... [2025-04-09 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:51:22] Production.INFO: 33 MB #Memory Used# [2025-04-09 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:52:05 [end_date_ymd] => 2025-04-09 08:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:52:05' and `end` < '2025-04-09 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-09 08:52:18] Production.INFO: count ==593 [2025-04-09 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:52:05 - End Time 2025-04-09 08:52:05 [2025-04-09 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868440', 'tblTempUsageDetail_20' ) start [2025-04-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868440', 'tblTempUsageDetail_20' ) end [2025-04-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868440', 'tblTempVendorCDR_20' ) start [2025-04-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868440', 'tblTempVendorCDR_20' ) end [2025-04-09 08:52:18] Production.INFO: ProcessCDR(1,14868440,1,1,2) [2025-04-09 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868440', 'tblTempUsageDetail_20' ) start [2025-04-09 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868440', 'tblTempUsageDetail_20' ) end [2025-04-09 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:52:24] Production.INFO: ==15007== Releasing lock... [2025-04-09 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:52:24] Production.INFO: 33 MB #Memory Used# [2025-04-09 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:53:05 [end_date_ymd] => 2025-04-09 08:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:53:05' and `end` < '2025-04-09 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-09 08:53:18] Production.INFO: count ==594 [2025-04-09 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:53:05 - End Time 2025-04-09 08:53:05 [2025-04-09 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868445', 'tblTempUsageDetail_20' ) start [2025-04-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868445', 'tblTempUsageDetail_20' ) end [2025-04-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868445', 'tblTempVendorCDR_20' ) start [2025-04-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868445', 'tblTempVendorCDR_20' ) end [2025-04-09 08:53:18] Production.INFO: ProcessCDR(1,14868445,1,1,2) [2025-04-09 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868445', 'tblTempUsageDetail_20' ) start [2025-04-09 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868445', 'tblTempUsageDetail_20' ) end [2025-04-09 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:53:22] Production.INFO: ==15080== Releasing lock... [2025-04-09 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:53:22] Production.INFO: 33 MB #Memory Used# [2025-04-09 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:54:05 [end_date_ymd] => 2025-04-09 08:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:54:05' and `end` < '2025-04-09 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-09 08:54:18] Production.INFO: count ==599 [2025-04-09 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:54:05 - End Time 2025-04-09 08:54:05 [2025-04-09 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868450', 'tblTempUsageDetail_20' ) start [2025-04-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868450', 'tblTempUsageDetail_20' ) end [2025-04-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868450', 'tblTempVendorCDR_20' ) start [2025-04-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868450', 'tblTempVendorCDR_20' ) end [2025-04-09 08:54:18] Production.INFO: ProcessCDR(1,14868450,1,1,2) [2025-04-09 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868450', 'tblTempUsageDetail_20' ) start [2025-04-09 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868450', 'tblTempUsageDetail_20' ) end [2025-04-09 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:54:24] Production.INFO: ==15156== Releasing lock... [2025-04-09 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:54:24] Production.INFO: 33 MB #Memory Used# [2025-04-09 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:55:05 [end_date_ymd] => 2025-04-09 08:55:05 [RateCDR] => 1 ) [2025-04-09 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:55:05' and `end` < '2025-04-09 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:55:18] Production.INFO: count ==605 [2025-04-09 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:55:05 - End Time 2025-04-09 08:55:05 [2025-04-09 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868455', 'tblTempUsageDetail_20' ) start [2025-04-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868455', 'tblTempUsageDetail_20' ) end [2025-04-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868455', 'tblTempVendorCDR_20' ) start [2025-04-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868455', 'tblTempVendorCDR_20' ) end [2025-04-09 08:55:18] Production.INFO: ProcessCDR(1,14868455,1,1,2) [2025-04-09 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868455', 'tblTempUsageDetail_20' ) start [2025-04-09 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868455', 'tblTempUsageDetail_20' ) end [2025-04-09 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:55:23] Production.INFO: ==15233== Releasing lock... [2025-04-09 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:56:04 [end_date_ymd] => 2025-04-09 08:56:04 [RateCDR] => 1 ) [2025-04-09 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:56:04' and `end` < '2025-04-09 08:56: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-09 08:56:17] Production.INFO: count ==613 [2025-04-09 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:56:04 - End Time 2025-04-09 08:56:04 [2025-04-09 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868460', 'tblTempUsageDetail_20' ) start [2025-04-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868460', 'tblTempUsageDetail_20' ) end [2025-04-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868460', 'tblTempVendorCDR_20' ) start [2025-04-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868460', 'tblTempVendorCDR_20' ) end [2025-04-09 08:56:18] Production.INFO: ProcessCDR(1,14868460,1,1,2) [2025-04-09 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868460', 'tblTempUsageDetail_20' ) start [2025-04-09 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868460', 'tblTempUsageDetail_20' ) end [2025-04-09 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:56:23] Production.INFO: ==15303== Releasing lock... [2025-04-09 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:57:05 [end_date_ymd] => 2025-04-09 08:57:05 [RateCDR] => 1 ) [2025-04-09 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:57:05' and `end` < '2025-04-09 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:57:18] Production.INFO: count ==619 [2025-04-09 08:57:19] Production.ERROR: pbx CDR StartTime 2025-04-09 05:57:05 - End Time 2025-04-09 08:57:05 [2025-04-09 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868465', 'tblTempUsageDetail_20' ) start [2025-04-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868465', 'tblTempUsageDetail_20' ) end [2025-04-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868465', 'tblTempVendorCDR_20' ) start [2025-04-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868465', 'tblTempVendorCDR_20' ) end [2025-04-09 08:57:19] Production.INFO: ProcessCDR(1,14868465,1,1,2) [2025-04-09 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868465', 'tblTempUsageDetail_20' ) start [2025-04-09 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868465', 'tblTempUsageDetail_20' ) end [2025-04-09 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:57:24] Production.INFO: ==15377== Releasing lock... [2025-04-09 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:57:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:58:05 [end_date_ymd] => 2025-04-09 08:58:05 [RateCDR] => 1 ) [2025-04-09 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 05:58:05' and `end` < '2025-04-09 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 08:58:18] Production.INFO: count ==619 [2025-04-09 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:58:05 - End Time 2025-04-09 08:58:05 [2025-04-09 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868470', 'tblTempUsageDetail_20' ) start [2025-04-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868470', 'tblTempUsageDetail_20' ) end [2025-04-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868470', 'tblTempVendorCDR_20' ) start [2025-04-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868470', 'tblTempVendorCDR_20' ) end [2025-04-09 08:58:18] Production.INFO: ProcessCDR(1,14868470,1,1,2) [2025-04-09 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868470', 'tblTempUsageDetail_20' ) start [2025-04-09 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868470', 'tblTempUsageDetail_20' ) end [2025-04-09 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:58:22] Production.INFO: ==15453== Releasing lock... [2025-04-09 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 05:59:05 [end_date_ymd] => 2025-04-09 08:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 05:59:05' and `end` < '2025-04-09 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-09 08:59:18] Production.INFO: count ==624 [2025-04-09 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 05:59:05 - End Time 2025-04-09 08:59:05 [2025-04-09 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868475', 'tblTempUsageDetail_20' ) start [2025-04-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868475', 'tblTempUsageDetail_20' ) end [2025-04-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868475', 'tblTempVendorCDR_20' ) start [2025-04-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868475', 'tblTempVendorCDR_20' ) end [2025-04-09 08:59:18] Production.INFO: ProcessCDR(1,14868475,1,1,2) [2025-04-09 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868475', 'tblTempUsageDetail_20' ) start [2025-04-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868475', 'tblTempUsageDetail_20' ) end [2025-04-09 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 08:59:22] Production.INFO: ==15567== Releasing lock... [2025-04-09 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:00:06 [end_date_ymd] => 2025-04-09 09:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:00:06' and `end` < '2025-04-09 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-09 09:00:18] Production.INFO: count ==631 [2025-04-09 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:00:06 - End Time 2025-04-09 09:00:06 [2025-04-09 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868480', 'tblTempUsageDetail_20' ) start [2025-04-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868480', 'tblTempUsageDetail_20' ) end [2025-04-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868480', 'tblTempVendorCDR_20' ) start [2025-04-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868480', 'tblTempVendorCDR_20' ) end [2025-04-09 09:00:19] Production.INFO: ProcessCDR(1,14868480,1,1,2) [2025-04-09 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868480', 'tblTempUsageDetail_20' ) start [2025-04-09 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868480', 'tblTempUsageDetail_20' ) end [2025-04-09 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:00:24] Production.INFO: ==15640== Releasing lock... [2025-04-09 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:01:05 [end_date_ymd] => 2025-04-09 09:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:01:05' and `end` < '2025-04-09 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-09 09:01:18] Production.INFO: count ==708 [2025-04-09 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:01:05 - End Time 2025-04-09 09:01:05 [2025-04-09 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868486', 'tblTempUsageDetail_20' ) start [2025-04-09 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868486', 'tblTempUsageDetail_20' ) end [2025-04-09 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868486', 'tblTempVendorCDR_20' ) start [2025-04-09 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868486', 'tblTempVendorCDR_20' ) end [2025-04-09 09:01:18] Production.INFO: ProcessCDR(1,14868486,1,1,2) [2025-04-09 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868486', 'tblTempUsageDetail_20' ) start [2025-04-09 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868486', 'tblTempUsageDetail_20' ) end [2025-04-09 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:01:22] Production.INFO: ==15724== Releasing lock... [2025-04-09 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-09 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:02:05 [end_date_ymd] => 2025-04-09 09:02:05 [RateCDR] => 1 ) [2025-04-09 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:02:05' and `end` < '2025-04-09 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-09 09:02:18] Production.INFO: count ==715 [2025-04-09 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:02:05 - End Time 2025-04-09 09:02:05 [2025-04-09 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868491', 'tblTempUsageDetail_20' ) start [2025-04-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868491', 'tblTempUsageDetail_20' ) end [2025-04-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868491', 'tblTempVendorCDR_20' ) start [2025-04-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868491', 'tblTempVendorCDR_20' ) end [2025-04-09 09:02:19] Production.INFO: ProcessCDR(1,14868491,1,1,2) [2025-04-09 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868491', 'tblTempUsageDetail_20' ) start [2025-04-09 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868491', 'tblTempUsageDetail_20' ) end [2025-04-09 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:02:24] Production.INFO: ==15803== Releasing lock... [2025-04-09 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:02:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:03:05 [end_date_ymd] => 2025-04-09 09:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:03:05' and `end` < '2025-04-09 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-09 09:03:18] Production.INFO: count ==718 [2025-04-09 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:03:05 - End Time 2025-04-09 09:03:05 [2025-04-09 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868496', 'tblTempUsageDetail_20' ) start [2025-04-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868496', 'tblTempUsageDetail_20' ) end [2025-04-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868496', 'tblTempVendorCDR_20' ) start [2025-04-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868496', 'tblTempVendorCDR_20' ) end [2025-04-09 09:03:18] Production.INFO: ProcessCDR(1,14868496,1,1,2) [2025-04-09 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868496', 'tblTempUsageDetail_20' ) start [2025-04-09 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868496', 'tblTempUsageDetail_20' ) end [2025-04-09 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:03:21] Production.INFO: ==15873== Releasing lock... [2025-04-09 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:04:06 [end_date_ymd] => 2025-04-09 09:04:06 [RateCDR] => 1 ) [2025-04-09 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:04:06' and `end` < '2025-04-09 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:04:19] Production.INFO: count ==736 [2025-04-09 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:04:06 - End Time 2025-04-09 09:04:06 [2025-04-09 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868501', 'tblTempUsageDetail_20' ) start [2025-04-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868501', 'tblTempUsageDetail_20' ) end [2025-04-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868501', 'tblTempVendorCDR_20' ) start [2025-04-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868501', 'tblTempVendorCDR_20' ) end [2025-04-09 09:04:19] Production.INFO: ProcessCDR(1,14868501,1,1,2) [2025-04-09 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868501', 'tblTempUsageDetail_20' ) start [2025-04-09 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868501', 'tblTempUsageDetail_20' ) end [2025-04-09 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:04:24] Production.INFO: ==15948== Releasing lock... [2025-04-09 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:04:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-09 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:05:06 [end_date_ymd] => 2025-04-09 09:05:06 [RateCDR] => 1 ) [2025-04-09 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:05:06' and `end` < '2025-04-09 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:05:19] Production.INFO: count ==750 [2025-04-09 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:05:06 - End Time 2025-04-09 09:05:06 [2025-04-09 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868506', 'tblTempUsageDetail_20' ) start [2025-04-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868506', 'tblTempUsageDetail_20' ) end [2025-04-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868506', 'tblTempVendorCDR_20' ) start [2025-04-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868506', 'tblTempVendorCDR_20' ) end [2025-04-09 09:05:19] Production.INFO: ProcessCDR(1,14868506,1,1,2) [2025-04-09 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868506', 'tblTempUsageDetail_20' ) start [2025-04-09 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868506', 'tblTempUsageDetail_20' ) end [2025-04-09 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:05:24] Production.INFO: ==16027== Releasing lock... [2025-04-09 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:05:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-09 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:06:06 [end_date_ymd] => 2025-04-09 09:06:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:06:06' and `end` < '2025-04-09 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-09 09:06:18] Production.INFO: count ==760 [2025-04-09 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:06:06 - End Time 2025-04-09 09:06:06 [2025-04-09 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868511', 'tblTempUsageDetail_20' ) start [2025-04-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868511', 'tblTempUsageDetail_20' ) end [2025-04-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868511', 'tblTempVendorCDR_20' ) start [2025-04-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868511', 'tblTempVendorCDR_20' ) end [2025-04-09 09:06:19] Production.INFO: ProcessCDR(1,14868511,1,1,2) [2025-04-09 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868511', 'tblTempUsageDetail_20' ) start [2025-04-09 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868511', 'tblTempUsageDetail_20' ) end [2025-04-09 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:06:24] Production.INFO: ==16106== Releasing lock... [2025-04-09 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:06:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-09 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:07:05 [end_date_ymd] => 2025-04-09 09:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:07:05' and `end` < '2025-04-09 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-09 09:07:18] Production.INFO: count ==773 [2025-04-09 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:07:05 - End Time 2025-04-09 09:07:05 [2025-04-09 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868516', 'tblTempUsageDetail_20' ) start [2025-04-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868516', 'tblTempUsageDetail_20' ) end [2025-04-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868516', 'tblTempVendorCDR_20' ) start [2025-04-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868516', 'tblTempVendorCDR_20' ) end [2025-04-09 09:07:18] Production.INFO: ProcessCDR(1,14868516,1,1,2) [2025-04-09 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868516', 'tblTempUsageDetail_20' ) start [2025-04-09 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868516', 'tblTempUsageDetail_20' ) end [2025-04-09 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:07:23] Production.INFO: ==16176== Releasing lock... [2025-04-09 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:07:23] Production.INFO: 34 MB #Memory Used# [2025-04-09 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:08:06 [end_date_ymd] => 2025-04-09 09:08:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:08:06' and `end` < '2025-04-09 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-09 09:08:19] Production.INFO: count ==786 [2025-04-09 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:08:06 - End Time 2025-04-09 09:08:06 [2025-04-09 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868521', 'tblTempUsageDetail_20' ) start [2025-04-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868521', 'tblTempUsageDetail_20' ) end [2025-04-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868521', 'tblTempVendorCDR_20' ) start [2025-04-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868521', 'tblTempVendorCDR_20' ) end [2025-04-09 09:08:19] Production.INFO: ProcessCDR(1,14868521,1,1,2) [2025-04-09 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868521', 'tblTempUsageDetail_20' ) start [2025-04-09 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868521', 'tblTempUsageDetail_20' ) end [2025-04-09 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:08:25] Production.INFO: ==16253== Releasing lock... [2025-04-09 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:08:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-09 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:09:05 [end_date_ymd] => 2025-04-09 09:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:09:05' and `end` < '2025-04-09 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-09 09:09:18] Production.INFO: count ==795 [2025-04-09 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:09:05 - End Time 2025-04-09 09:09:05 [2025-04-09 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868526', 'tblTempUsageDetail_20' ) start [2025-04-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868526', 'tblTempUsageDetail_20' ) end [2025-04-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868526', 'tblTempVendorCDR_20' ) start [2025-04-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868526', 'tblTempVendorCDR_20' ) end [2025-04-09 09:09:18] Production.INFO: ProcessCDR(1,14868526,1,1,2) [2025-04-09 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868526', 'tblTempUsageDetail_20' ) start [2025-04-09 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868526', 'tblTempUsageDetail_20' ) end [2025-04-09 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:09:24] Production.INFO: ==16328== Releasing lock... [2025-04-09 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:09:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-09 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:10:06 [end_date_ymd] => 2025-04-09 09:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:10:06' and `end` < '2025-04-09 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-09 09:10:19] Production.INFO: count ==806 [2025-04-09 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:10:06 - End Time 2025-04-09 09:10:06 [2025-04-09 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868532', 'tblTempUsageDetail_20' ) start [2025-04-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868532', 'tblTempUsageDetail_20' ) end [2025-04-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868532', 'tblTempVendorCDR_20' ) start [2025-04-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868532', 'tblTempVendorCDR_20' ) end [2025-04-09 09:10:19] Production.INFO: ProcessCDR(1,14868532,1,1,2) [2025-04-09 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868532', 'tblTempUsageDetail_20' ) start [2025-04-09 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868532', 'tblTempUsageDetail_20' ) end [2025-04-09 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:10:24] Production.INFO: ==16402== Releasing lock... [2025-04-09 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:10:24] Production.INFO: 34 MB #Memory Used# [2025-04-09 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:11:05 [end_date_ymd] => 2025-04-09 09:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:11:05' and `end` < '2025-04-09 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-09 09:11:18] Production.INFO: count ==879 [2025-04-09 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:11:05 - End Time 2025-04-09 09:11:05 [2025-04-09 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868537', 'tblTempUsageDetail_20' ) start [2025-04-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868537', 'tblTempUsageDetail_20' ) end [2025-04-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868537', 'tblTempVendorCDR_20' ) start [2025-04-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868537', 'tblTempVendorCDR_20' ) end [2025-04-09 09:11:18] Production.INFO: ProcessCDR(1,14868537,1,1,2) [2025-04-09 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868537', 'tblTempUsageDetail_20' ) start [2025-04-09 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868537', 'tblTempUsageDetail_20' ) end [2025-04-09 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:11:23] Production.INFO: ==16478== Releasing lock... [2025-04-09 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:11:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-09 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:12:05 [end_date_ymd] => 2025-04-09 09:12:05 [RateCDR] => 1 ) [2025-04-09 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:12:05' and `end` < '2025-04-09 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:12:18] Production.INFO: count ==883 [2025-04-09 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:12:05 - End Time 2025-04-09 09:12:05 [2025-04-09 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868542', 'tblTempUsageDetail_20' ) start [2025-04-09 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868542', 'tblTempUsageDetail_20' ) end [2025-04-09 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868542', 'tblTempVendorCDR_20' ) start [2025-04-09 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868542', 'tblTempVendorCDR_20' ) end [2025-04-09 09:12:19] Production.INFO: ProcessCDR(1,14868542,1,1,2) [2025-04-09 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868542', 'tblTempUsageDetail_20' ) start [2025-04-09 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868542', 'tblTempUsageDetail_20' ) end [2025-04-09 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:12:24] Production.INFO: ==16549== Releasing lock... [2025-04-09 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:12:24] Production.INFO: 35 MB #Memory Used# [2025-04-09 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:13:05 [end_date_ymd] => 2025-04-09 09:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:13:05' and `end` < '2025-04-09 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-09 09:13:18] Production.INFO: count ==895 [2025-04-09 09:13:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:13:05 - End Time 2025-04-09 09:13:05 [2025-04-09 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868547', 'tblTempUsageDetail_20' ) start [2025-04-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868547', 'tblTempUsageDetail_20' ) end [2025-04-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868547', 'tblTempVendorCDR_20' ) start [2025-04-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868547', 'tblTempVendorCDR_20' ) end [2025-04-09 09:13:19] Production.INFO: ProcessCDR(1,14868547,1,1,2) [2025-04-09 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868547', 'tblTempUsageDetail_20' ) start [2025-04-09 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868547', 'tblTempUsageDetail_20' ) end [2025-04-09 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:13:24] Production.INFO: ==16623== Releasing lock... [2025-04-09 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:13:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-09 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:14:05 [end_date_ymd] => 2025-04-09 09:14:05 [RateCDR] => 1 ) [2025-04-09 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:14:05' and `end` < '2025-04-09 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:14:18] Production.INFO: count ==907 [2025-04-09 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:14:05 - End Time 2025-04-09 09:14:05 [2025-04-09 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868552', 'tblTempUsageDetail_20' ) start [2025-04-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868552', 'tblTempUsageDetail_20' ) end [2025-04-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868552', 'tblTempVendorCDR_20' ) start [2025-04-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868552', 'tblTempVendorCDR_20' ) end [2025-04-09 09:14:18] Production.INFO: ProcessCDR(1,14868552,1,1,2) [2025-04-09 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868552', 'tblTempUsageDetail_20' ) start [2025-04-09 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868552', 'tblTempUsageDetail_20' ) end [2025-04-09 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:14:24] Production.INFO: ==16738== Releasing lock... [2025-04-09 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:14:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:15:05 [end_date_ymd] => 2025-04-09 09:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:15:05' and `end` < '2025-04-09 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-09 09:15:18] Production.INFO: count ==926 [2025-04-09 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:15:05 - End Time 2025-04-09 09:15:05 [2025-04-09 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868557', 'tblTempUsageDetail_20' ) start [2025-04-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868557', 'tblTempUsageDetail_20' ) end [2025-04-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868557', 'tblTempVendorCDR_20' ) start [2025-04-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868557', 'tblTempVendorCDR_20' ) end [2025-04-09 09:15:18] Production.INFO: ProcessCDR(1,14868557,1,1,2) [2025-04-09 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868557', 'tblTempUsageDetail_20' ) start [2025-04-09 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868557', 'tblTempUsageDetail_20' ) end [2025-04-09 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:15:24] Production.INFO: ==16809== Releasing lock... [2025-04-09 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:15:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-09 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:16:06 [end_date_ymd] => 2025-04-09 09:16:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:16:06' and `end` < '2025-04-09 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-09 09:16:19] Production.INFO: count ==927 [2025-04-09 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:16:06 - End Time 2025-04-09 09:16:06 [2025-04-09 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868562', 'tblTempUsageDetail_20' ) start [2025-04-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868562', 'tblTempUsageDetail_20' ) end [2025-04-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868562', 'tblTempVendorCDR_20' ) start [2025-04-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868562', 'tblTempVendorCDR_20' ) end [2025-04-09 09:16:19] Production.INFO: ProcessCDR(1,14868562,1,1,2) [2025-04-09 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868562', 'tblTempUsageDetail_20' ) start [2025-04-09 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868562', 'tblTempUsageDetail_20' ) end [2025-04-09 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:16:24] Production.INFO: ==16883== Releasing lock... [2025-04-09 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:16:24] Production.INFO: 36 MB #Memory Used# [2025-04-09 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:17:05 [end_date_ymd] => 2025-04-09 09:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:17:05' and `end` < '2025-04-09 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-09 09:17:18] Production.INFO: count ==947 [2025-04-09 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:17:05 - End Time 2025-04-09 09:17:05 [2025-04-09 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868565', 'tblTempUsageDetail_20' ) start [2025-04-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868565', 'tblTempUsageDetail_20' ) end [2025-04-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868565', 'tblTempVendorCDR_20' ) start [2025-04-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868565', 'tblTempVendorCDR_20' ) end [2025-04-09 09:17:18] Production.INFO: ProcessCDR(1,14868565,1,1,2) [2025-04-09 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868565', 'tblTempUsageDetail_20' ) start [2025-04-09 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868565', 'tblTempUsageDetail_20' ) end [2025-04-09 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:17:23] Production.INFO: ==16957== Releasing lock... [2025-04-09 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:17:23] Production.INFO: 36 MB #Memory Used# [2025-04-09 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:18:06 [end_date_ymd] => 2025-04-09 09:18:06 [RateCDR] => 1 ) [2025-04-09 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:18:06' and `end` < '2025-04-09 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:18:19] Production.INFO: count ==961 [2025-04-09 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:18:06 - End Time 2025-04-09 09:18:06 [2025-04-09 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868572', 'tblTempUsageDetail_20' ) start [2025-04-09 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868572', 'tblTempUsageDetail_20' ) end [2025-04-09 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868572', 'tblTempVendorCDR_20' ) start [2025-04-09 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868572', 'tblTempVendorCDR_20' ) end [2025-04-09 09:18:19] Production.INFO: ProcessCDR(1,14868572,1,1,2) [2025-04-09 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868572', 'tblTempUsageDetail_20' ) start [2025-04-09 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868572', 'tblTempUsageDetail_20' ) end [2025-04-09 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:18:24] Production.INFO: ==17041== Releasing lock... [2025-04-09 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:18:24] Production.INFO: 36 MB #Memory Used# [2025-04-09 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:19:06 [end_date_ymd] => 2025-04-09 09:19:06 [RateCDR] => 1 ) [2025-04-09 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:19:06' and `end` < '2025-04-09 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:19:19] Production.INFO: count ==963 [2025-04-09 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:19:06 - End Time 2025-04-09 09:19:06 [2025-04-09 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868577', 'tblTempUsageDetail_20' ) start [2025-04-09 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868577', 'tblTempUsageDetail_20' ) end [2025-04-09 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868577', 'tblTempVendorCDR_20' ) start [2025-04-09 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868577', 'tblTempVendorCDR_20' ) end [2025-04-09 09:19:19] Production.INFO: ProcessCDR(1,14868577,1,1,2) [2025-04-09 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868577', 'tblTempUsageDetail_20' ) start [2025-04-09 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868577', 'tblTempUsageDetail_20' ) end [2025-04-09 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:19:25] Production.INFO: ==17115== Releasing lock... [2025-04-09 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:19:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-09 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:20:06 [end_date_ymd] => 2025-04-09 09:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:20:06' and `end` < '2025-04-09 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-09 09:20:19] Production.INFO: count ==986 [2025-04-09 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:20:06 - End Time 2025-04-09 09:20:06 [2025-04-09 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868583', 'tblTempUsageDetail_20' ) start [2025-04-09 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868583', 'tblTempUsageDetail_20' ) end [2025-04-09 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868583', 'tblTempVendorCDR_20' ) start [2025-04-09 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868583', 'tblTempVendorCDR_20' ) end [2025-04-09 09:20:19] Production.INFO: ProcessCDR(1,14868583,1,1,2) [2025-04-09 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868583', 'tblTempUsageDetail_20' ) start [2025-04-09 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868583', 'tblTempUsageDetail_20' ) end [2025-04-09 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:20:25] Production.INFO: ==17191== Releasing lock... [2025-04-09 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:20:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-09 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:21:05 [end_date_ymd] => 2025-04-09 09:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:21:05' and `end` < '2025-04-09 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-09 09:21:18] Production.INFO: count ==1044 [2025-04-09 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:21:05 - End Time 2025-04-09 09:21:05 [2025-04-09 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868588', 'tblTempUsageDetail_20' ) start [2025-04-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868588', 'tblTempUsageDetail_20' ) end [2025-04-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868588', 'tblTempVendorCDR_20' ) start [2025-04-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868588', 'tblTempVendorCDR_20' ) end [2025-04-09 09:21:19] Production.INFO: ProcessCDR(1,14868588,1,1,2) [2025-04-09 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868588', 'tblTempUsageDetail_20' ) start [2025-04-09 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868588', 'tblTempUsageDetail_20' ) end [2025-04-09 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:21:24] Production.INFO: ==17269== Releasing lock... [2025-04-09 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:21:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:22:05 [end_date_ymd] => 2025-04-09 09:22:05 [RateCDR] => 1 ) [2025-04-09 09: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 06:22:05' and `end` < '2025-04-09 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-09 09:22:18] Production.INFO: count ==1049 [2025-04-09 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:22:05 - End Time 2025-04-09 09:22:05 [2025-04-09 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868593', 'tblTempUsageDetail_20' ) start [2025-04-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868593', 'tblTempUsageDetail_20' ) end [2025-04-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868593', 'tblTempVendorCDR_20' ) start [2025-04-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868593', 'tblTempVendorCDR_20' ) end [2025-04-09 09:22:19] Production.INFO: ProcessCDR(1,14868593,1,1,2) [2025-04-09 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868593', 'tblTempUsageDetail_20' ) start [2025-04-09 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868593', 'tblTempUsageDetail_20' ) end [2025-04-09 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:22:24] Production.INFO: ==17345== Releasing lock... [2025-04-09 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:22:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:23:05 [end_date_ymd] => 2025-04-09 09:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:23:05' and `end` < '2025-04-09 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-09 09:23:18] Production.INFO: count ==1069 [2025-04-09 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:23:05 - End Time 2025-04-09 09:23:05 [2025-04-09 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868598', 'tblTempUsageDetail_20' ) start [2025-04-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868598', 'tblTempUsageDetail_20' ) end [2025-04-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868598', 'tblTempVendorCDR_20' ) start [2025-04-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868598', 'tblTempVendorCDR_20' ) end [2025-04-09 09:23:18] Production.INFO: ProcessCDR(1,14868598,1,1,2) [2025-04-09 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868598', 'tblTempUsageDetail_20' ) start [2025-04-09 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868598', 'tblTempUsageDetail_20' ) end [2025-04-09 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:23:24] Production.INFO: ==17419== Releasing lock... [2025-04-09 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:24:05 [end_date_ymd] => 2025-04-09 09:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:24:05' and `end` < '2025-04-09 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-09 09:24:18] Production.INFO: count ==1101 [2025-04-09 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:24:05 - End Time 2025-04-09 09:24:05 [2025-04-09 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868603', 'tblTempUsageDetail_20' ) start [2025-04-09 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868603', 'tblTempUsageDetail_20' ) end [2025-04-09 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868603', 'tblTempVendorCDR_20' ) start [2025-04-09 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868603', 'tblTempVendorCDR_20' ) end [2025-04-09 09:24:18] Production.INFO: ProcessCDR(1,14868603,1,1,2) [2025-04-09 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868603', 'tblTempUsageDetail_20' ) start [2025-04-09 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868603', 'tblTempUsageDetail_20' ) end [2025-04-09 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:24:23] Production.INFO: ==17492== Releasing lock... [2025-04-09 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:24:23] Production.INFO: 37 MB #Memory Used# [2025-04-09 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:25:05 [end_date_ymd] => 2025-04-09 09:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:25:05' and `end` < '2025-04-09 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-09 09:25:18] Production.INFO: count ==1117 [2025-04-09 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:25:05 - End Time 2025-04-09 09:25:05 [2025-04-09 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868608', 'tblTempUsageDetail_20' ) start [2025-04-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868608', 'tblTempUsageDetail_20' ) end [2025-04-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868608', 'tblTempVendorCDR_20' ) start [2025-04-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868608', 'tblTempVendorCDR_20' ) end [2025-04-09 09:25:19] Production.INFO: ProcessCDR(1,14868608,1,1,2) [2025-04-09 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868608', 'tblTempUsageDetail_20' ) start [2025-04-09 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868608', 'tblTempUsageDetail_20' ) end [2025-04-09 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:25:24] Production.INFO: ==17569== Releasing lock... [2025-04-09 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:25:24] Production.INFO: 37 MB #Memory Used# [2025-04-09 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:26:05 [end_date_ymd] => 2025-04-09 09:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:26:05' and `end` < '2025-04-09 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-09 09:26:18] Production.INFO: count ==1120 [2025-04-09 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:26:05 - End Time 2025-04-09 09:26:05 [2025-04-09 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868613', 'tblTempUsageDetail_20' ) start [2025-04-09 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868613', 'tblTempUsageDetail_20' ) end [2025-04-09 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868613', 'tblTempVendorCDR_20' ) start [2025-04-09 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868613', 'tblTempVendorCDR_20' ) end [2025-04-09 09:26:18] Production.INFO: ProcessCDR(1,14868613,1,1,2) [2025-04-09 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868613', 'tblTempUsageDetail_20' ) start [2025-04-09 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868613', 'tblTempUsageDetail_20' ) end [2025-04-09 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:26:23] Production.INFO: ==17645== Releasing lock... [2025-04-09 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:26:23] Production.INFO: 37 MB #Memory Used# [2025-04-09 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:27:05 [end_date_ymd] => 2025-04-09 09:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:27:05' and `end` < '2025-04-09 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-09 09:27:18] Production.INFO: count ==1151 [2025-04-09 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:27:05 - End Time 2025-04-09 09:27:05 [2025-04-09 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868618', 'tblTempUsageDetail_20' ) start [2025-04-09 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868618', 'tblTempUsageDetail_20' ) end [2025-04-09 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868618', 'tblTempVendorCDR_20' ) start [2025-04-09 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868618', 'tblTempVendorCDR_20' ) end [2025-04-09 09:27:19] Production.INFO: ProcessCDR(1,14868618,1,1,2) [2025-04-09 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868618', 'tblTempUsageDetail_20' ) start [2025-04-09 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868618', 'tblTempUsageDetail_20' ) end [2025-04-09 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:27:24] Production.INFO: ==17720== Releasing lock... [2025-04-09 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:27:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-09 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:28:05 [end_date_ymd] => 2025-04-09 09:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:28:05' and `end` < '2025-04-09 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-09 09:28:18] Production.INFO: count ==1166 [2025-04-09 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:28:05 - End Time 2025-04-09 09:28:05 [2025-04-09 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868623', 'tblTempUsageDetail_20' ) start [2025-04-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868623', 'tblTempUsageDetail_20' ) end [2025-04-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868623', 'tblTempVendorCDR_20' ) start [2025-04-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868623', 'tblTempVendorCDR_20' ) end [2025-04-09 09:28:18] Production.INFO: ProcessCDR(1,14868623,1,1,2) [2025-04-09 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868623', 'tblTempUsageDetail_20' ) start [2025-04-09 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868623', 'tblTempUsageDetail_20' ) end [2025-04-09 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:28:24] Production.INFO: ==17793== Releasing lock... [2025-04-09 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:28:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:29:05 [end_date_ymd] => 2025-04-09 09:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:29:05' and `end` < '2025-04-09 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-09 09:29:18] Production.INFO: count ==1180 [2025-04-09 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:29:05 - End Time 2025-04-09 09:29:05 [2025-04-09 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868628', 'tblTempUsageDetail_20' ) start [2025-04-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868628', 'tblTempUsageDetail_20' ) end [2025-04-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868628', 'tblTempVendorCDR_20' ) start [2025-04-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868628', 'tblTempVendorCDR_20' ) end [2025-04-09 09:29:18] Production.INFO: ProcessCDR(1,14868628,1,1,2) [2025-04-09 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868628', 'tblTempUsageDetail_20' ) start [2025-04-09 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868628', 'tblTempUsageDetail_20' ) end [2025-04-09 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:29:24] Production.INFO: ==17866== Releasing lock... [2025-04-09 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-09 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:30:06 [end_date_ymd] => 2025-04-09 09:30:06 [RateCDR] => 1 ) [2025-04-09 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:30:06' and `end` < '2025-04-09 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:30:19] Production.INFO: count ==1192 [2025-04-09 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:30:06 - End Time 2025-04-09 09:30:06 [2025-04-09 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868633', 'tblTempUsageDetail_20' ) start [2025-04-09 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868633', 'tblTempUsageDetail_20' ) end [2025-04-09 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868633', 'tblTempVendorCDR_20' ) start [2025-04-09 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868633', 'tblTempVendorCDR_20' ) end [2025-04-09 09:30:19] Production.INFO: ProcessCDR(1,14868633,1,1,2) [2025-04-09 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868633', 'tblTempUsageDetail_20' ) start [2025-04-09 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868633', 'tblTempUsageDetail_20' ) end [2025-04-09 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:30:24] Production.INFO: ==17985== Releasing lock... [2025-04-09 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:30:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:31:05 [end_date_ymd] => 2025-04-09 09:31:05 [RateCDR] => 1 ) [2025-04-09 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:31:05' and `end` < '2025-04-09 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:31:18] Production.INFO: count ==1269 [2025-04-09 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:31:05 - End Time 2025-04-09 09:31:05 [2025-04-09 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868639', 'tblTempUsageDetail_20' ) start [2025-04-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868639', 'tblTempUsageDetail_20' ) end [2025-04-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868639', 'tblTempVendorCDR_20' ) start [2025-04-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868639', 'tblTempVendorCDR_20' ) end [2025-04-09 09:31:19] Production.INFO: ProcessCDR(1,14868639,1,1,2) [2025-04-09 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868639', 'tblTempUsageDetail_20' ) start [2025-04-09 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868639', 'tblTempUsageDetail_20' ) end [2025-04-09 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:31:24] Production.INFO: ==18091== Releasing lock... [2025-04-09 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:31:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:32:05 [end_date_ymd] => 2025-04-09 09:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:32:05' and `end` < '2025-04-09 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-09 09:32:18] Production.INFO: count ==1285 [2025-04-09 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:32:05 - End Time 2025-04-09 09:32:05 [2025-04-09 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868644', 'tblTempUsageDetail_20' ) start [2025-04-09 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868644', 'tblTempUsageDetail_20' ) end [2025-04-09 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868644', 'tblTempVendorCDR_20' ) start [2025-04-09 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868644', 'tblTempVendorCDR_20' ) end [2025-04-09 09:32:19] Production.INFO: ProcessCDR(1,14868644,1,1,2) [2025-04-09 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868644', 'tblTempUsageDetail_20' ) start [2025-04-09 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868644', 'tblTempUsageDetail_20' ) end [2025-04-09 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:32:24] Production.INFO: ==18199== Releasing lock... [2025-04-09 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:32:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:33:05 [end_date_ymd] => 2025-04-09 09:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:33:05' and `end` < '2025-04-09 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-09 09:33:19] Production.INFO: count ==1301 [2025-04-09 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:33:05 - End Time 2025-04-09 09:33:05 [2025-04-09 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868649', 'tblTempUsageDetail_20' ) start [2025-04-09 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868649', 'tblTempUsageDetail_20' ) end [2025-04-09 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868649', 'tblTempVendorCDR_20' ) start [2025-04-09 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868649', 'tblTempVendorCDR_20' ) end [2025-04-09 09:33:19] Production.INFO: ProcessCDR(1,14868649,1,1,2) [2025-04-09 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868649', 'tblTempUsageDetail_20' ) start [2025-04-09 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868649', 'tblTempUsageDetail_20' ) end [2025-04-09 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:33:24] Production.INFO: ==18312== Releasing lock... [2025-04-09 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:33:24] Production.INFO: 38 MB #Memory Used# [2025-04-09 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:34:05 [end_date_ymd] => 2025-04-09 09:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:34:05' and `end` < '2025-04-09 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-09 09:34:18] Production.INFO: count ==1323 [2025-04-09 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:34:05 - End Time 2025-04-09 09:34:05 [2025-04-09 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868654', 'tblTempUsageDetail_20' ) start [2025-04-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868654', 'tblTempUsageDetail_20' ) end [2025-04-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868654', 'tblTempVendorCDR_20' ) start [2025-04-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868654', 'tblTempVendorCDR_20' ) end [2025-04-09 09:34:19] Production.INFO: ProcessCDR(1,14868654,1,1,2) [2025-04-09 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868654', 'tblTempUsageDetail_20' ) start [2025-04-09 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868654', 'tblTempUsageDetail_20' ) end [2025-04-09 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:34:24] Production.INFO: ==18424== Releasing lock... [2025-04-09 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:34:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:35:05 [end_date_ymd] => 2025-04-09 09:35:05 [RateCDR] => 1 ) [2025-04-09 09: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 06:35:05' and `end` < '2025-04-09 09: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-09 09:35:18] Production.INFO: count ==1402 [2025-04-09 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:35:05 - End Time 2025-04-09 09:35:05 [2025-04-09 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868659', 'tblTempUsageDetail_20' ) start [2025-04-09 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868659', 'tblTempUsageDetail_20' ) end [2025-04-09 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868659', 'tblTempVendorCDR_20' ) start [2025-04-09 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868659', 'tblTempVendorCDR_20' ) end [2025-04-09 09:35:19] Production.INFO: ProcessCDR(1,14868659,1,1,2) [2025-04-09 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868659', 'tblTempUsageDetail_20' ) start [2025-04-09 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868659', 'tblTempUsageDetail_20' ) end [2025-04-09 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:35:23] Production.INFO: ==18539== Releasing lock... [2025-04-09 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-09 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:36:06 [end_date_ymd] => 2025-04-09 09:36:06 [RateCDR] => 1 ) [2025-04-09 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:36:06' and `end` < '2025-04-09 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:36:19] Production.INFO: count ==1409 [2025-04-09 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:36:06 - End Time 2025-04-09 09:36:06 [2025-04-09 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868664', 'tblTempUsageDetail_20' ) start [2025-04-09 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868664', 'tblTempUsageDetail_20' ) end [2025-04-09 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868664', 'tblTempVendorCDR_20' ) start [2025-04-09 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868664', 'tblTempVendorCDR_20' ) end [2025-04-09 09:36:19] Production.INFO: ProcessCDR(1,14868664,1,1,2) [2025-04-09 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868664', 'tblTempUsageDetail_20' ) start [2025-04-09 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868664', 'tblTempUsageDetail_20' ) end [2025-04-09 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:36:24] Production.INFO: ==18649== Releasing lock... [2025-04-09 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:37:06 [end_date_ymd] => 2025-04-09 09:37:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:37:06' and `end` < '2025-04-09 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-09 09:37:18] Production.INFO: count ==1420 [2025-04-09 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:37:06 - End Time 2025-04-09 09:37:06 [2025-04-09 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868669', 'tblTempUsageDetail_20' ) start [2025-04-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868669', 'tblTempUsageDetail_20' ) end [2025-04-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868669', 'tblTempVendorCDR_20' ) start [2025-04-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868669', 'tblTempVendorCDR_20' ) end [2025-04-09 09:37:19] Production.INFO: ProcessCDR(1,14868669,1,1,2) [2025-04-09 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868669', 'tblTempUsageDetail_20' ) start [2025-04-09 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868669', 'tblTempUsageDetail_20' ) end [2025-04-09 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:37:25] Production.INFO: ==18765== Releasing lock... [2025-04-09 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:37:25] Production.INFO: 40 MB #Memory Used# [2025-04-09 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:38:06 [end_date_ymd] => 2025-04-09 09:38:06 [RateCDR] => 1 ) [2025-04-09 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:38:06' and `end` < '2025-04-09 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:38:19] Production.INFO: count ==1431 [2025-04-09 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:38:06 - End Time 2025-04-09 09:38:06 [2025-04-09 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868674', 'tblTempUsageDetail_20' ) start [2025-04-09 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868674', 'tblTempUsageDetail_20' ) end [2025-04-09 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868674', 'tblTempVendorCDR_20' ) start [2025-04-09 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868674', 'tblTempVendorCDR_20' ) end [2025-04-09 09:38:20] Production.INFO: ProcessCDR(1,14868674,1,1,2) [2025-04-09 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868674', 'tblTempUsageDetail_20' ) start [2025-04-09 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868674', 'tblTempUsageDetail_20' ) end [2025-04-09 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:38:25] Production.INFO: ==18879== Releasing lock... [2025-04-09 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:38:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-09 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:39:05 [end_date_ymd] => 2025-04-09 09:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:39:05' and `end` < '2025-04-09 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-09 09:39:18] Production.INFO: count ==1445 [2025-04-09 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:39:05 - End Time 2025-04-09 09:39:05 [2025-04-09 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868679', 'tblTempUsageDetail_20' ) start [2025-04-09 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868679', 'tblTempUsageDetail_20' ) end [2025-04-09 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868679', 'tblTempVendorCDR_20' ) start [2025-04-09 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868679', 'tblTempVendorCDR_20' ) end [2025-04-09 09:39:19] Production.INFO: ProcessCDR(1,14868679,1,1,2) [2025-04-09 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868679', 'tblTempUsageDetail_20' ) start [2025-04-09 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868679', 'tblTempUsageDetail_20' ) end [2025-04-09 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:39:24] Production.INFO: ==18995== Releasing lock... [2025-04-09 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:39:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-09 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:40:06 [end_date_ymd] => 2025-04-09 09:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 06:40:06' and `end` < '2025-04-09 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-09 09:40:19] Production.INFO: count ==1468 [2025-04-09 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:40:06 - End Time 2025-04-09 09:40:06 [2025-04-09 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868685', 'tblTempUsageDetail_20' ) start [2025-04-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868685', 'tblTempUsageDetail_20' ) end [2025-04-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868685', 'tblTempVendorCDR_20' ) start [2025-04-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868685', 'tblTempVendorCDR_20' ) end [2025-04-09 09:40:19] Production.INFO: ProcessCDR(1,14868685,1,1,2) [2025-04-09 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868685', 'tblTempUsageDetail_20' ) start [2025-04-09 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868685', 'tblTempUsageDetail_20' ) end [2025-04-09 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:40:24] Production.INFO: ==19110== Releasing lock... [2025-04-09 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-09 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:41:05 [end_date_ymd] => 2025-04-09 09:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:41:05' and `end` < '2025-04-09 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-09 09:41:18] Production.INFO: count ==1566 [2025-04-09 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:41:05 - End Time 2025-04-09 09:41:05 [2025-04-09 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868690', 'tblTempUsageDetail_20' ) start [2025-04-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868690', 'tblTempUsageDetail_20' ) end [2025-04-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868690', 'tblTempVendorCDR_20' ) start [2025-04-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868690', 'tblTempVendorCDR_20' ) end [2025-04-09 09:41:19] Production.INFO: ProcessCDR(1,14868690,1,1,2) [2025-04-09 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868690', 'tblTempUsageDetail_20' ) start [2025-04-09 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868690', 'tblTempUsageDetail_20' ) end [2025-04-09 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:41:24] Production.INFO: ==19221== Releasing lock... [2025-04-09 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:41:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-09 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:42:05 [end_date_ymd] => 2025-04-09 09:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:42:05' and `end` < '2025-04-09 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-09 09:42:19] Production.INFO: count ==1576 [2025-04-09 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:42:05 - End Time 2025-04-09 09:42:05 [2025-04-09 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868695', 'tblTempUsageDetail_20' ) start [2025-04-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868695', 'tblTempUsageDetail_20' ) end [2025-04-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868695', 'tblTempVendorCDR_20' ) start [2025-04-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868695', 'tblTempVendorCDR_20' ) end [2025-04-09 09:42:19] Production.INFO: ProcessCDR(1,14868695,1,1,2) [2025-04-09 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868695', 'tblTempUsageDetail_20' ) start [2025-04-09 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868695', 'tblTempUsageDetail_20' ) end [2025-04-09 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:42:25] Production.INFO: ==19331== Releasing lock... [2025-04-09 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:42:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-09 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:43:05 [end_date_ymd] => 2025-04-09 09:43:05 [RateCDR] => 1 ) [2025-04-09 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:43:05' and `end` < '2025-04-09 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:43:18] Production.INFO: count ==1581 [2025-04-09 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:43:05 - End Time 2025-04-09 09:43:05 [2025-04-09 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868700', 'tblTempUsageDetail_20' ) start [2025-04-09 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868700', 'tblTempUsageDetail_20' ) end [2025-04-09 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868700', 'tblTempVendorCDR_20' ) start [2025-04-09 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868700', 'tblTempVendorCDR_20' ) end [2025-04-09 09:43:18] Production.INFO: ProcessCDR(1,14868700,1,1,2) [2025-04-09 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868700', 'tblTempUsageDetail_20' ) start [2025-04-09 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868700', 'tblTempUsageDetail_20' ) end [2025-04-09 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:43:23] Production.INFO: ==19436== Releasing lock... [2025-04-09 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:43:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-09 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:44:05 [end_date_ymd] => 2025-04-09 09:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:44:05' and `end` < '2025-04-09 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-09 09:44:18] Production.INFO: count ==1594 [2025-04-09 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:44:05 - End Time 2025-04-09 09:44:05 [2025-04-09 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868705', 'tblTempUsageDetail_20' ) start [2025-04-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868705', 'tblTempUsageDetail_20' ) end [2025-04-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868705', 'tblTempVendorCDR_20' ) start [2025-04-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868705', 'tblTempVendorCDR_20' ) end [2025-04-09 09:44:18] Production.INFO: ProcessCDR(1,14868705,1,1,2) [2025-04-09 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868705', 'tblTempUsageDetail_20' ) start [2025-04-09 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868705', 'tblTempUsageDetail_20' ) end [2025-04-09 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:44:23] Production.INFO: ==19548== Releasing lock... [2025-04-09 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-09 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:45:05 [end_date_ymd] => 2025-04-09 09:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:45:05' and `end` < '2025-04-09 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-09 09:45:18] Production.INFO: count ==1619 [2025-04-09 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:45:05 - End Time 2025-04-09 09:45:05 [2025-04-09 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868710', 'tblTempUsageDetail_20' ) start [2025-04-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868710', 'tblTempUsageDetail_20' ) end [2025-04-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868710', 'tblTempVendorCDR_20' ) start [2025-04-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868710', 'tblTempVendorCDR_20' ) end [2025-04-09 09:45:19] Production.INFO: ProcessCDR(1,14868710,1,1,2) [2025-04-09 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868710', 'tblTempUsageDetail_20' ) start [2025-04-09 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868710', 'tblTempUsageDetail_20' ) end [2025-04-09 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:45:24] Production.INFO: ==19703== Releasing lock... [2025-04-09 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-09 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:46:06 [end_date_ymd] => 2025-04-09 09:46:06 [RateCDR] => 1 ) [2025-04-09 09: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-09 06:46:06' and `end` < '2025-04-09 09: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-09 09:46:19] Production.INFO: count ==1634 [2025-04-09 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:46:06 - End Time 2025-04-09 09:46:06 [2025-04-09 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868715', 'tblTempUsageDetail_20' ) start [2025-04-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868715', 'tblTempUsageDetail_20' ) end [2025-04-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868715', 'tblTempVendorCDR_20' ) start [2025-04-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868715', 'tblTempVendorCDR_20' ) end [2025-04-09 09:46:19] Production.INFO: ProcessCDR(1,14868715,1,1,2) [2025-04-09 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868715', 'tblTempUsageDetail_20' ) start [2025-04-09 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868715', 'tblTempUsageDetail_20' ) end [2025-04-09 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:46:25] Production.INFO: ==19813== Releasing lock... [2025-04-09 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:46:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-09 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:47:05 [end_date_ymd] => 2025-04-09 09:47:05 [RateCDR] => 1 ) [2025-04-09 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:47:05' and `end` < '2025-04-09 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:47:18] Production.INFO: count ==1643 [2025-04-09 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:47:05 - End Time 2025-04-09 09:47:05 [2025-04-09 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868720', 'tblTempUsageDetail_20' ) start [2025-04-09 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868720', 'tblTempUsageDetail_20' ) end [2025-04-09 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868720', 'tblTempVendorCDR_20' ) start [2025-04-09 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868720', 'tblTempVendorCDR_20' ) end [2025-04-09 09:47:19] Production.INFO: ProcessCDR(1,14868720,1,1,2) [2025-04-09 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868720', 'tblTempUsageDetail_20' ) start [2025-04-09 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868720', 'tblTempUsageDetail_20' ) end [2025-04-09 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:47:24] Production.INFO: ==19932== Releasing lock... [2025-04-09 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-09 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:48:06 [end_date_ymd] => 2025-04-09 09:48:06 [RateCDR] => 1 ) [2025-04-09 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:48:06' and `end` < '2025-04-09 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:48:19] Production.INFO: count ==1660 [2025-04-09 09:48:20] Production.ERROR: pbx CDR StartTime 2025-04-09 06:48:06 - End Time 2025-04-09 09:48:06 [2025-04-09 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868725', 'tblTempUsageDetail_20' ) start [2025-04-09 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868725', 'tblTempUsageDetail_20' ) end [2025-04-09 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868725', 'tblTempVendorCDR_20' ) start [2025-04-09 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868725', 'tblTempVendorCDR_20' ) end [2025-04-09 09:48:20] Production.INFO: ProcessCDR(1,14868725,1,1,2) [2025-04-09 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868725', 'tblTempUsageDetail_20' ) start [2025-04-09 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868725', 'tblTempUsageDetail_20' ) end [2025-04-09 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:48:25] Production.INFO: ==20044== Releasing lock... [2025-04-09 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:48:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-09 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:49:05 [end_date_ymd] => 2025-04-09 09:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:49:05' and `end` < '2025-04-09 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-09 09:49:18] Production.INFO: count ==1686 [2025-04-09 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:49:05 - End Time 2025-04-09 09:49:05 [2025-04-09 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868730', 'tblTempUsageDetail_20' ) start [2025-04-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868730', 'tblTempUsageDetail_20' ) end [2025-04-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868730', 'tblTempVendorCDR_20' ) start [2025-04-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868730', 'tblTempVendorCDR_20' ) end [2025-04-09 09:49:18] Production.INFO: ProcessCDR(1,14868730,1,1,2) [2025-04-09 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868730', 'tblTempUsageDetail_20' ) start [2025-04-09 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868730', 'tblTempUsageDetail_20' ) end [2025-04-09 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:49:24] Production.INFO: ==20150== Releasing lock... [2025-04-09 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:49:24] Production.INFO: 41 MB #Memory Used# [2025-04-09 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:50:07 [end_date_ymd] => 2025-04-09 09:50:07 [RateCDR] => 1 ) [2025-04-09 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:50:07' and `end` < '2025-04-09 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:50:20] Production.INFO: count ==1703 [2025-04-09 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-09 06:50:07 - End Time 2025-04-09 09:50:07 [2025-04-09 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868736', 'tblTempUsageDetail_20' ) start [2025-04-09 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868736', 'tblTempUsageDetail_20' ) end [2025-04-09 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868736', 'tblTempVendorCDR_20' ) start [2025-04-09 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868736', 'tblTempVendorCDR_20' ) end [2025-04-09 09:50:20] Production.INFO: ProcessCDR(1,14868736,1,1,2) [2025-04-09 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868736', 'tblTempUsageDetail_20' ) start [2025-04-09 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868736', 'tblTempUsageDetail_20' ) end [2025-04-09 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:50:25] Production.INFO: ==20274== Releasing lock... [2025-04-09 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:50:25] Production.INFO: 41 MB #Memory Used# [2025-04-09 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:51:05 [end_date_ymd] => 2025-04-09 09:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:51:05' and `end` < '2025-04-09 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-09 09:51:18] Production.INFO: count ==1818 [2025-04-09 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:51:05 - End Time 2025-04-09 09:51:05 [2025-04-09 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868741', 'tblTempUsageDetail_20' ) start [2025-04-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868741', 'tblTempUsageDetail_20' ) end [2025-04-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868741', 'tblTempVendorCDR_20' ) start [2025-04-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868741', 'tblTempVendorCDR_20' ) end [2025-04-09 09:51:18] Production.INFO: ProcessCDR(1,14868741,1,1,2) [2025-04-09 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868741', 'tblTempUsageDetail_20' ) start [2025-04-09 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868741', 'tblTempUsageDetail_20' ) end [2025-04-09 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:51:24] Production.INFO: ==20387== Releasing lock... [2025-04-09 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:51:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:52:05 [end_date_ymd] => 2025-04-09 09:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:52:05' and `end` < '2025-04-09 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-09 09:52:18] Production.INFO: count ==1842 [2025-04-09 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:52:05 - End Time 2025-04-09 09:52:05 [2025-04-09 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868746', 'tblTempUsageDetail_20' ) start [2025-04-09 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868746', 'tblTempUsageDetail_20' ) end [2025-04-09 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868746', 'tblTempVendorCDR_20' ) start [2025-04-09 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868746', 'tblTempVendorCDR_20' ) end [2025-04-09 09:52:19] Production.INFO: ProcessCDR(1,14868746,1,1,2) [2025-04-09 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868746', 'tblTempUsageDetail_20' ) start [2025-04-09 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868746', 'tblTempUsageDetail_20' ) end [2025-04-09 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:52:24] Production.INFO: ==20499== Releasing lock... [2025-04-09 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:52:24] Production.INFO: 42 MB #Memory Used# [2025-04-09 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:53:05 [end_date_ymd] => 2025-04-09 09:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:53:05' and `end` < '2025-04-09 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-09 09:53:18] Production.INFO: count ==1854 [2025-04-09 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 06:53:05 - End Time 2025-04-09 09:53:05 [2025-04-09 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868751', 'tblTempUsageDetail_20' ) start [2025-04-09 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868751', 'tblTempUsageDetail_20' ) end [2025-04-09 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868751', 'tblTempVendorCDR_20' ) start [2025-04-09 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868751', 'tblTempVendorCDR_20' ) end [2025-04-09 09:53:19] Production.INFO: ProcessCDR(1,14868751,1,1,2) [2025-04-09 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868751', 'tblTempUsageDetail_20' ) start [2025-04-09 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868751', 'tblTempUsageDetail_20' ) end [2025-04-09 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:53:24] Production.INFO: ==20610== Releasing lock... [2025-04-09 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:53:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-09 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:54:05 [end_date_ymd] => 2025-04-09 09:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:54:05' and `end` < '2025-04-09 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-09 09:54:19] Production.INFO: count ==1863 [2025-04-09 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:54:05 - End Time 2025-04-09 09:54:05 [2025-04-09 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868756', 'tblTempUsageDetail_20' ) start [2025-04-09 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868756', 'tblTempUsageDetail_20' ) end [2025-04-09 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868756', 'tblTempVendorCDR_20' ) start [2025-04-09 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868756', 'tblTempVendorCDR_20' ) end [2025-04-09 09:54:19] Production.INFO: ProcessCDR(1,14868756,1,1,2) [2025-04-09 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868756', 'tblTempUsageDetail_20' ) start [2025-04-09 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868756', 'tblTempUsageDetail_20' ) end [2025-04-09 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:54:25] Production.INFO: ==20723== Releasing lock... [2025-04-09 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:54:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:55:05 [end_date_ymd] => 2025-04-09 09:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:55:05' and `end` < '2025-04-09 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-09 09:55:18] Production.INFO: count ==1893 [2025-04-09 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:55:05 - End Time 2025-04-09 09:55:05 [2025-04-09 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868761', 'tblTempUsageDetail_20' ) start [2025-04-09 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868761', 'tblTempUsageDetail_20' ) end [2025-04-09 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868761', 'tblTempVendorCDR_20' ) start [2025-04-09 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868761', 'tblTempVendorCDR_20' ) end [2025-04-09 09:55:19] Production.INFO: ProcessCDR(1,14868761,1,1,2) [2025-04-09 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868761', 'tblTempUsageDetail_20' ) start [2025-04-09 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868761', 'tblTempUsageDetail_20' ) end [2025-04-09 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:55:24] Production.INFO: ==20832== Releasing lock... [2025-04-09 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:55:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-09 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:56:05 [end_date_ymd] => 2025-04-09 09:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:56:05' and `end` < '2025-04-09 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-09 09:56:18] Production.INFO: count ==1909 [2025-04-09 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:56:05 - End Time 2025-04-09 09:56:05 [2025-04-09 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868766', 'tblTempUsageDetail_20' ) start [2025-04-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868766', 'tblTempUsageDetail_20' ) end [2025-04-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868766', 'tblTempVendorCDR_20' ) start [2025-04-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868766', 'tblTempVendorCDR_20' ) end [2025-04-09 09:56:19] Production.INFO: ProcessCDR(1,14868766,1,1,2) [2025-04-09 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868766', 'tblTempUsageDetail_20' ) start [2025-04-09 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868766', 'tblTempUsageDetail_20' ) end [2025-04-09 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:56:24] Production.INFO: ==20943== Releasing lock... [2025-04-09 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:56:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:57:06 [end_date_ymd] => 2025-04-09 09:57:06 [RateCDR] => 1 ) [2025-04-09 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 06:57:06' and `end` < '2025-04-09 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 09:57:19] Production.INFO: count ==1915 [2025-04-09 09:57:20] Production.ERROR: pbx CDR StartTime 2025-04-09 06:57:06 - End Time 2025-04-09 09:57:06 [2025-04-09 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868771', 'tblTempUsageDetail_20' ) start [2025-04-09 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868771', 'tblTempUsageDetail_20' ) end [2025-04-09 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868771', 'tblTempVendorCDR_20' ) start [2025-04-09 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868771', 'tblTempVendorCDR_20' ) end [2025-04-09 09:57:20] Production.INFO: ProcessCDR(1,14868771,1,1,2) [2025-04-09 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868771', 'tblTempUsageDetail_20' ) start [2025-04-09 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868771', 'tblTempUsageDetail_20' ) end [2025-04-09 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:57:25] Production.INFO: ==21056== Releasing lock... [2025-04-09 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:57:25] Production.INFO: 43 MB #Memory Used# [2025-04-09 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:58:05 [end_date_ymd] => 2025-04-09 09:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:58:05' and `end` < '2025-04-09 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-09 09:58:18] Production.INFO: count ==1921 [2025-04-09 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:58:05 - End Time 2025-04-09 09:58:05 [2025-04-09 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868776', 'tblTempUsageDetail_20' ) start [2025-04-09 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868776', 'tblTempUsageDetail_20' ) end [2025-04-09 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868776', 'tblTempVendorCDR_20' ) start [2025-04-09 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868776', 'tblTempVendorCDR_20' ) end [2025-04-09 09:58:19] Production.INFO: ProcessCDR(1,14868776,1,1,2) [2025-04-09 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868776', 'tblTempUsageDetail_20' ) start [2025-04-09 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868776', 'tblTempUsageDetail_20' ) end [2025-04-09 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:58:24] Production.INFO: ==21170== Releasing lock... [2025-04-09 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:58:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 06:59:05 [end_date_ymd] => 2025-04-09 09:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 06:59:05' and `end` < '2025-04-09 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-09 09:59:18] Production.INFO: count ==1936 [2025-04-09 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-09 06:59:05 - End Time 2025-04-09 09:59:05 [2025-04-09 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868781', 'tblTempUsageDetail_20' ) start [2025-04-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868781', 'tblTempUsageDetail_20' ) end [2025-04-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868781', 'tblTempVendorCDR_20' ) start [2025-04-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868781', 'tblTempVendorCDR_20' ) end [2025-04-09 09:59:19] Production.INFO: ProcessCDR(1,14868781,1,1,2) [2025-04-09 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868781', 'tblTempUsageDetail_20' ) start [2025-04-09 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868781', 'tblTempUsageDetail_20' ) end [2025-04-09 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 09:59:24] Production.INFO: ==21279== Releasing lock... [2025-04-09 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 09:59:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:00:06 [end_date_ymd] => 2025-04-09 10:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:00:06' and `end` < '2025-04-09 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-09 10:00:20] Production.INFO: count ==1955 [2025-04-09 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:00:06 - End Time 2025-04-09 10:00:06 [2025-04-09 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868787', 'tblTempUsageDetail_20' ) start [2025-04-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868787', 'tblTempUsageDetail_20' ) end [2025-04-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868787', 'tblTempVendorCDR_20' ) start [2025-04-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868787', 'tblTempVendorCDR_20' ) end [2025-04-09 10:00:20] Production.INFO: ProcessCDR(1,14868787,1,1,2) [2025-04-09 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868787', 'tblTempUsageDetail_20' ) start [2025-04-09 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868787', 'tblTempUsageDetail_20' ) end [2025-04-09 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:00:26] Production.INFO: ==21394== Releasing lock... [2025-04-09 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:00:26] Production.INFO: 43 MB #Memory Used# [2025-04-09 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:01:05 [end_date_ymd] => 2025-04-09 10:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:01:05' and `end` < '2025-04-09 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-09 10:01:18] Production.INFO: count ==2085 [2025-04-09 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:01:05 - End Time 2025-04-09 10:01:05 [2025-04-09 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868792', 'tblTempUsageDetail_20' ) start [2025-04-09 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868792', 'tblTempUsageDetail_20' ) end [2025-04-09 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868792', 'tblTempVendorCDR_20' ) start [2025-04-09 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868792', 'tblTempVendorCDR_20' ) end [2025-04-09 10:01:19] Production.INFO: ProcessCDR(1,14868792,1,1,2) [2025-04-09 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868792', 'tblTempUsageDetail_20' ) start [2025-04-09 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868792', 'tblTempUsageDetail_20' ) end [2025-04-09 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:01:24] Production.INFO: ==21576== Releasing lock... [2025-04-09 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:01:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:02:05 [end_date_ymd] => 2025-04-09 10:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:02:05' and `end` < '2025-04-09 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-09 10:02:18] Production.INFO: count ==2090 [2025-04-09 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:02:05 - End Time 2025-04-09 10:02:05 [2025-04-09 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868797', 'tblTempUsageDetail_20' ) start [2025-04-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868797', 'tblTempUsageDetail_20' ) end [2025-04-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868797', 'tblTempVendorCDR_20' ) start [2025-04-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868797', 'tblTempVendorCDR_20' ) end [2025-04-09 10:02:19] Production.INFO: ProcessCDR(1,14868797,1,1,2) [2025-04-09 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868797', 'tblTempUsageDetail_20' ) start [2025-04-09 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868797', 'tblTempUsageDetail_20' ) end [2025-04-09 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:02:24] Production.INFO: ==21706== Releasing lock... [2025-04-09 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:02:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:03:06 [end_date_ymd] => 2025-04-09 10:03:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:03:06' and `end` < '2025-04-09 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-09 10:03:19] Production.INFO: count ==2107 [2025-04-09 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:03:06 - End Time 2025-04-09 10:03:06 [2025-04-09 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868802', 'tblTempUsageDetail_20' ) start [2025-04-09 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868802', 'tblTempUsageDetail_20' ) end [2025-04-09 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868802', 'tblTempVendorCDR_20' ) start [2025-04-09 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868802', 'tblTempVendorCDR_20' ) end [2025-04-09 10:03:20] Production.INFO: ProcessCDR(1,14868802,1,1,2) [2025-04-09 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868802', 'tblTempUsageDetail_20' ) start [2025-04-09 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868802', 'tblTempUsageDetail_20' ) end [2025-04-09 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:03:25] Production.INFO: ==21816== Releasing lock... [2025-04-09 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:03:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:04:05 [end_date_ymd] => 2025-04-09 10:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:04:05' and `end` < '2025-04-09 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-09 10:04:18] Production.INFO: count ==2131 [2025-04-09 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:04:05 - End Time 2025-04-09 10:04:05 [2025-04-09 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868807', 'tblTempUsageDetail_20' ) start [2025-04-09 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868807', 'tblTempUsageDetail_20' ) end [2025-04-09 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868807', 'tblTempVendorCDR_20' ) start [2025-04-09 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868807', 'tblTempVendorCDR_20' ) end [2025-04-09 10:04:19] Production.INFO: ProcessCDR(1,14868807,1,1,2) [2025-04-09 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868807', 'tblTempUsageDetail_20' ) start [2025-04-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868807', 'tblTempUsageDetail_20' ) end [2025-04-09 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:04:23] Production.INFO: ==21897== Releasing lock... [2025-04-09 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:04:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-09 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:05:05 [end_date_ymd] => 2025-04-09 10:05:05 [RateCDR] => 1 ) [2025-04-09 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:05:05' and `end` < '2025-04-09 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:05:19] Production.INFO: count ==2143 [2025-04-09 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:05:05 - End Time 2025-04-09 10:05:05 [2025-04-09 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868812', 'tblTempUsageDetail_20' ) start [2025-04-09 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868812', 'tblTempUsageDetail_20' ) end [2025-04-09 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868812', 'tblTempVendorCDR_20' ) start [2025-04-09 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868812', 'tblTempVendorCDR_20' ) end [2025-04-09 10:05:20] Production.INFO: ProcessCDR(1,14868812,1,1,2) [2025-04-09 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868812', 'tblTempUsageDetail_20' ) start [2025-04-09 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868812', 'tblTempUsageDetail_20' ) end [2025-04-09 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:05:24] Production.INFO: ==21981== Releasing lock... [2025-04-09 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:05:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-09 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:06:06 [end_date_ymd] => 2025-04-09 10:06:06 [RateCDR] => 1 ) [2025-04-09 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:06:06' and `end` < '2025-04-09 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:06:19] Production.INFO: count ==2151 [2025-04-09 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:06:06 - End Time 2025-04-09 10:06:06 [2025-04-09 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868817', 'tblTempUsageDetail_20' ) start [2025-04-09 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868817', 'tblTempUsageDetail_20' ) end [2025-04-09 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868817', 'tblTempVendorCDR_20' ) start [2025-04-09 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868817', 'tblTempVendorCDR_20' ) end [2025-04-09 10:06:20] Production.INFO: ProcessCDR(1,14868817,1,1,2) [2025-04-09 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868817', 'tblTempUsageDetail_20' ) start [2025-04-09 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868817', 'tblTempUsageDetail_20' ) end [2025-04-09 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:06:24] Production.INFO: ==22055== Releasing lock... [2025-04-09 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:06:24] Production.INFO: 45 MB #Memory Used# [2025-04-09 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:07:05 [end_date_ymd] => 2025-04-09 10:07:05 [RateCDR] => 1 ) [2025-04-09 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:07:05' and `end` < '2025-04-09 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-09 10:07:19] Production.INFO: count ==2153 [2025-04-09 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:07:05 - End Time 2025-04-09 10:07:05 [2025-04-09 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868822', 'tblTempUsageDetail_20' ) start [2025-04-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868822', 'tblTempUsageDetail_20' ) end [2025-04-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868822', 'tblTempVendorCDR_20' ) start [2025-04-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868822', 'tblTempVendorCDR_20' ) end [2025-04-09 10:07:20] Production.INFO: ProcessCDR(1,14868822,1,1,2) [2025-04-09 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868822', 'tblTempUsageDetail_20' ) start [2025-04-09 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868822', 'tblTempUsageDetail_20' ) end [2025-04-09 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:07:25] Production.INFO: ==22130== Releasing lock... [2025-04-09 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:07:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:08:05 [end_date_ymd] => 2025-04-09 10:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:08:05' and `end` < '2025-04-09 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-09 10:08:19] Production.INFO: count ==2155 [2025-04-09 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:08:05 - End Time 2025-04-09 10:08:05 [2025-04-09 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868827', 'tblTempUsageDetail_20' ) start [2025-04-09 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868827', 'tblTempUsageDetail_20' ) end [2025-04-09 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868827', 'tblTempVendorCDR_20' ) start [2025-04-09 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868827', 'tblTempVendorCDR_20' ) end [2025-04-09 10:08:19] Production.INFO: ProcessCDR(1,14868827,1,1,2) [2025-04-09 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868827', 'tblTempUsageDetail_20' ) start [2025-04-09 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868827', 'tblTempUsageDetail_20' ) end [2025-04-09 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:08:25] Production.INFO: ==22201== Releasing lock... [2025-04-09 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:08:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-09 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:09:06 [end_date_ymd] => 2025-04-09 10:09:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:09:06' and `end` < '2025-04-09 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-09 10:09:19] Production.INFO: count ==2165 [2025-04-09 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:09:06 - End Time 2025-04-09 10:09:06 [2025-04-09 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868832', 'tblTempUsageDetail_20' ) start [2025-04-09 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868832', 'tblTempUsageDetail_20' ) end [2025-04-09 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868832', 'tblTempVendorCDR_20' ) start [2025-04-09 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868832', 'tblTempVendorCDR_20' ) end [2025-04-09 10:09:20] Production.INFO: ProcessCDR(1,14868832,1,1,2) [2025-04-09 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868832', 'tblTempUsageDetail_20' ) start [2025-04-09 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868832', 'tblTempUsageDetail_20' ) end [2025-04-09 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:09:26] Production.INFO: ==22278== Releasing lock... [2025-04-09 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:09:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-09 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:10:06 [end_date_ymd] => 2025-04-09 10:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:10:06' and `end` < '2025-04-09 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-09 10:10:20] Production.INFO: count ==2288 [2025-04-09 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:10:06 - End Time 2025-04-09 10:10:06 [2025-04-09 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868838', 'tblTempUsageDetail_20' ) start [2025-04-09 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868838', 'tblTempUsageDetail_20' ) end [2025-04-09 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868838', 'tblTempVendorCDR_20' ) start [2025-04-09 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868838', 'tblTempVendorCDR_20' ) end [2025-04-09 10:10:21] Production.INFO: ProcessCDR(1,14868838,1,1,2) [2025-04-09 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868838', 'tblTempUsageDetail_20' ) start [2025-04-09 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868838', 'tblTempUsageDetail_20' ) end [2025-04-09 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:10:26] Production.INFO: ==22354== Releasing lock... [2025-04-09 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:10:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-09 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:11:06 [end_date_ymd] => 2025-04-09 10:11:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:11:06' and `end` < '2025-04-09 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-09 10:11:19] Production.INFO: count ==2389 [2025-04-09 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:11:06 - End Time 2025-04-09 10:11:06 [2025-04-09 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868843', 'tblTempUsageDetail_20' ) start [2025-04-09 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868843', 'tblTempUsageDetail_20' ) end [2025-04-09 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868843', 'tblTempVendorCDR_20' ) start [2025-04-09 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868843', 'tblTempVendorCDR_20' ) end [2025-04-09 10:11:20] Production.INFO: ProcessCDR(1,14868843,1,1,2) [2025-04-09 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868843', 'tblTempUsageDetail_20' ) start [2025-04-09 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868843', 'tblTempUsageDetail_20' ) end [2025-04-09 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:11:25] Production.INFO: ==22429== Releasing lock... [2025-04-09 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:11:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:12:05 [end_date_ymd] => 2025-04-09 10:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:12:05' and `end` < '2025-04-09 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-09 10:12:18] Production.INFO: count ==2404 [2025-04-09 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:12:05 - End Time 2025-04-09 10:12:05 [2025-04-09 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868848', 'tblTempUsageDetail_20' ) start [2025-04-09 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868848', 'tblTempUsageDetail_20' ) end [2025-04-09 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868848', 'tblTempVendorCDR_20' ) start [2025-04-09 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868848', 'tblTempVendorCDR_20' ) end [2025-04-09 10:12:19] Production.INFO: ProcessCDR(1,14868848,1,1,2) [2025-04-09 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868848', 'tblTempUsageDetail_20' ) start [2025-04-09 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868848', 'tblTempUsageDetail_20' ) end [2025-04-09 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:12:25] Production.INFO: ==22502== Releasing lock... [2025-04-09 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:12:25] Production.INFO: 46 MB #Memory Used# [2025-04-09 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:13:05 [end_date_ymd] => 2025-04-09 10:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:13:05' and `end` < '2025-04-09 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-09 10:13:19] Production.INFO: count ==2450 [2025-04-09 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:13:05 - End Time 2025-04-09 10:13:05 [2025-04-09 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868853', 'tblTempUsageDetail_20' ) start [2025-04-09 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868853', 'tblTempUsageDetail_20' ) end [2025-04-09 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868853', 'tblTempVendorCDR_20' ) start [2025-04-09 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868853', 'tblTempVendorCDR_20' ) end [2025-04-09 10:13:20] Production.INFO: ProcessCDR(1,14868853,1,1,2) [2025-04-09 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868853', 'tblTempUsageDetail_20' ) start [2025-04-09 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868853', 'tblTempUsageDetail_20' ) end [2025-04-09 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:13:25] Production.INFO: ==22571== Releasing lock... [2025-04-09 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:13:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-09 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:14:05 [end_date_ymd] => 2025-04-09 10:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:14:05' and `end` < '2025-04-09 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-09 10:14:18] Production.INFO: count ==2464 [2025-04-09 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:14:05 - End Time 2025-04-09 10:14:05 [2025-04-09 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868858', 'tblTempUsageDetail_20' ) start [2025-04-09 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868858', 'tblTempUsageDetail_20' ) end [2025-04-09 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868858', 'tblTempVendorCDR_20' ) start [2025-04-09 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868858', 'tblTempVendorCDR_20' ) end [2025-04-09 10:14:19] Production.INFO: ProcessCDR(1,14868858,1,1,2) [2025-04-09 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868858', 'tblTempUsageDetail_20' ) start [2025-04-09 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868858', 'tblTempUsageDetail_20' ) end [2025-04-09 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:14:25] Production.INFO: ==22648== Releasing lock... [2025-04-09 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:14:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-09 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:15:06 [end_date_ymd] => 2025-04-09 10:15:06 [RateCDR] => 1 ) [2025-04-09 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:15:06' and `end` < '2025-04-09 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:15:19] Production.INFO: count ==2484 [2025-04-09 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:15:06 - End Time 2025-04-09 10:15:06 [2025-04-09 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868863', 'tblTempUsageDetail_20' ) start [2025-04-09 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868863', 'tblTempUsageDetail_20' ) end [2025-04-09 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868863', 'tblTempVendorCDR_20' ) start [2025-04-09 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868863', 'tblTempVendorCDR_20' ) end [2025-04-09 10:15:20] Production.INFO: ProcessCDR(1,14868863,1,1,2) [2025-04-09 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868863', 'tblTempUsageDetail_20' ) start [2025-04-09 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868863', 'tblTempUsageDetail_20' ) end [2025-04-09 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:15:26] Production.INFO: ==22725== Releasing lock... [2025-04-09 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:15:26] Production.INFO: 46.75 MB #Memory Used# [2025-04-09 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:16:05 [end_date_ymd] => 2025-04-09 10:16:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:16:05' and `end` < '2025-04-09 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-09 10:16:18] Production.INFO: count ==2484 [2025-04-09 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:16:05 - End Time 2025-04-09 10:16:05 [2025-04-09 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868868', 'tblTempUsageDetail_20' ) start [2025-04-09 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868868', 'tblTempUsageDetail_20' ) end [2025-04-09 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868868', 'tblTempVendorCDR_20' ) start [2025-04-09 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868868', 'tblTempVendorCDR_20' ) end [2025-04-09 10:16:20] Production.INFO: ProcessCDR(1,14868868,1,1,2) [2025-04-09 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868868', 'tblTempUsageDetail_20' ) start [2025-04-09 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868868', 'tblTempUsageDetail_20' ) end [2025-04-09 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:16:24] Production.INFO: ==22838== Releasing lock... [2025-04-09 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:16:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-09 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:17:06 [end_date_ymd] => 2025-04-09 10:17:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:17:06' and `end` < '2025-04-09 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-09 10:17:19] Production.INFO: count ==2490 [2025-04-09 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:17:06 - End Time 2025-04-09 10:17:06 [2025-04-09 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868873', 'tblTempUsageDetail_20' ) start [2025-04-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868873', 'tblTempUsageDetail_20' ) end [2025-04-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868873', 'tblTempVendorCDR_20' ) start [2025-04-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868873', 'tblTempVendorCDR_20' ) end [2025-04-09 10:17:20] Production.INFO: ProcessCDR(1,14868873,1,1,2) [2025-04-09 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868873', 'tblTempUsageDetail_20' ) start [2025-04-09 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868873', 'tblTempUsageDetail_20' ) end [2025-04-09 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:17:25] Production.INFO: ==22909== Releasing lock... [2025-04-09 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:17:25] Production.INFO: 47 MB #Memory Used# [2025-04-09 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:18:05 [end_date_ymd] => 2025-04-09 10:18:05 [RateCDR] => 1 ) [2025-04-09 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:18:05' and `end` < '2025-04-09 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:18:19] Production.INFO: count ==2494 [2025-04-09 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:18:05 - End Time 2025-04-09 10:18:05 [2025-04-09 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868878', 'tblTempUsageDetail_20' ) start [2025-04-09 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868878', 'tblTempUsageDetail_20' ) end [2025-04-09 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868878', 'tblTempVendorCDR_20' ) start [2025-04-09 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868878', 'tblTempVendorCDR_20' ) end [2025-04-09 10:18:20] Production.INFO: ProcessCDR(1,14868878,1,1,2) [2025-04-09 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868878', 'tblTempUsageDetail_20' ) start [2025-04-09 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868878', 'tblTempUsageDetail_20' ) end [2025-04-09 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:18:26] Production.INFO: ==22985== Releasing lock... [2025-04-09 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:18:26] Production.INFO: 47 MB #Memory Used# [2025-04-09 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:19:06 [end_date_ymd] => 2025-04-09 10:19:06 [RateCDR] => 1 ) [2025-04-09 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:19:06' and `end` < '2025-04-09 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:19:19] Production.INFO: count ==2516 [2025-04-09 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:19:06 - End Time 2025-04-09 10:19:06 [2025-04-09 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868883', 'tblTempUsageDetail_20' ) start [2025-04-09 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868883', 'tblTempUsageDetail_20' ) end [2025-04-09 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868883', 'tblTempVendorCDR_20' ) start [2025-04-09 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868883', 'tblTempVendorCDR_20' ) end [2025-04-09 10:19:20] Production.INFO: ProcessCDR(1,14868883,1,1,2) [2025-04-09 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868883', 'tblTempUsageDetail_20' ) start [2025-04-09 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868883', 'tblTempUsageDetail_20' ) end [2025-04-09 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:19:26] Production.INFO: ==23064== Releasing lock... [2025-04-09 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:19:26] Production.INFO: 47 MB #Memory Used# [2025-04-09 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:20:07 [end_date_ymd] => 2025-04-09 10:20:07 [RateCDR] => 1 ) [2025-04-09 10: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-09 07:20:07' and `end` < '2025-04-09 10: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-09 10:20:20] Production.INFO: count ==2530 [2025-04-09 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:20:07 - End Time 2025-04-09 10:20:07 [2025-04-09 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868889', 'tblTempUsageDetail_20' ) start [2025-04-09 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868889', 'tblTempUsageDetail_20' ) end [2025-04-09 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868889', 'tblTempVendorCDR_20' ) start [2025-04-09 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868889', 'tblTempVendorCDR_20' ) end [2025-04-09 10:20:21] Production.INFO: ProcessCDR(1,14868889,1,1,2) [2025-04-09 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868889', 'tblTempUsageDetail_20' ) start [2025-04-09 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868889', 'tblTempUsageDetail_20' ) end [2025-04-09 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:20:24] Production.INFO: ==23141== Releasing lock... [2025-04-09 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:20:24] Production.INFO: 47 MB #Memory Used# [2025-04-09 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:21:05 [end_date_ymd] => 2025-04-09 10:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:21:05' and `end` < '2025-04-09 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-09 10:21:19] Production.INFO: count ==2593 [2025-04-09 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:21:05 - End Time 2025-04-09 10:21:05 [2025-04-09 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868894', 'tblTempUsageDetail_20' ) start [2025-04-09 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868894', 'tblTempUsageDetail_20' ) end [2025-04-09 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868894', 'tblTempVendorCDR_20' ) start [2025-04-09 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868894', 'tblTempVendorCDR_20' ) end [2025-04-09 10:21:20] Production.INFO: ProcessCDR(1,14868894,1,1,2) [2025-04-09 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868894', 'tblTempUsageDetail_20' ) start [2025-04-09 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868894', 'tblTempUsageDetail_20' ) end [2025-04-09 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:21:25] Production.INFO: ==23214== Releasing lock... [2025-04-09 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:21:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:22:05 [end_date_ymd] => 2025-04-09 10:22:05 [RateCDR] => 1 ) [2025-04-09 10: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 07:22:05' and `end` < '2025-04-09 10: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-09 10:22:18] Production.INFO: count ==2601 [2025-04-09 10:22:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:22:05 - End Time 2025-04-09 10:22:05 [2025-04-09 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868899', 'tblTempUsageDetail_20' ) start [2025-04-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868899', 'tblTempUsageDetail_20' ) end [2025-04-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868899', 'tblTempVendorCDR_20' ) start [2025-04-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868899', 'tblTempVendorCDR_20' ) end [2025-04-09 10:22:19] Production.INFO: ProcessCDR(1,14868899,1,1,2) [2025-04-09 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868899', 'tblTempUsageDetail_20' ) start [2025-04-09 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868899', 'tblTempUsageDetail_20' ) end [2025-04-09 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:22:25] Production.INFO: ==23287== Releasing lock... [2025-04-09 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:22:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:23:05 [end_date_ymd] => 2025-04-09 10:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:23:05' and `end` < '2025-04-09 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-09 10:23:18] Production.INFO: count ==2601 [2025-04-09 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:23:05 - End Time 2025-04-09 10:23:05 [2025-04-09 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868904', 'tblTempUsageDetail_20' ) start [2025-04-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868904', 'tblTempUsageDetail_20' ) end [2025-04-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868904', 'tblTempVendorCDR_20' ) start [2025-04-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868904', 'tblTempVendorCDR_20' ) end [2025-04-09 10:23:19] Production.INFO: ProcessCDR(1,14868904,1,1,2) [2025-04-09 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868904', 'tblTempUsageDetail_20' ) start [2025-04-09 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868904', 'tblTempUsageDetail_20' ) end [2025-04-09 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:23:24] Production.INFO: ==23361== Releasing lock... [2025-04-09 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:23:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:24:05 [end_date_ymd] => 2025-04-09 10:24:05 [RateCDR] => 1 ) [2025-04-09 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:24:05' and `end` < '2025-04-09 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:24:19] Production.INFO: count ==2611 [2025-04-09 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:24:05 - End Time 2025-04-09 10:24:05 [2025-04-09 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868909', 'tblTempUsageDetail_20' ) start [2025-04-09 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868909', 'tblTempUsageDetail_20' ) end [2025-04-09 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868909', 'tblTempVendorCDR_20' ) start [2025-04-09 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868909', 'tblTempVendorCDR_20' ) end [2025-04-09 10:24:20] Production.INFO: ProcessCDR(1,14868909,1,1,2) [2025-04-09 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868909', 'tblTempUsageDetail_20' ) start [2025-04-09 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868909', 'tblTempUsageDetail_20' ) end [2025-04-09 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:24:25] Production.INFO: ==23441== Releasing lock... [2025-04-09 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:24:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:25:05 [end_date_ymd] => 2025-04-09 10:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:25:05' and `end` < '2025-04-09 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-09 10:25:18] Production.INFO: count ==2617 [2025-04-09 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:25:05 - End Time 2025-04-09 10:25:05 [2025-04-09 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868914', 'tblTempUsageDetail_20' ) start [2025-04-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868914', 'tblTempUsageDetail_20' ) end [2025-04-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868914', 'tblTempVendorCDR_20' ) start [2025-04-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868914', 'tblTempVendorCDR_20' ) end [2025-04-09 10:25:19] Production.INFO: ProcessCDR(1,14868914,1,1,2) [2025-04-09 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868914', 'tblTempUsageDetail_20' ) start [2025-04-09 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868914', 'tblTempUsageDetail_20' ) end [2025-04-09 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:25:23] Production.INFO: ==23513== Releasing lock... [2025-04-09 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:25:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-09 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:26:05 [end_date_ymd] => 2025-04-09 10:26:05 [RateCDR] => 1 ) [2025-04-09 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:26:05' and `end` < '2025-04-09 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:26:18] Production.INFO: count ==2653 [2025-04-09 10:26:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:26:05 - End Time 2025-04-09 10:26:05 [2025-04-09 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868919', 'tblTempUsageDetail_20' ) start [2025-04-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868919', 'tblTempUsageDetail_20' ) end [2025-04-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868919', 'tblTempVendorCDR_20' ) start [2025-04-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868919', 'tblTempVendorCDR_20' ) end [2025-04-09 10:26:20] Production.INFO: ProcessCDR(1,14868919,1,1,2) [2025-04-09 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868919', 'tblTempUsageDetail_20' ) start [2025-04-09 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868919', 'tblTempUsageDetail_20' ) end [2025-04-09 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:26:25] Production.INFO: ==23587== Releasing lock... [2025-04-09 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:26:25] Production.INFO: 48 MB #Memory Used# [2025-04-09 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:27:05 [end_date_ymd] => 2025-04-09 10:27:05 [RateCDR] => 1 ) [2025-04-09 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:27:05' and `end` < '2025-04-09 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:27:18] Production.INFO: count ==2670 [2025-04-09 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:27:05 - End Time 2025-04-09 10:27:05 [2025-04-09 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868924', 'tblTempUsageDetail_20' ) start [2025-04-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868924', 'tblTempUsageDetail_20' ) end [2025-04-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868924', 'tblTempVendorCDR_20' ) start [2025-04-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868924', 'tblTempVendorCDR_20' ) end [2025-04-09 10:27:19] Production.INFO: ProcessCDR(1,14868924,1,1,2) [2025-04-09 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868924', 'tblTempUsageDetail_20' ) start [2025-04-09 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868924', 'tblTempUsageDetail_20' ) end [2025-04-09 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:27:24] Production.INFO: ==23660== Releasing lock... [2025-04-09 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:27:24] Production.INFO: 48 MB #Memory Used# [2025-04-09 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:28:05 [end_date_ymd] => 2025-04-09 10:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:28:05' and `end` < '2025-04-09 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-09 10:28:19] Production.INFO: count ==2676 [2025-04-09 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:28:05 - End Time 2025-04-09 10:28:05 [2025-04-09 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868929', 'tblTempUsageDetail_20' ) start [2025-04-09 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868929', 'tblTempUsageDetail_20' ) end [2025-04-09 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868929', 'tblTempVendorCDR_20' ) start [2025-04-09 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868929', 'tblTempVendorCDR_20' ) end [2025-04-09 10:28:20] Production.INFO: ProcessCDR(1,14868929,1,1,2) [2025-04-09 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868929', 'tblTempUsageDetail_20' ) start [2025-04-09 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868929', 'tblTempUsageDetail_20' ) end [2025-04-09 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:28:26] Production.INFO: ==23734== Releasing lock... [2025-04-09 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:28:26] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:29:06 [end_date_ymd] => 2025-04-09 10:29:06 [RateCDR] => 1 ) [2025-04-09 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:29:06' and `end` < '2025-04-09 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:29:19] Production.INFO: count ==2688 [2025-04-09 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:29:06 - End Time 2025-04-09 10:29:06 [2025-04-09 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868934', 'tblTempUsageDetail_20' ) start [2025-04-09 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868934', 'tblTempUsageDetail_20' ) end [2025-04-09 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868934', 'tblTempVendorCDR_20' ) start [2025-04-09 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868934', 'tblTempVendorCDR_20' ) end [2025-04-09 10:29:21] Production.INFO: ProcessCDR(1,14868934,1,1,2) [2025-04-09 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868934', 'tblTempUsageDetail_20' ) start [2025-04-09 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868934', 'tblTempUsageDetail_20' ) end [2025-04-09 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:29:26] Production.INFO: ==23811== Releasing lock... [2025-04-09 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:29:26] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:30:06 [end_date_ymd] => 2025-04-09 10:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:30:06' and `end` < '2025-04-09 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-09 10:30:20] Production.INFO: count ==2710 [2025-04-09 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:30:06 - End Time 2025-04-09 10:30:06 [2025-04-09 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868940', 'tblTempUsageDetail_20' ) start [2025-04-09 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868940', 'tblTempUsageDetail_20' ) end [2025-04-09 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868940', 'tblTempVendorCDR_20' ) start [2025-04-09 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868940', 'tblTempVendorCDR_20' ) end [2025-04-09 10:30:21] Production.INFO: ProcessCDR(1,14868940,1,1,2) [2025-04-09 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868940', 'tblTempUsageDetail_20' ) start [2025-04-09 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868940', 'tblTempUsageDetail_20' ) end [2025-04-09 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:30:26] Production.INFO: ==23886== Releasing lock... [2025-04-09 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:30:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-09 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:31:04 [end_date_ymd] => 2025-04-09 10:31:04 [RateCDR] => 1 ) [2025-04-09 10: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-09 07:31:04' and `end` < '2025-04-09 10: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-09 10:31:18] Production.INFO: count ==2819 [2025-04-09 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:31:04 - End Time 2025-04-09 10:31:04 [2025-04-09 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868945', 'tblTempUsageDetail_20' ) start [2025-04-09 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868945', 'tblTempUsageDetail_20' ) end [2025-04-09 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868945', 'tblTempVendorCDR_20' ) start [2025-04-09 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868945', 'tblTempVendorCDR_20' ) end [2025-04-09 10:31:19] Production.INFO: ProcessCDR(1,14868945,1,1,2) [2025-04-09 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868945', 'tblTempUsageDetail_20' ) start [2025-04-09 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868945', 'tblTempUsageDetail_20' ) end [2025-04-09 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:31:23] Production.INFO: ==23963== Releasing lock... [2025-04-09 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:31:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-09 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:32:05 [end_date_ymd] => 2025-04-09 10:32:05 [RateCDR] => 1 ) [2025-04-09 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:32:05' and `end` < '2025-04-09 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:32:19] Production.INFO: count ==2838 [2025-04-09 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:32:05 - End Time 2025-04-09 10:32:05 [2025-04-09 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868950', 'tblTempUsageDetail_20' ) start [2025-04-09 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868950', 'tblTempUsageDetail_20' ) end [2025-04-09 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868950', 'tblTempVendorCDR_20' ) start [2025-04-09 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868950', 'tblTempVendorCDR_20' ) end [2025-04-09 10:32:20] Production.INFO: ProcessCDR(1,14868950,1,1,2) [2025-04-09 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868950', 'tblTempUsageDetail_20' ) start [2025-04-09 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868950', 'tblTempUsageDetail_20' ) end [2025-04-09 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:32:25] Production.INFO: ==24078== Releasing lock... [2025-04-09 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:32:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-09 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:33:06 [end_date_ymd] => 2025-04-09 10:33:06 [RateCDR] => 1 ) [2025-04-09 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:33:06' and `end` < '2025-04-09 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:33:19] Production.INFO: count ==2837 [2025-04-09 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:33:06 - End Time 2025-04-09 10:33:06 [2025-04-09 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868955', 'tblTempUsageDetail_20' ) start [2025-04-09 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868955', 'tblTempUsageDetail_20' ) end [2025-04-09 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868955', 'tblTempVendorCDR_20' ) start [2025-04-09 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868955', 'tblTempVendorCDR_20' ) end [2025-04-09 10:33:20] Production.INFO: ProcessCDR(1,14868955,1,1,2) [2025-04-09 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868955', 'tblTempUsageDetail_20' ) start [2025-04-09 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868955', 'tblTempUsageDetail_20' ) end [2025-04-09 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:33:25] Production.INFO: ==24150== Releasing lock... [2025-04-09 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:33:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-09 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:34:05 [end_date_ymd] => 2025-04-09 10:34:05 [RateCDR] => 1 ) [2025-04-09 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:34:05' and `end` < '2025-04-09 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:34:18] Production.INFO: count ==2863 [2025-04-09 10:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:34:05 - End Time 2025-04-09 10:34:05 [2025-04-09 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868960', 'tblTempUsageDetail_20' ) start [2025-04-09 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868960', 'tblTempUsageDetail_20' ) end [2025-04-09 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868960', 'tblTempVendorCDR_20' ) start [2025-04-09 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868960', 'tblTempVendorCDR_20' ) end [2025-04-09 10:34:19] Production.INFO: ProcessCDR(1,14868960,1,1,2) [2025-04-09 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868960', 'tblTempUsageDetail_20' ) start [2025-04-09 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868960', 'tblTempUsageDetail_20' ) end [2025-04-09 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:34:24] Production.INFO: ==24225== Releasing lock... [2025-04-09 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:34:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-09 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:35:05 [end_date_ymd] => 2025-04-09 10:35:05 [RateCDR] => 1 ) [2025-04-09 10: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 07:35:05' and `end` < '2025-04-09 10: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-09 10:35:19] Production.INFO: count ==2881 [2025-04-09 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:35:05 - End Time 2025-04-09 10:35:05 [2025-04-09 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868965', 'tblTempUsageDetail_20' ) start [2025-04-09 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868965', 'tblTempUsageDetail_20' ) end [2025-04-09 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868965', 'tblTempVendorCDR_20' ) start [2025-04-09 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868965', 'tblTempVendorCDR_20' ) end [2025-04-09 10:35:20] Production.INFO: ProcessCDR(1,14868965,1,1,2) [2025-04-09 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868965', 'tblTempUsageDetail_20' ) start [2025-04-09 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868965', 'tblTempUsageDetail_20' ) end [2025-04-09 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:35:25] Production.INFO: ==24296== Releasing lock... [2025-04-09 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:35:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-09 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:36:05 [end_date_ymd] => 2025-04-09 10:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:36:05' and `end` < '2025-04-09 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-09 10:36:19] Production.INFO: count ==2891 [2025-04-09 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:36:05 - End Time 2025-04-09 10:36:05 [2025-04-09 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868970', 'tblTempUsageDetail_20' ) start [2025-04-09 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868970', 'tblTempUsageDetail_20' ) end [2025-04-09 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868970', 'tblTempVendorCDR_20' ) start [2025-04-09 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868970', 'tblTempVendorCDR_20' ) end [2025-04-09 10:36:20] Production.INFO: ProcessCDR(1,14868970,1,1,2) [2025-04-09 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868970', 'tblTempUsageDetail_20' ) start [2025-04-09 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868970', 'tblTempUsageDetail_20' ) end [2025-04-09 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:36:25] Production.INFO: ==24374== Releasing lock... [2025-04-09 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:36:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-09 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:37:05 [end_date_ymd] => 2025-04-09 10:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:37:05' and `end` < '2025-04-09 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-09 10:37:18] Production.INFO: count ==3114 [2025-04-09 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:37:05 - End Time 2025-04-09 10:37:05 [2025-04-09 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868975', 'tblTempUsageDetail_20' ) start [2025-04-09 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868975', 'tblTempUsageDetail_20' ) end [2025-04-09 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868975', 'tblTempVendorCDR_20' ) start [2025-04-09 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868975', 'tblTempVendorCDR_20' ) end [2025-04-09 10:37:20] Production.INFO: ProcessCDR(1,14868975,1,1,2) [2025-04-09 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868975', 'tblTempUsageDetail_20' ) start [2025-04-09 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868975', 'tblTempUsageDetail_20' ) end [2025-04-09 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:37:25] Production.INFO: ==24451== Releasing lock... [2025-04-09 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:37:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-09 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:38:05 [end_date_ymd] => 2025-04-09 10:38:05 [RateCDR] => 1 ) [2025-04-09 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:38:05' and `end` < '2025-04-09 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:38:18] Production.INFO: count ==3118 [2025-04-09 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:38:05 - End Time 2025-04-09 10:38:05 [2025-04-09 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868980', 'tblTempUsageDetail_20' ) start [2025-04-09 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868980', 'tblTempUsageDetail_20' ) end [2025-04-09 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868980', 'tblTempVendorCDR_20' ) start [2025-04-09 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868980', 'tblTempVendorCDR_20' ) end [2025-04-09 10:38:20] Production.INFO: ProcessCDR(1,14868980,1,1,2) [2025-04-09 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868980', 'tblTempUsageDetail_20' ) start [2025-04-09 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868980', 'tblTempUsageDetail_20' ) end [2025-04-09 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:38:25] Production.INFO: ==24528== Releasing lock... [2025-04-09 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:38:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-09 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:39:05 [end_date_ymd] => 2025-04-09 10:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:39:05' and `end` < '2025-04-09 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-09 10:39:19] Production.INFO: count ==3165 [2025-04-09 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:39:05 - End Time 2025-04-09 10:39:05 [2025-04-09 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868985', 'tblTempUsageDetail_20' ) start [2025-04-09 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868985', 'tblTempUsageDetail_20' ) end [2025-04-09 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868985', 'tblTempVendorCDR_20' ) start [2025-04-09 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868985', 'tblTempVendorCDR_20' ) end [2025-04-09 10:39:20] Production.INFO: ProcessCDR(1,14868985,1,1,2) [2025-04-09 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868985', 'tblTempUsageDetail_20' ) start [2025-04-09 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868985', 'tblTempUsageDetail_20' ) end [2025-04-09 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:39:23] Production.INFO: ==24599== Releasing lock... [2025-04-09 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:39:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-09 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:40:06 [end_date_ymd] => 2025-04-09 10:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:40:06' and `end` < '2025-04-09 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-09 10:40:19] Production.INFO: count ==3183 [2025-04-09 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:40:06 - End Time 2025-04-09 10:40:06 [2025-04-09 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868991', 'tblTempUsageDetail_20' ) start [2025-04-09 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868991', 'tblTempUsageDetail_20' ) end [2025-04-09 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868991', 'tblTempVendorCDR_20' ) start [2025-04-09 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868991', 'tblTempVendorCDR_20' ) end [2025-04-09 10:40:21] Production.INFO: ProcessCDR(1,14868991,1,1,2) [2025-04-09 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868991', 'tblTempUsageDetail_20' ) start [2025-04-09 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868991', 'tblTempUsageDetail_20' ) end [2025-04-09 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:40:26] Production.INFO: ==24675== Releasing lock... [2025-04-09 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:40:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-09 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:41:05 [end_date_ymd] => 2025-04-09 10:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:41:05' and `end` < '2025-04-09 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-09 10:41:18] Production.INFO: count ==3275 [2025-04-09 10:41:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:41:05 - End Time 2025-04-09 10:41:05 [2025-04-09 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868996', 'tblTempUsageDetail_20' ) start [2025-04-09 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14868996', 'tblTempUsageDetail_20' ) end [2025-04-09 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868996', 'tblTempVendorCDR_20' ) start [2025-04-09 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14868996', 'tblTempVendorCDR_20' ) end [2025-04-09 10:41:19] Production.INFO: ProcessCDR(1,14868996,1,1,2) [2025-04-09 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14868996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14868996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14868996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14868996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868996', 'tblTempUsageDetail_20' ) start [2025-04-09 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14868996', 'tblTempUsageDetail_20' ) end [2025-04-09 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:41:25] Production.INFO: ==24755== Releasing lock... [2025-04-09 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:41:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-09 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:42:06 [end_date_ymd] => 2025-04-09 10:42:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:42:06' and `end` < '2025-04-09 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-09 10:42:19] Production.INFO: count ==3290 [2025-04-09 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:42:06 - End Time 2025-04-09 10:42:06 [2025-04-09 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869001', 'tblTempUsageDetail_20' ) start [2025-04-09 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869001', 'tblTempUsageDetail_20' ) end [2025-04-09 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869001', 'tblTempVendorCDR_20' ) start [2025-04-09 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869001', 'tblTempVendorCDR_20' ) end [2025-04-09 10:42:21] Production.INFO: ProcessCDR(1,14869001,1,1,2) [2025-04-09 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869001', 'tblTempUsageDetail_20' ) start [2025-04-09 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869001', 'tblTempUsageDetail_20' ) end [2025-04-09 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:42:26] Production.INFO: ==24829== Releasing lock... [2025-04-09 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:42:26] Production.INFO: 53 MB #Memory Used# [2025-04-09 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:43:05 [end_date_ymd] => 2025-04-09 10:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:43:05' and `end` < '2025-04-09 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-09 10:43:19] Production.INFO: count ==3310 [2025-04-09 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:43:05 - End Time 2025-04-09 10:43:05 [2025-04-09 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869006', 'tblTempUsageDetail_20' ) start [2025-04-09 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869006', 'tblTempUsageDetail_20' ) end [2025-04-09 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869006', 'tblTempVendorCDR_20' ) start [2025-04-09 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869006', 'tblTempVendorCDR_20' ) end [2025-04-09 10:43:20] Production.INFO: ProcessCDR(1,14869006,1,1,2) [2025-04-09 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869006', 'tblTempUsageDetail_20' ) start [2025-04-09 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869006', 'tblTempUsageDetail_20' ) end [2025-04-09 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:43:25] Production.INFO: ==24903== Releasing lock... [2025-04-09 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:43:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-09 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:44:05 [end_date_ymd] => 2025-04-09 10:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:44:05' and `end` < '2025-04-09 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-09 10:44:19] Production.INFO: count ==3324 [2025-04-09 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:44:05 - End Time 2025-04-09 10:44:05 [2025-04-09 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869011', 'tblTempUsageDetail_20' ) start [2025-04-09 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869011', 'tblTempUsageDetail_20' ) end [2025-04-09 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869011', 'tblTempVendorCDR_20' ) start [2025-04-09 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869011', 'tblTempVendorCDR_20' ) end [2025-04-09 10:44:20] Production.INFO: ProcessCDR(1,14869011,1,1,2) [2025-04-09 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869011', 'tblTempUsageDetail_20' ) start [2025-04-09 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869011', 'tblTempUsageDetail_20' ) end [2025-04-09 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:44:25] Production.INFO: ==24979== Releasing lock... [2025-04-09 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:44:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-09 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:45:05 [end_date_ymd] => 2025-04-09 10:45:05 [RateCDR] => 1 ) [2025-04-09 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:45:05' and `end` < '2025-04-09 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:45:19] Production.INFO: count ==3350 [2025-04-09 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:45:05 - End Time 2025-04-09 10:45:05 [2025-04-09 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869016', 'tblTempUsageDetail_20' ) start [2025-04-09 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869016', 'tblTempUsageDetail_20' ) end [2025-04-09 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869016', 'tblTempVendorCDR_20' ) start [2025-04-09 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869016', 'tblTempVendorCDR_20' ) end [2025-04-09 10:45:20] Production.INFO: ProcessCDR(1,14869016,1,1,2) [2025-04-09 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869016', 'tblTempUsageDetail_20' ) start [2025-04-09 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869016', 'tblTempUsageDetail_20' ) end [2025-04-09 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:45:25] Production.INFO: ==25052== Releasing lock... [2025-04-09 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:45:25] Production.INFO: 53 MB #Memory Used# [2025-04-09 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:46:04 [end_date_ymd] => 2025-04-09 10:46:04 [RateCDR] => 1 ) [2025-04-09 10: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-09 07:46:04' and `end` < '2025-04-09 10: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-09 10:46:18] Production.INFO: count ==3358 [2025-04-09 10:46:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:46:04 - End Time 2025-04-09 10:46:04 [2025-04-09 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869021', 'tblTempUsageDetail_20' ) start [2025-04-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869021', 'tblTempUsageDetail_20' ) end [2025-04-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869021', 'tblTempVendorCDR_20' ) start [2025-04-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869021', 'tblTempVendorCDR_20' ) end [2025-04-09 10:46:19] Production.INFO: ProcessCDR(1,14869021,1,1,2) [2025-04-09 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869021', 'tblTempUsageDetail_20' ) start [2025-04-09 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869021', 'tblTempUsageDetail_20' ) end [2025-04-09 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:46:25] Production.INFO: ==25126== Releasing lock... [2025-04-09 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:46:25] Production.INFO: 53 MB #Memory Used# [2025-04-09 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:47:05 [end_date_ymd] => 2025-04-09 10:47:05 [RateCDR] => 1 ) [2025-04-09 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:47:05' and `end` < '2025-04-09 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:47:19] Production.INFO: count ==3369 [2025-04-09 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:47:05 - End Time 2025-04-09 10:47:05 [2025-04-09 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869026', 'tblTempUsageDetail_20' ) start [2025-04-09 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869026', 'tblTempUsageDetail_20' ) end [2025-04-09 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869026', 'tblTempVendorCDR_20' ) start [2025-04-09 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869026', 'tblTempVendorCDR_20' ) end [2025-04-09 10:47:20] Production.INFO: ProcessCDR(1,14869026,1,1,2) [2025-04-09 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869026', 'tblTempUsageDetail_20' ) start [2025-04-09 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869026', 'tblTempUsageDetail_20' ) end [2025-04-09 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:47:25] Production.INFO: ==25235== Releasing lock... [2025-04-09 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:47:25] Production.INFO: 53 MB #Memory Used# [2025-04-09 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:48:06 [end_date_ymd] => 2025-04-09 10:48:06 [RateCDR] => 1 ) [2025-04-09 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:48:06' and `end` < '2025-04-09 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:48:19] Production.INFO: count ==3389 [2025-04-09 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:48:06 - End Time 2025-04-09 10:48:06 [2025-04-09 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869031', 'tblTempUsageDetail_20' ) start [2025-04-09 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869031', 'tblTempUsageDetail_20' ) end [2025-04-09 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869031', 'tblTempVendorCDR_20' ) start [2025-04-09 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869031', 'tblTempVendorCDR_20' ) end [2025-04-09 10:48:20] Production.INFO: ProcessCDR(1,14869031,1,1,2) [2025-04-09 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869031', 'tblTempUsageDetail_20' ) start [2025-04-09 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869031', 'tblTempUsageDetail_20' ) end [2025-04-09 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:48:26] Production.INFO: ==25310== Releasing lock... [2025-04-09 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:48:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:49:05 [end_date_ymd] => 2025-04-09 10:49:05 [RateCDR] => 1 ) [2025-04-09 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 07:49:05' and `end` < '2025-04-09 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 10:49:19] Production.INFO: count ==3388 [2025-04-09 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:49:05 - End Time 2025-04-09 10:49:05 [2025-04-09 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869036', 'tblTempUsageDetail_20' ) start [2025-04-09 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869036', 'tblTempUsageDetail_20' ) end [2025-04-09 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869036', 'tblTempVendorCDR_20' ) start [2025-04-09 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869036', 'tblTempVendorCDR_20' ) end [2025-04-09 10:49:20] Production.INFO: ProcessCDR(1,14869036,1,1,2) [2025-04-09 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869036', 'tblTempUsageDetail_20' ) start [2025-04-09 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869036', 'tblTempUsageDetail_20' ) end [2025-04-09 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:49:24] Production.INFO: ==25384== Releasing lock... [2025-04-09 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:49:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:50:06 [end_date_ymd] => 2025-04-09 10:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 07:50:06' and `end` < '2025-04-09 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-09 10:50:20] Production.INFO: count ==3389 [2025-04-09 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-09 07:50:06 - End Time 2025-04-09 10:50:06 [2025-04-09 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869042', 'tblTempUsageDetail_20' ) start [2025-04-09 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869042', 'tblTempUsageDetail_20' ) end [2025-04-09 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869042', 'tblTempVendorCDR_20' ) start [2025-04-09 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869042', 'tblTempVendorCDR_20' ) end [2025-04-09 10:50:21] Production.INFO: ProcessCDR(1,14869042,1,1,2) [2025-04-09 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869042', 'tblTempUsageDetail_20' ) start [2025-04-09 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869042', 'tblTempUsageDetail_20' ) end [2025-04-09 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:50:26] Production.INFO: ==25458== Releasing lock... [2025-04-09 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:50:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:51:05 [end_date_ymd] => 2025-04-09 10:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:51:05' and `end` < '2025-04-09 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-09 10:51:19] Production.INFO: count ==3503 [2025-04-09 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:51:05 - End Time 2025-04-09 10:51:05 [2025-04-09 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869047', 'tblTempUsageDetail_20' ) start [2025-04-09 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869047', 'tblTempUsageDetail_20' ) end [2025-04-09 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869047', 'tblTempVendorCDR_20' ) start [2025-04-09 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869047', 'tblTempVendorCDR_20' ) end [2025-04-09 10:51:20] Production.INFO: ProcessCDR(1,14869047,1,1,2) [2025-04-09 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869047', 'tblTempUsageDetail_20' ) start [2025-04-09 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869047', 'tblTempUsageDetail_20' ) end [2025-04-09 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:51:25] Production.INFO: ==25536== Releasing lock... [2025-04-09 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:51:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:52:05 [end_date_ymd] => 2025-04-09 10:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:52:05' and `end` < '2025-04-09 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-09 10:52:19] Production.INFO: count ==3511 [2025-04-09 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:52:05 - End Time 2025-04-09 10:52:05 [2025-04-09 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869052', 'tblTempUsageDetail_20' ) start [2025-04-09 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869052', 'tblTempUsageDetail_20' ) end [2025-04-09 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869052', 'tblTempVendorCDR_20' ) start [2025-04-09 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869052', 'tblTempVendorCDR_20' ) end [2025-04-09 10:52:20] Production.INFO: ProcessCDR(1,14869052,1,1,2) [2025-04-09 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869052', 'tblTempUsageDetail_20' ) start [2025-04-09 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869052', 'tblTempUsageDetail_20' ) end [2025-04-09 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:52:25] Production.INFO: ==25609== Releasing lock... [2025-04-09 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:52:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-09 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:53:05 [end_date_ymd] => 2025-04-09 10:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:53:05' and `end` < '2025-04-09 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-09 10:53:19] Production.INFO: count ==3514 [2025-04-09 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:53:05 - End Time 2025-04-09 10:53:05 [2025-04-09 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869057', 'tblTempUsageDetail_20' ) start [2025-04-09 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869057', 'tblTempUsageDetail_20' ) end [2025-04-09 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869057', 'tblTempVendorCDR_20' ) start [2025-04-09 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869057', 'tblTempVendorCDR_20' ) end [2025-04-09 10:53:20] Production.INFO: ProcessCDR(1,14869057,1,1,2) [2025-04-09 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869057', 'tblTempUsageDetail_20' ) start [2025-04-09 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869057', 'tblTempUsageDetail_20' ) end [2025-04-09 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:53:25] Production.INFO: ==25684== Releasing lock... [2025-04-09 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:53:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:54:05 [end_date_ymd] => 2025-04-09 10:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:54:05' and `end` < '2025-04-09 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-09 10:54:19] Production.INFO: count ==3525 [2025-04-09 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:54:05 - End Time 2025-04-09 10:54:05 [2025-04-09 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869062', 'tblTempUsageDetail_20' ) start [2025-04-09 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869062', 'tblTempUsageDetail_20' ) end [2025-04-09 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869062', 'tblTempVendorCDR_20' ) start [2025-04-09 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869062', 'tblTempVendorCDR_20' ) end [2025-04-09 10:54:21] Production.INFO: ProcessCDR(1,14869062,1,1,2) [2025-04-09 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869062', 'tblTempUsageDetail_20' ) start [2025-04-09 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869062', 'tblTempUsageDetail_20' ) end [2025-04-09 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:54:26] Production.INFO: ==25755== Releasing lock... [2025-04-09 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:54:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:55:04 [end_date_ymd] => 2025-04-09 10:55:04 [RateCDR] => 1 ) [2025-04-09 10: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 07:55:04' and `end` < '2025-04-09 10: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-09 10:55:18] Production.INFO: count ==3536 [2025-04-09 10:55:19] Production.ERROR: pbx CDR StartTime 2025-04-09 07:55:04 - End Time 2025-04-09 10:55:04 [2025-04-09 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869067', 'tblTempUsageDetail_20' ) start [2025-04-09 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869067', 'tblTempUsageDetail_20' ) end [2025-04-09 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869067', 'tblTempVendorCDR_20' ) start [2025-04-09 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869067', 'tblTempVendorCDR_20' ) end [2025-04-09 10:55:19] Production.INFO: ProcessCDR(1,14869067,1,1,2) [2025-04-09 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869067', 'tblTempUsageDetail_20' ) start [2025-04-09 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869067', 'tblTempUsageDetail_20' ) end [2025-04-09 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:55:25] Production.INFO: ==25828== Releasing lock... [2025-04-09 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:55:25] Production.INFO: 55 MB #Memory Used# [2025-04-09 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:56:05 [end_date_ymd] => 2025-04-09 10:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:56:05' and `end` < '2025-04-09 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-09 10:56:19] Production.INFO: count ==3537 [2025-04-09 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:56:05 - End Time 2025-04-09 10:56:05 [2025-04-09 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869072', 'tblTempUsageDetail_20' ) start [2025-04-09 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869072', 'tblTempUsageDetail_20' ) end [2025-04-09 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869072', 'tblTempVendorCDR_20' ) start [2025-04-09 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869072', 'tblTempVendorCDR_20' ) end [2025-04-09 10:56:20] Production.INFO: ProcessCDR(1,14869072,1,1,2) [2025-04-09 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869072', 'tblTempUsageDetail_20' ) start [2025-04-09 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869072', 'tblTempUsageDetail_20' ) end [2025-04-09 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:56:25] Production.INFO: ==25900== Releasing lock... [2025-04-09 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:56:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:57:05 [end_date_ymd] => 2025-04-09 10:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:57:05' and `end` < '2025-04-09 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-09 10:57:19] Production.INFO: count ==3543 [2025-04-09 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:57:05 - End Time 2025-04-09 10:57:05 [2025-04-09 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869077', 'tblTempUsageDetail_20' ) start [2025-04-09 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869077', 'tblTempUsageDetail_20' ) end [2025-04-09 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869077', 'tblTempVendorCDR_20' ) start [2025-04-09 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869077', 'tblTempVendorCDR_20' ) end [2025-04-09 10:57:20] Production.INFO: ProcessCDR(1,14869077,1,1,2) [2025-04-09 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869077', 'tblTempUsageDetail_20' ) start [2025-04-09 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869077', 'tblTempUsageDetail_20' ) end [2025-04-09 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:57:25] Production.INFO: ==25976== Releasing lock... [2025-04-09 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:57:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-09 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:58:05 [end_date_ymd] => 2025-04-09 10:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:58:05' and `end` < '2025-04-09 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-09 10:58:19] Production.INFO: count ==3547 [2025-04-09 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:58:05 - End Time 2025-04-09 10:58:05 [2025-04-09 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869082', 'tblTempUsageDetail_20' ) start [2025-04-09 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869082', 'tblTempUsageDetail_20' ) end [2025-04-09 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869082', 'tblTempVendorCDR_20' ) start [2025-04-09 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869082', 'tblTempVendorCDR_20' ) end [2025-04-09 10:58:21] Production.INFO: ProcessCDR(1,14869082,1,1,2) [2025-04-09 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869082', 'tblTempUsageDetail_20' ) start [2025-04-09 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869082', 'tblTempUsageDetail_20' ) end [2025-04-09 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:58:26] Production.INFO: ==26048== Releasing lock... [2025-04-09 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:58:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-09 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 07:59:05 [end_date_ymd] => 2025-04-09 10:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 07:59:05' and `end` < '2025-04-09 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-09 10:59:19] Production.INFO: count ==3556 [2025-04-09 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-09 07:59:05 - End Time 2025-04-09 10:59:05 [2025-04-09 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869087', 'tblTempUsageDetail_20' ) start [2025-04-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869087', 'tblTempUsageDetail_20' ) end [2025-04-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869087', 'tblTempVendorCDR_20' ) start [2025-04-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869087', 'tblTempVendorCDR_20' ) end [2025-04-09 10:59:20] Production.INFO: ProcessCDR(1,14869087,1,1,2) [2025-04-09 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869087', 'tblTempUsageDetail_20' ) start [2025-04-09 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869087', 'tblTempUsageDetail_20' ) end [2025-04-09 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 10:59:26] Production.INFO: ==26122== Releasing lock... [2025-04-09 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 10:59:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-09 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:00:07 [end_date_ymd] => 2025-04-09 11:00:07 [RateCDR] => 1 ) [2025-04-09 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:00:07' and `end` < '2025-04-09 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:00:21] Production.INFO: count ==3562 [2025-04-09 11:00:23] Production.ERROR: pbx CDR StartTime 2025-04-09 08:00:07 - End Time 2025-04-09 11:00:07 [2025-04-09 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869093', 'tblTempUsageDetail_20' ) start [2025-04-09 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869093', 'tblTempUsageDetail_20' ) end [2025-04-09 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869093', 'tblTempVendorCDR_20' ) start [2025-04-09 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869093', 'tblTempVendorCDR_20' ) end [2025-04-09 11:00:23] Production.INFO: ProcessCDR(1,14869093,1,1,2) [2025-04-09 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869093', 'tblTempUsageDetail_20' ) start [2025-04-09 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869093', 'tblTempUsageDetail_20' ) end [2025-04-09 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:00:28] Production.INFO: ==26200== Releasing lock... [2025-04-09 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:00:28] Production.INFO: 54.5 MB #Memory Used# [2025-04-09 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:01:06 [end_date_ymd] => 2025-04-09 11:01:06 [RateCDR] => 1 ) [2025-04-09 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:01:06' and `end` < '2025-04-09 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:01:19] Production.INFO: count ==3692 [2025-04-09 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:01:06 - End Time 2025-04-09 11:01:06 [2025-04-09 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869098', 'tblTempUsageDetail_20' ) start [2025-04-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869098', 'tblTempUsageDetail_20' ) end [2025-04-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869098', 'tblTempVendorCDR_20' ) start [2025-04-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869098', 'tblTempVendorCDR_20' ) end [2025-04-09 11:01:21] Production.INFO: ProcessCDR(1,14869098,1,1,2) [2025-04-09 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869098', 'tblTempUsageDetail_20' ) start [2025-04-09 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869098', 'tblTempUsageDetail_20' ) end [2025-04-09 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:01:26] Production.INFO: ==26332== Releasing lock... [2025-04-09 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:01:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-09 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:02:06 [end_date_ymd] => 2025-04-09 11:02:06 [RateCDR] => 1 ) [2025-04-09 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:02:06' and `end` < '2025-04-09 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:02:20] Production.INFO: count ==3719 [2025-04-09 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:02:06 - End Time 2025-04-09 11:02:06 [2025-04-09 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869103', 'tblTempUsageDetail_20' ) start [2025-04-09 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869103', 'tblTempUsageDetail_20' ) end [2025-04-09 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869103', 'tblTempVendorCDR_20' ) start [2025-04-09 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869103', 'tblTempVendorCDR_20' ) end [2025-04-09 11:02:21] Production.INFO: ProcessCDR(1,14869103,1,1,2) [2025-04-09 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869103', 'tblTempUsageDetail_20' ) start [2025-04-09 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869103', 'tblTempUsageDetail_20' ) end [2025-04-09 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:02:27] Production.INFO: ==26444== Releasing lock... [2025-04-09 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:02:27] Production.INFO: 55.75 MB #Memory Used# [2025-04-09 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:03:05 [end_date_ymd] => 2025-04-09 11:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:03:05' and `end` < '2025-04-09 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-09 11:03:20] Production.INFO: count ==3752 [2025-04-09 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:03:05 - End Time 2025-04-09 11:03:05 [2025-04-09 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869108', 'tblTempUsageDetail_20' ) start [2025-04-09 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869108', 'tblTempUsageDetail_20' ) end [2025-04-09 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869108', 'tblTempVendorCDR_20' ) start [2025-04-09 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869108', 'tblTempVendorCDR_20' ) end [2025-04-09 11:03:21] Production.INFO: ProcessCDR(1,14869108,1,1,2) [2025-04-09 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869108', 'tblTempUsageDetail_20' ) start [2025-04-09 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869108', 'tblTempUsageDetail_20' ) end [2025-04-09 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:03:27] Production.INFO: ==26562== Releasing lock... [2025-04-09 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:03:27] Production.INFO: 56 MB #Memory Used# [2025-04-09 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:04:05 [end_date_ymd] => 2025-04-09 11:04:05 [RateCDR] => 1 ) [2025-04-09 11: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 08:04:05' and `end` < '2025-04-09 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:04:19] Production.INFO: count ==3754 [2025-04-09 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:04:05 - End Time 2025-04-09 11:04:05 [2025-04-09 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869113', 'tblTempUsageDetail_20' ) start [2025-04-09 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869113', 'tblTempUsageDetail_20' ) end [2025-04-09 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869113', 'tblTempVendorCDR_20' ) start [2025-04-09 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869113', 'tblTempVendorCDR_20' ) end [2025-04-09 11:04:21] Production.INFO: ProcessCDR(1,14869113,1,1,2) [2025-04-09 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869113', 'tblTempUsageDetail_20' ) start [2025-04-09 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869113', 'tblTempUsageDetail_20' ) end [2025-04-09 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:04:26] Production.INFO: ==26635== Releasing lock... [2025-04-09 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:04:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:05:05 [end_date_ymd] => 2025-04-09 11:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:05:05' and `end` < '2025-04-09 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-09 11:05:19] Production.INFO: count ==3767 [2025-04-09 11:05:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:05:05 - End Time 2025-04-09 11:05:05 [2025-04-09 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869118', 'tblTempUsageDetail_20' ) start [2025-04-09 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869118', 'tblTempUsageDetail_20' ) end [2025-04-09 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869118', 'tblTempVendorCDR_20' ) start [2025-04-09 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869118', 'tblTempVendorCDR_20' ) end [2025-04-09 11:05:20] Production.INFO: ProcessCDR(1,14869118,1,1,2) [2025-04-09 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869118', 'tblTempUsageDetail_20' ) start [2025-04-09 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869118', 'tblTempUsageDetail_20' ) end [2025-04-09 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:05:26] Production.INFO: ==26787== Releasing lock... [2025-04-09 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:05:26] Production.INFO: 56 MB #Memory Used# [2025-04-09 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:06:05 [end_date_ymd] => 2025-04-09 11:06:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:06:05' and `end` < '2025-04-09 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-09 11:06:19] Production.INFO: count ==3766 [2025-04-09 11:06:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:06:05 - End Time 2025-04-09 11:06:05 [2025-04-09 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869123', 'tblTempUsageDetail_20' ) start [2025-04-09 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869123', 'tblTempUsageDetail_20' ) end [2025-04-09 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869123', 'tblTempVendorCDR_20' ) start [2025-04-09 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869123', 'tblTempVendorCDR_20' ) end [2025-04-09 11:06:21] Production.INFO: ProcessCDR(1,14869123,1,1,2) [2025-04-09 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869123', 'tblTempUsageDetail_20' ) start [2025-04-09 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869123', 'tblTempUsageDetail_20' ) end [2025-04-09 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:06:26] Production.INFO: ==26861== Releasing lock... [2025-04-09 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:06:26] Production.INFO: 57 MB #Memory Used# [2025-04-09 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:07:06 [end_date_ymd] => 2025-04-09 11:07:06 [RateCDR] => 1 ) [2025-04-09 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:07:06' and `end` < '2025-04-09 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:07:21] Production.INFO: count ==3782 [2025-04-09 11:07:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:07:06 - End Time 2025-04-09 11:07:06 [2025-04-09 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869128', 'tblTempUsageDetail_20' ) start [2025-04-09 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869128', 'tblTempUsageDetail_20' ) end [2025-04-09 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869128', 'tblTempVendorCDR_20' ) start [2025-04-09 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869128', 'tblTempVendorCDR_20' ) end [2025-04-09 11:07:22] Production.INFO: ProcessCDR(1,14869128,1,1,2) [2025-04-09 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869128', 'tblTempUsageDetail_20' ) start [2025-04-09 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869128', 'tblTempUsageDetail_20' ) end [2025-04-09 11:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:07:28] Production.INFO: ==26938== Releasing lock... [2025-04-09 11:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:07:28] Production.INFO: 57 MB #Memory Used# [2025-04-09 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:08:06 [end_date_ymd] => 2025-04-09 11:08:06 [RateCDR] => 1 ) [2025-04-09 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-09 08:08:06' and `end` < '2025-04-09 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-09 11:08:20] Production.INFO: count ==3798 [2025-04-09 11:08:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:08:06 - End Time 2025-04-09 11:08:06 [2025-04-09 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869133', 'tblTempUsageDetail_20' ) start [2025-04-09 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869133', 'tblTempUsageDetail_20' ) end [2025-04-09 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869133', 'tblTempVendorCDR_20' ) start [2025-04-09 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869133', 'tblTempVendorCDR_20' ) end [2025-04-09 11:08:22] Production.INFO: ProcessCDR(1,14869133,1,1,2) [2025-04-09 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869133', 'tblTempUsageDetail_20' ) start [2025-04-09 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869133', 'tblTempUsageDetail_20' ) end [2025-04-09 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:08:28] Production.INFO: ==27087== Releasing lock... [2025-04-09 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:08:28] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:09:05 [end_date_ymd] => 2025-04-09 11:09:05 [RateCDR] => 1 ) [2025-04-09 11: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 08:09:05' and `end` < '2025-04-09 11: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-09 11:09:19] Production.INFO: count ==3797 [2025-04-09 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:09:05 - End Time 2025-04-09 11:09:05 [2025-04-09 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869138', 'tblTempUsageDetail_20' ) start [2025-04-09 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869138', 'tblTempUsageDetail_20' ) end [2025-04-09 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869138', 'tblTempVendorCDR_20' ) start [2025-04-09 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869138', 'tblTempVendorCDR_20' ) end [2025-04-09 11:09:21] Production.INFO: ProcessCDR(1,14869138,1,1,2) [2025-04-09 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869138', 'tblTempUsageDetail_20' ) start [2025-04-09 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869138', 'tblTempUsageDetail_20' ) end [2025-04-09 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:09:26] Production.INFO: ==27159== Releasing lock... [2025-04-09 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:09:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:10:06 [end_date_ymd] => 2025-04-09 11:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 08:10:06' and `end` < '2025-04-09 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-09 11:10:20] Production.INFO: count ==3802 [2025-04-09 11:10:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:10:06 - End Time 2025-04-09 11:10:06 [2025-04-09 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869143', 'tblTempUsageDetail_20' ) start [2025-04-09 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869143', 'tblTempUsageDetail_20' ) end [2025-04-09 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869143', 'tblTempVendorCDR_20' ) start [2025-04-09 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869143', 'tblTempVendorCDR_20' ) end [2025-04-09 11:10:22] Production.INFO: ProcessCDR(1,14869143,1,1,2) [2025-04-09 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869143', 'tblTempUsageDetail_20' ) start [2025-04-09 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869143', 'tblTempUsageDetail_20' ) end [2025-04-09 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:10:27] Production.INFO: ==27237== Releasing lock... [2025-04-09 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:10:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:11:04 [end_date_ymd] => 2025-04-09 11:11:04 [RateCDR] => 1 ) [2025-04-09 11: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-09 08:11:04' and `end` < '2025-04-09 11: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-09 11:11:18] Production.INFO: count ==3905 [2025-04-09 11:11:19] Production.ERROR: pbx CDR StartTime 2025-04-09 08:11:04 - End Time 2025-04-09 11:11:04 [2025-04-09 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869149', 'tblTempUsageDetail_20' ) start [2025-04-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869149', 'tblTempUsageDetail_20' ) end [2025-04-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869149', 'tblTempVendorCDR_20' ) start [2025-04-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869149', 'tblTempVendorCDR_20' ) end [2025-04-09 11:11:19] Production.INFO: ProcessCDR(1,14869149,1,1,2) [2025-04-09 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869149', 'tblTempUsageDetail_20' ) start [2025-04-09 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869149', 'tblTempUsageDetail_20' ) end [2025-04-09 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:11:25] Production.INFO: ==27315== Releasing lock... [2025-04-09 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:11:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-09 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:12:05 [end_date_ymd] => 2025-04-09 11:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:12:05' and `end` < '2025-04-09 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-09 11:12:19] Production.INFO: count ==3947 [2025-04-09 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:12:05 - End Time 2025-04-09 11:12:05 [2025-04-09 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869154', 'tblTempUsageDetail_20' ) start [2025-04-09 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869154', 'tblTempUsageDetail_20' ) end [2025-04-09 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869154', 'tblTempVendorCDR_20' ) start [2025-04-09 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869154', 'tblTempVendorCDR_20' ) end [2025-04-09 11:12:21] Production.INFO: ProcessCDR(1,14869154,1,1,2) [2025-04-09 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869154', 'tblTempUsageDetail_20' ) start [2025-04-09 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869154', 'tblTempUsageDetail_20' ) end [2025-04-09 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:12:27] Production.INFO: ==27465== Releasing lock... [2025-04-09 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:12:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-09 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:13:05 [end_date_ymd] => 2025-04-09 11:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:13:05' and `end` < '2025-04-09 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-09 11:13:18] Production.INFO: count ==3965 [2025-04-09 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:13:05 - End Time 2025-04-09 11:13:05 [2025-04-09 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869159', 'tblTempUsageDetail_20' ) start [2025-04-09 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869159', 'tblTempUsageDetail_20' ) end [2025-04-09 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869159', 'tblTempVendorCDR_20' ) start [2025-04-09 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869159', 'tblTempVendorCDR_20' ) end [2025-04-09 11:13:20] Production.INFO: ProcessCDR(1,14869159,1,1,2) [2025-04-09 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869159', 'tblTempUsageDetail_20' ) start [2025-04-09 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869159', 'tblTempUsageDetail_20' ) end [2025-04-09 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:13:25] Production.INFO: ==27534== Releasing lock... [2025-04-09 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:13:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-09 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:14:05 [end_date_ymd] => 2025-04-09 11:14:05 [RateCDR] => 1 ) [2025-04-09 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:14:05' and `end` < '2025-04-09 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:14:19] Production.INFO: count ==3979 [2025-04-09 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:14:05 - End Time 2025-04-09 11:14:05 [2025-04-09 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869164', 'tblTempUsageDetail_20' ) start [2025-04-09 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869164', 'tblTempUsageDetail_20' ) end [2025-04-09 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869164', 'tblTempVendorCDR_20' ) start [2025-04-09 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869164', 'tblTempVendorCDR_20' ) end [2025-04-09 11:14:21] Production.INFO: ProcessCDR(1,14869164,1,1,2) [2025-04-09 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869164', 'tblTempUsageDetail_20' ) start [2025-04-09 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869164', 'tblTempUsageDetail_20' ) end [2025-04-09 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:14:26] Production.INFO: ==27610== Releasing lock... [2025-04-09 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:14:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:15:06 [end_date_ymd] => 2025-04-09 11:15:06 [RateCDR] => 1 ) [2025-04-09 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:15:06' and `end` < '2025-04-09 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:15:20] Production.INFO: count ==3998 [2025-04-09 11:15:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:15:06 - End Time 2025-04-09 11:15:06 [2025-04-09 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869169', 'tblTempUsageDetail_20' ) start [2025-04-09 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869169', 'tblTempUsageDetail_20' ) end [2025-04-09 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869169', 'tblTempVendorCDR_20' ) start [2025-04-09 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869169', 'tblTempVendorCDR_20' ) end [2025-04-09 11:15:22] Production.INFO: ProcessCDR(1,14869169,1,1,2) [2025-04-09 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869169', 'tblTempUsageDetail_20' ) start [2025-04-09 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869169', 'tblTempUsageDetail_20' ) end [2025-04-09 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:15:27] Production.INFO: ==27761== Releasing lock... [2025-04-09 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:15:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:16:06 [end_date_ymd] => 2025-04-09 11:16:06 [RateCDR] => 1 ) [2025-04-09 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:16:06' and `end` < '2025-04-09 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:16:20] Production.INFO: count ==3997 [2025-04-09 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:16:06 - End Time 2025-04-09 11:16:06 [2025-04-09 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869174', 'tblTempUsageDetail_20' ) start [2025-04-09 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869174', 'tblTempUsageDetail_20' ) end [2025-04-09 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869174', 'tblTempVendorCDR_20' ) start [2025-04-09 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869174', 'tblTempVendorCDR_20' ) end [2025-04-09 11:16:21] Production.INFO: ProcessCDR(1,14869174,1,1,2) [2025-04-09 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869174', 'tblTempUsageDetail_20' ) start [2025-04-09 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869174', 'tblTempUsageDetail_20' ) end [2025-04-09 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:16:25] Production.INFO: ==27830== Releasing lock... [2025-04-09 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:16:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:17:05 [end_date_ymd] => 2025-04-09 11:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:17:05' and `end` < '2025-04-09 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-09 11:17:19] Production.INFO: count ==4011 [2025-04-09 11:17:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:17:05 - End Time 2025-04-09 11:17:05 [2025-04-09 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869179', 'tblTempUsageDetail_20' ) start [2025-04-09 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869179', 'tblTempUsageDetail_20' ) end [2025-04-09 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869179', 'tblTempVendorCDR_20' ) start [2025-04-09 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869179', 'tblTempVendorCDR_20' ) end [2025-04-09 11:17:21] Production.INFO: ProcessCDR(1,14869179,1,1,2) [2025-04-09 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869179', 'tblTempUsageDetail_20' ) start [2025-04-09 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869179', 'tblTempUsageDetail_20' ) end [2025-04-09 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:17:26] Production.INFO: ==27906== Releasing lock... [2025-04-09 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:17:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-09 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:18:05 [end_date_ymd] => 2025-04-09 11:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:18:05' and `end` < '2025-04-09 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-09 11:18:19] Production.INFO: count ==4026 [2025-04-09 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:18:05 - End Time 2025-04-09 11:18:05 [2025-04-09 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869184', 'tblTempUsageDetail_20' ) start [2025-04-09 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869184', 'tblTempUsageDetail_20' ) end [2025-04-09 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869184', 'tblTempVendorCDR_20' ) start [2025-04-09 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869184', 'tblTempVendorCDR_20' ) end [2025-04-09 11:18:21] Production.INFO: ProcessCDR(1,14869184,1,1,2) [2025-04-09 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869184', 'tblTempUsageDetail_20' ) start [2025-04-09 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869184', 'tblTempUsageDetail_20' ) end [2025-04-09 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:18:27] Production.INFO: ==28019== Releasing lock... [2025-04-09 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:18:27] Production.INFO: 58 MB #Memory Used# [2025-04-09 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:19:06 [end_date_ymd] => 2025-04-09 11:19:06 [RateCDR] => 1 ) [2025-04-09 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:19:06' and `end` < '2025-04-09 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:19:19] Production.INFO: count ==4030 [2025-04-09 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:19:06 - End Time 2025-04-09 11:19:06 [2025-04-09 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869189', 'tblTempUsageDetail_20' ) start [2025-04-09 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869189', 'tblTempUsageDetail_20' ) end [2025-04-09 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869189', 'tblTempVendorCDR_20' ) start [2025-04-09 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869189', 'tblTempVendorCDR_20' ) end [2025-04-09 11:19:21] Production.INFO: ProcessCDR(1,14869189,1,1,2) [2025-04-09 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869189', 'tblTempUsageDetail_20' ) start [2025-04-09 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869189', 'tblTempUsageDetail_20' ) end [2025-04-09 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:19:27] Production.INFO: ==28094== Releasing lock... [2025-04-09 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:19:27] Production.INFO: 58 MB #Memory Used# [2025-04-09 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:20:06 [end_date_ymd] => 2025-04-09 11:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 08:20:06' and `end` < '2025-04-09 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-09 11:20:20] Production.INFO: count ==4029 [2025-04-09 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:20:06 - End Time 2025-04-09 11:20:06 [2025-04-09 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869195', 'tblTempUsageDetail_20' ) start [2025-04-09 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869195', 'tblTempUsageDetail_20' ) end [2025-04-09 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869195', 'tblTempVendorCDR_20' ) start [2025-04-09 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869195', 'tblTempVendorCDR_20' ) end [2025-04-09 11:20:21] Production.INFO: ProcessCDR(1,14869195,1,1,2) [2025-04-09 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869195', 'tblTempUsageDetail_20' ) start [2025-04-09 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869195', 'tblTempUsageDetail_20' ) end [2025-04-09 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:20:25] Production.INFO: ==28167== Releasing lock... [2025-04-09 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:20:25] Production.INFO: 58 MB #Memory Used# [2025-04-09 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:21:06 [end_date_ymd] => 2025-04-09 11:21:06 [RateCDR] => 1 ) [2025-04-09 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:21:06' and `end` < '2025-04-09 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:21:20] Production.INFO: count ==4130 [2025-04-09 11:21:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:21:06 - End Time 2025-04-09 11:21:06 [2025-04-09 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869200', 'tblTempUsageDetail_20' ) start [2025-04-09 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869200', 'tblTempUsageDetail_20' ) end [2025-04-09 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869200', 'tblTempVendorCDR_20' ) start [2025-04-09 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869200', 'tblTempVendorCDR_20' ) end [2025-04-09 11:21:22] Production.INFO: ProcessCDR(1,14869200,1,1,2) [2025-04-09 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869200', 'tblTempUsageDetail_20' ) start [2025-04-09 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869200', 'tblTempUsageDetail_20' ) end [2025-04-09 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:21:28] Production.INFO: ==28242== Releasing lock... [2025-04-09 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:21:28] Production.INFO: 58.75 MB #Memory Used# [2025-04-09 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:22:06 [end_date_ymd] => 2025-04-09 11:22:06 [RateCDR] => 1 ) [2025-04-09 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:22:06' and `end` < '2025-04-09 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:22:20] Production.INFO: count ==4137 [2025-04-09 11:22:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:22:06 - End Time 2025-04-09 11:22:06 [2025-04-09 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869205', 'tblTempUsageDetail_20' ) start [2025-04-09 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869205', 'tblTempUsageDetail_20' ) end [2025-04-09 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869205', 'tblTempVendorCDR_20' ) start [2025-04-09 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869205', 'tblTempVendorCDR_20' ) end [2025-04-09 11:22:22] Production.INFO: ProcessCDR(1,14869205,1,1,2) [2025-04-09 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869205', 'tblTempUsageDetail_20' ) start [2025-04-09 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869205', 'tblTempUsageDetail_20' ) end [2025-04-09 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:22:27] Production.INFO: ==28321== Releasing lock... [2025-04-09 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:22:27] Production.INFO: 59 MB #Memory Used# [2025-04-09 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:23:04 [end_date_ymd] => 2025-04-09 11:23:04 [RateCDR] => 1 ) [2025-04-09 11: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-09 08:23:04' and `end` < '2025-04-09 11: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-09 11:23:18] Production.INFO: count ==4142 [2025-04-09 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:23:04 - End Time 2025-04-09 11:23:04 [2025-04-09 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869210', 'tblTempUsageDetail_20' ) start [2025-04-09 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869210', 'tblTempUsageDetail_20' ) end [2025-04-09 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869210', 'tblTempVendorCDR_20' ) start [2025-04-09 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869210', 'tblTempVendorCDR_20' ) end [2025-04-09 11:23:20] Production.INFO: ProcessCDR(1,14869210,1,1,2) [2025-04-09 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869210', 'tblTempUsageDetail_20' ) start [2025-04-09 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869210', 'tblTempUsageDetail_20' ) end [2025-04-09 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:23:25] Production.INFO: ==28395== Releasing lock... [2025-04-09 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:23:25] Production.INFO: 59 MB #Memory Used# [2025-04-09 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:24:05 [end_date_ymd] => 2025-04-09 11:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:24:05' and `end` < '2025-04-09 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-09 11:24:19] Production.INFO: count ==4162 [2025-04-09 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:24:05 - End Time 2025-04-09 11:24:05 [2025-04-09 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869215', 'tblTempUsageDetail_20' ) start [2025-04-09 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869215', 'tblTempUsageDetail_20' ) end [2025-04-09 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869215', 'tblTempVendorCDR_20' ) start [2025-04-09 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869215', 'tblTempVendorCDR_20' ) end [2025-04-09 11:24:21] Production.INFO: ProcessCDR(1,14869215,1,1,2) [2025-04-09 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869215', 'tblTempUsageDetail_20' ) start [2025-04-09 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869215', 'tblTempUsageDetail_20' ) end [2025-04-09 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:24:27] Production.INFO: ==28469== Releasing lock... [2025-04-09 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:24:27] Production.INFO: 59 MB #Memory Used# [2025-04-09 11:25:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:25:07 [end_date_ymd] => 2025-04-09 11:25:07 [RateCDR] => 1 ) [2025-04-09 11:25: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 08:25:07' and `end` < '2025-04-09 11:25: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-09 11:25:20] Production.INFO: count ==4169 [2025-04-09 11:25:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:25:07 - End Time 2025-04-09 11:25:07 [2025-04-09 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869220', 'tblTempUsageDetail_20' ) start [2025-04-09 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869220', 'tblTempUsageDetail_20' ) end [2025-04-09 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869220', 'tblTempVendorCDR_20' ) start [2025-04-09 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869220', 'tblTempVendorCDR_20' ) end [2025-04-09 11:25:22] Production.INFO: ProcessCDR(1,14869220,1,1,2) [2025-04-09 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869220', 'tblTempUsageDetail_20' ) start [2025-04-09 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869220', 'tblTempUsageDetail_20' ) end [2025-04-09 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:25:27] Production.INFO: ==28544== Releasing lock... [2025-04-09 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:25:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:26:05 [end_date_ymd] => 2025-04-09 11:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:26:05' and `end` < '2025-04-09 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-09 11:26:19] Production.INFO: count ==4181 [2025-04-09 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:26:05 - End Time 2025-04-09 11:26:05 [2025-04-09 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869225', 'tblTempUsageDetail_20' ) start [2025-04-09 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869225', 'tblTempUsageDetail_20' ) end [2025-04-09 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869225', 'tblTempVendorCDR_20' ) start [2025-04-09 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869225', 'tblTempVendorCDR_20' ) end [2025-04-09 11:26:20] Production.INFO: ProcessCDR(1,14869225,1,1,2) [2025-04-09 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869225', 'tblTempUsageDetail_20' ) start [2025-04-09 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869225', 'tblTempUsageDetail_20' ) end [2025-04-09 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:26:26] Production.INFO: ==28629== Releasing lock... [2025-04-09 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:26:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:27:05 [end_date_ymd] => 2025-04-09 11:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:27:05' and `end` < '2025-04-09 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-09 11:27:18] Production.INFO: count ==4185 [2025-04-09 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:27:05 - End Time 2025-04-09 11:27:05 [2025-04-09 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869230', 'tblTempUsageDetail_20' ) start [2025-04-09 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869230', 'tblTempUsageDetail_20' ) end [2025-04-09 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869230', 'tblTempVendorCDR_20' ) start [2025-04-09 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869230', 'tblTempVendorCDR_20' ) end [2025-04-09 11:27:20] Production.INFO: ProcessCDR(1,14869230,1,1,2) [2025-04-09 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869230', 'tblTempUsageDetail_20' ) start [2025-04-09 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869230', 'tblTempUsageDetail_20' ) end [2025-04-09 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:27:26] Production.INFO: ==28718== Releasing lock... [2025-04-09 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:27:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:28:05 [end_date_ymd] => 2025-04-09 11:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:28:05' and `end` < '2025-04-09 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-09 11:28:19] Production.INFO: count ==4211 [2025-04-09 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:28:05 - End Time 2025-04-09 11:28:05 [2025-04-09 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869235', 'tblTempUsageDetail_20' ) start [2025-04-09 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869235', 'tblTempUsageDetail_20' ) end [2025-04-09 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869235', 'tblTempVendorCDR_20' ) start [2025-04-09 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869235', 'tblTempVendorCDR_20' ) end [2025-04-09 11:28:21] Production.INFO: ProcessCDR(1,14869235,1,1,2) [2025-04-09 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869235', 'tblTempUsageDetail_20' ) start [2025-04-09 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869235', 'tblTempUsageDetail_20' ) end [2025-04-09 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:28:26] Production.INFO: ==28810== Releasing lock... [2025-04-09 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:28:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-09 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:29:06 [end_date_ymd] => 2025-04-09 11:29:06 [RateCDR] => 1 ) [2025-04-09 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:29:06' and `end` < '2025-04-09 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:29:19] Production.INFO: count ==4232 [2025-04-09 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:29:06 - End Time 2025-04-09 11:29:06 [2025-04-09 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869240', 'tblTempUsageDetail_20' ) start [2025-04-09 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869240', 'tblTempUsageDetail_20' ) end [2025-04-09 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869240', 'tblTempVendorCDR_20' ) start [2025-04-09 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869240', 'tblTempVendorCDR_20' ) end [2025-04-09 11:29:22] Production.INFO: ProcessCDR(1,14869240,1,1,2) [2025-04-09 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869240', 'tblTempUsageDetail_20' ) start [2025-04-09 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869240', 'tblTempUsageDetail_20' ) end [2025-04-09 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:29:27] Production.INFO: ==28891== Releasing lock... [2025-04-09 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:29:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-09 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:30:06 [end_date_ymd] => 2025-04-09 11:30:06 [RateCDR] => 1 ) [2025-04-09 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:30:06' and `end` < '2025-04-09 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:30:20] Production.INFO: count ==4227 [2025-04-09 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:30:06 - End Time 2025-04-09 11:30:06 [2025-04-09 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869246', 'tblTempUsageDetail_20' ) start [2025-04-09 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869246', 'tblTempUsageDetail_20' ) end [2025-04-09 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869246', 'tblTempVendorCDR_20' ) start [2025-04-09 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869246', 'tblTempVendorCDR_20' ) end [2025-04-09 11:30:21] Production.INFO: ProcessCDR(1,14869246,1,1,2) [2025-04-09 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869246', 'tblTempUsageDetail_20' ) start [2025-04-09 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869246', 'tblTempUsageDetail_20' ) end [2025-04-09 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:30:27] Production.INFO: ==28973== Releasing lock... [2025-04-09 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:30:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-09 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:31:05 [end_date_ymd] => 2025-04-09 11:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:31:05' and `end` < '2025-04-09 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-09 11:31:19] Production.INFO: count ==4359 [2025-04-09 11:31:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:31:05 - End Time 2025-04-09 11:31:05 [2025-04-09 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869251', 'tblTempUsageDetail_20' ) start [2025-04-09 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869251', 'tblTempUsageDetail_20' ) end [2025-04-09 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869251', 'tblTempVendorCDR_20' ) start [2025-04-09 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869251', 'tblTempVendorCDR_20' ) end [2025-04-09 11:31:21] Production.INFO: ProcessCDR(1,14869251,1,1,2) [2025-04-09 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869251', 'tblTempUsageDetail_20' ) start [2025-04-09 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869251', 'tblTempUsageDetail_20' ) end [2025-04-09 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:31:27] Production.INFO: ==29061== Releasing lock... [2025-04-09 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:31:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:32:05 [end_date_ymd] => 2025-04-09 11:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:32:05' and `end` < '2025-04-09 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-09 11:32:19] Production.INFO: count ==4373 [2025-04-09 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:32:05 - End Time 2025-04-09 11:32:05 [2025-04-09 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869256', 'tblTempUsageDetail_20' ) start [2025-04-09 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869256', 'tblTempUsageDetail_20' ) end [2025-04-09 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869256', 'tblTempVendorCDR_20' ) start [2025-04-09 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869256', 'tblTempVendorCDR_20' ) end [2025-04-09 11:32:21] Production.INFO: ProcessCDR(1,14869256,1,1,2) [2025-04-09 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869256', 'tblTempUsageDetail_20' ) start [2025-04-09 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869256', 'tblTempUsageDetail_20' ) end [2025-04-09 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:32:26] Production.INFO: ==29135== Releasing lock... [2025-04-09 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:32:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:33:06 [end_date_ymd] => 2025-04-09 11:33:06 [RateCDR] => 1 ) [2025-04-09 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:33:06' and `end` < '2025-04-09 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:33:19] Production.INFO: count ==4383 [2025-04-09 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:33:06 - End Time 2025-04-09 11:33:06 [2025-04-09 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869261', 'tblTempUsageDetail_20' ) start [2025-04-09 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869261', 'tblTempUsageDetail_20' ) end [2025-04-09 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869261', 'tblTempVendorCDR_20' ) start [2025-04-09 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869261', 'tblTempVendorCDR_20' ) end [2025-04-09 11:33:21] Production.INFO: ProcessCDR(1,14869261,1,1,2) [2025-04-09 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869261', 'tblTempUsageDetail_20' ) start [2025-04-09 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869261', 'tblTempUsageDetail_20' ) end [2025-04-09 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:33:27] Production.INFO: ==29249== Releasing lock... [2025-04-09 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:33:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:34:05 [end_date_ymd] => 2025-04-09 11:34:05 [RateCDR] => 1 ) [2025-04-09 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:34:05' and `end` < '2025-04-09 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:34:19] Production.INFO: count ==4415 [2025-04-09 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:34:05 - End Time 2025-04-09 11:34:05 [2025-04-09 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869266', 'tblTempUsageDetail_20' ) start [2025-04-09 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869266', 'tblTempUsageDetail_20' ) end [2025-04-09 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869266', 'tblTempVendorCDR_20' ) start [2025-04-09 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869266', 'tblTempVendorCDR_20' ) end [2025-04-09 11:34:21] Production.INFO: ProcessCDR(1,14869266,1,1,2) [2025-04-09 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869266', 'tblTempUsageDetail_20' ) start [2025-04-09 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869266', 'tblTempUsageDetail_20' ) end [2025-04-09 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:34:27] Production.INFO: ==29324== Releasing lock... [2025-04-09 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:34:27] Production.INFO: 61 MB #Memory Used# [2025-04-09 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:35:05 [end_date_ymd] => 2025-04-09 11:35:05 [RateCDR] => 1 ) [2025-04-09 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:35:05' and `end` < '2025-04-09 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:35:19] Production.INFO: count ==4417 [2025-04-09 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:35:05 - End Time 2025-04-09 11:35:05 [2025-04-09 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869271', 'tblTempUsageDetail_20' ) start [2025-04-09 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869271', 'tblTempUsageDetail_20' ) end [2025-04-09 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869271', 'tblTempVendorCDR_20' ) start [2025-04-09 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869271', 'tblTempVendorCDR_20' ) end [2025-04-09 11:35:21] Production.INFO: ProcessCDR(1,14869271,1,1,2) [2025-04-09 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869271', 'tblTempUsageDetail_20' ) start [2025-04-09 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869271', 'tblTempUsageDetail_20' ) end [2025-04-09 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:35:27] Production.INFO: ==29397== Releasing lock... [2025-04-09 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:35:27] Production.INFO: 61 MB #Memory Used# [2025-04-09 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:36:05 [end_date_ymd] => 2025-04-09 11:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:36:05' and `end` < '2025-04-09 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-09 11:36:19] Production.INFO: count ==4425 [2025-04-09 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:36:05 - End Time 2025-04-09 11:36:05 [2025-04-09 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869276', 'tblTempUsageDetail_20' ) start [2025-04-09 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869276', 'tblTempUsageDetail_20' ) end [2025-04-09 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869276', 'tblTempVendorCDR_20' ) start [2025-04-09 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869276', 'tblTempVendorCDR_20' ) end [2025-04-09 11:36:21] Production.INFO: ProcessCDR(1,14869276,1,1,2) [2025-04-09 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869276', 'tblTempUsageDetail_20' ) start [2025-04-09 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869276', 'tblTempUsageDetail_20' ) end [2025-04-09 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:36:27] Production.INFO: ==29466== Releasing lock... [2025-04-09 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:36:27] Production.INFO: 61 MB #Memory Used# [2025-04-09 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:37:05 [end_date_ymd] => 2025-04-09 11:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:37:05' and `end` < '2025-04-09 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-09 11:37:19] Production.INFO: count ==4612 [2025-04-09 11:37:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:37:05 - End Time 2025-04-09 11:37:05 [2025-04-09 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869281', 'tblTempUsageDetail_20' ) start [2025-04-09 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869281', 'tblTempUsageDetail_20' ) end [2025-04-09 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869281', 'tblTempVendorCDR_20' ) start [2025-04-09 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869281', 'tblTempVendorCDR_20' ) end [2025-04-09 11:37:22] Production.INFO: ProcessCDR(1,14869281,1,1,2) [2025-04-09 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869281', 'tblTempUsageDetail_20' ) start [2025-04-09 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869281', 'tblTempUsageDetail_20' ) end [2025-04-09 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:37:28] Production.INFO: ==29563== Releasing lock... [2025-04-09 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:37:28] Production.INFO: 62.5 MB #Memory Used# [2025-04-09 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:38:05 [end_date_ymd] => 2025-04-09 11:38:05 [RateCDR] => 1 ) [2025-04-09 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:38:05' and `end` < '2025-04-09 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:38:18] Production.INFO: count ==4623 [2025-04-09 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-09 08:38:05 - End Time 2025-04-09 11:38:05 [2025-04-09 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869286', 'tblTempUsageDetail_20' ) start [2025-04-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869286', 'tblTempUsageDetail_20' ) end [2025-04-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869286', 'tblTempVendorCDR_20' ) start [2025-04-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869286', 'tblTempVendorCDR_20' ) end [2025-04-09 11:38:21] Production.INFO: ProcessCDR(1,14869286,1,1,2) [2025-04-09 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869286', 'tblTempUsageDetail_20' ) start [2025-04-09 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869286', 'tblTempUsageDetail_20' ) end [2025-04-09 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:38:27] Production.INFO: ==29635== Releasing lock... [2025-04-09 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:38:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-09 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:39:05 [end_date_ymd] => 2025-04-09 11:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:39:05' and `end` < '2025-04-09 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-09 11:39:19] Production.INFO: count ==4628 [2025-04-09 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:39:05 - End Time 2025-04-09 11:39:05 [2025-04-09 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869291', 'tblTempUsageDetail_20' ) start [2025-04-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869291', 'tblTempUsageDetail_20' ) end [2025-04-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869291', 'tblTempVendorCDR_20' ) start [2025-04-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869291', 'tblTempVendorCDR_20' ) end [2025-04-09 11:39:21] Production.INFO: ProcessCDR(1,14869291,1,1,2) [2025-04-09 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869291', 'tblTempUsageDetail_20' ) start [2025-04-09 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869291', 'tblTempUsageDetail_20' ) end [2025-04-09 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:39:27] Production.INFO: ==29708== Releasing lock... [2025-04-09 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-09 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:40:06 [end_date_ymd] => 2025-04-09 11:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 08:40:06' and `end` < '2025-04-09 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-09 11:40:20] Production.INFO: count ==5080 [2025-04-09 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:40:06 - End Time 2025-04-09 11:40:06 [2025-04-09 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869297', 'tblTempUsageDetail_20' ) start [2025-04-09 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869297', 'tblTempUsageDetail_20' ) end [2025-04-09 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869297', 'tblTempVendorCDR_20' ) start [2025-04-09 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869297', 'tblTempVendorCDR_20' ) end [2025-04-09 11:40:23] Production.INFO: ProcessCDR(1,14869297,1,1,2) [2025-04-09 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869297', 'tblTempUsageDetail_20' ) start [2025-04-09 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869297', 'tblTempUsageDetail_20' ) end [2025-04-09 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:40:29] Production.INFO: ==29785== Releasing lock... [2025-04-09 11:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:40:29] Production.INFO: 66 MB #Memory Used# [2025-04-09 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:41:05 [end_date_ymd] => 2025-04-09 11:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:41:05' and `end` < '2025-04-09 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-09 11:41:19] Production.INFO: count ==5181 [2025-04-09 11:41:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:41:05 - End Time 2025-04-09 11:41:05 [2025-04-09 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869302', 'tblTempUsageDetail_20' ) start [2025-04-09 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869302', 'tblTempUsageDetail_20' ) end [2025-04-09 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869302', 'tblTempVendorCDR_20' ) start [2025-04-09 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869302', 'tblTempVendorCDR_20' ) end [2025-04-09 11:41:22] Production.INFO: ProcessCDR(1,14869302,1,1,2) [2025-04-09 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869302', 'tblTempUsageDetail_20' ) start [2025-04-09 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869302', 'tblTempUsageDetail_20' ) end [2025-04-09 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:41:27] Production.INFO: ==29864== Releasing lock... [2025-04-09 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:41:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-09 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:42:05 [end_date_ymd] => 2025-04-09 11:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:42:05' and `end` < '2025-04-09 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-09 11:42:18] Production.INFO: count ==5235 [2025-04-09 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:42:05 - End Time 2025-04-09 11:42:05 [2025-04-09 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869307', 'tblTempUsageDetail_20' ) start [2025-04-09 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869307', 'tblTempUsageDetail_20' ) end [2025-04-09 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869307', 'tblTempVendorCDR_20' ) start [2025-04-09 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869307', 'tblTempVendorCDR_20' ) end [2025-04-09 11:42:21] Production.INFO: ProcessCDR(1,14869307,1,1,2) [2025-04-09 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869307', 'tblTempUsageDetail_20' ) start [2025-04-09 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869307', 'tblTempUsageDetail_20' ) end [2025-04-09 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:42:27] Production.INFO: ==29932== Releasing lock... [2025-04-09 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:42:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-09 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:43:05 [end_date_ymd] => 2025-04-09 11:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:43:05' and `end` < '2025-04-09 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-09 11:43:19] Production.INFO: count ==5260 [2025-04-09 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:43:05 - End Time 2025-04-09 11:43:05 [2025-04-09 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869312', 'tblTempUsageDetail_20' ) start [2025-04-09 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869312', 'tblTempUsageDetail_20' ) end [2025-04-09 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869312', 'tblTempVendorCDR_20' ) start [2025-04-09 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869312', 'tblTempVendorCDR_20' ) end [2025-04-09 11:43:21] Production.INFO: ProcessCDR(1,14869312,1,1,2) [2025-04-09 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869312', 'tblTempUsageDetail_20' ) start [2025-04-09 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869312', 'tblTempUsageDetail_20' ) end [2025-04-09 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:43:27] Production.INFO: ==30007== Releasing lock... [2025-04-09 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:43:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-09 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:44:05 [end_date_ymd] => 2025-04-09 11:44:05 [RateCDR] => 1 ) [2025-04-09 11: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 08:44:05' and `end` < '2025-04-09 11: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-09 11:44:18] Production.INFO: count ==5286 [2025-04-09 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:44:05 - End Time 2025-04-09 11:44:05 [2025-04-09 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869317', 'tblTempUsageDetail_20' ) start [2025-04-09 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869317', 'tblTempUsageDetail_20' ) end [2025-04-09 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869317', 'tblTempVendorCDR_20' ) start [2025-04-09 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869317', 'tblTempVendorCDR_20' ) end [2025-04-09 11:44:21] Production.INFO: ProcessCDR(1,14869317,1,1,2) [2025-04-09 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869317', 'tblTempUsageDetail_20' ) start [2025-04-09 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869317', 'tblTempUsageDetail_20' ) end [2025-04-09 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:44:27] Production.INFO: ==30080== Releasing lock... [2025-04-09 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:44:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-09 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:45:05 [end_date_ymd] => 2025-04-09 11:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:45:05' and `end` < '2025-04-09 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-09 11:45:19] Production.INFO: count ==5298 [2025-04-09 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:45:05 - End Time 2025-04-09 11:45:05 [2025-04-09 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869322', 'tblTempUsageDetail_20' ) start [2025-04-09 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869322', 'tblTempUsageDetail_20' ) end [2025-04-09 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869322', 'tblTempVendorCDR_20' ) start [2025-04-09 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869322', 'tblTempVendorCDR_20' ) end [2025-04-09 11:45:21] Production.INFO: ProcessCDR(1,14869322,1,1,2) [2025-04-09 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869322', 'tblTempUsageDetail_20' ) start [2025-04-09 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869322', 'tblTempUsageDetail_20' ) end [2025-04-09 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:45:27] Production.INFO: ==30150== Releasing lock... [2025-04-09 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:45:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-09 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:46:05 [end_date_ymd] => 2025-04-09 11:46:05 [RateCDR] => 1 ) [2025-04-09 11: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 08:46:05' and `end` < '2025-04-09 11: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-09 11:46:19] Production.INFO: count ==5315 [2025-04-09 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:46:05 - End Time 2025-04-09 11:46:05 [2025-04-09 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869327', 'tblTempUsageDetail_20' ) start [2025-04-09 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869327', 'tblTempUsageDetail_20' ) end [2025-04-09 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869327', 'tblTempVendorCDR_20' ) start [2025-04-09 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869327', 'tblTempVendorCDR_20' ) end [2025-04-09 11:46:22] Production.INFO: ProcessCDR(1,14869327,1,1,2) [2025-04-09 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869327', 'tblTempUsageDetail_20' ) start [2025-04-09 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869327', 'tblTempUsageDetail_20' ) end [2025-04-09 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:46:27] Production.INFO: ==30228== Releasing lock... [2025-04-09 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:46:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-09 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:47:05 [end_date_ymd] => 2025-04-09 11:47:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:47:05' and `end` < '2025-04-09 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-09 11:47:19] Production.INFO: count ==5315 [2025-04-09 11:47:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:47:05 - End Time 2025-04-09 11:47:05 [2025-04-09 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869332', 'tblTempUsageDetail_20' ) start [2025-04-09 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869332', 'tblTempUsageDetail_20' ) end [2025-04-09 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869332', 'tblTempVendorCDR_20' ) start [2025-04-09 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869332', 'tblTempVendorCDR_20' ) end [2025-04-09 11:47:22] Production.INFO: ProcessCDR(1,14869332,1,1,2) [2025-04-09 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869332', 'tblTempUsageDetail_20' ) start [2025-04-09 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869332', 'tblTempUsageDetail_20' ) end [2025-04-09 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:47:27] Production.INFO: ==30301== Releasing lock... [2025-04-09 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:47:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-09 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:48:05 [end_date_ymd] => 2025-04-09 11:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:48:05' and `end` < '2025-04-09 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-09 11:48:19] Production.INFO: count ==5324 [2025-04-09 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:48:05 - End Time 2025-04-09 11:48:05 [2025-04-09 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869337', 'tblTempUsageDetail_20' ) start [2025-04-09 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869337', 'tblTempUsageDetail_20' ) end [2025-04-09 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869337', 'tblTempVendorCDR_20' ) start [2025-04-09 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869337', 'tblTempVendorCDR_20' ) end [2025-04-09 11:48:22] Production.INFO: ProcessCDR(1,14869337,1,1,2) [2025-04-09 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869337', 'tblTempUsageDetail_20' ) start [2025-04-09 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869337', 'tblTempUsageDetail_20' ) end [2025-04-09 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:48:27] Production.INFO: ==30371== Releasing lock... [2025-04-09 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:48:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-09 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:49:05 [end_date_ymd] => 2025-04-09 11:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:49:05' and `end` < '2025-04-09 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-09 11:49:19] Production.INFO: count ==5338 [2025-04-09 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:49:05 - End Time 2025-04-09 11:49:05 [2025-04-09 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869342', 'tblTempUsageDetail_20' ) start [2025-04-09 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869342', 'tblTempUsageDetail_20' ) end [2025-04-09 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869342', 'tblTempVendorCDR_20' ) start [2025-04-09 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869342', 'tblTempVendorCDR_20' ) end [2025-04-09 11:49:21] Production.INFO: ProcessCDR(1,14869342,1,1,2) [2025-04-09 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869342', 'tblTempUsageDetail_20' ) start [2025-04-09 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869342', 'tblTempUsageDetail_20' ) end [2025-04-09 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:49:27] Production.INFO: ==30483== Releasing lock... [2025-04-09 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:49:27] Production.INFO: 68 MB #Memory Used# [2025-04-09 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:50:06 [end_date_ymd] => 2025-04-09 11:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 08:50:06' and `end` < '2025-04-09 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-09 11:50:20] Production.INFO: count ==5353 [2025-04-09 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:50:06 - End Time 2025-04-09 11:50:06 [2025-04-09 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869347', 'tblTempUsageDetail_20' ) start [2025-04-09 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869347', 'tblTempUsageDetail_20' ) end [2025-04-09 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869347', 'tblTempVendorCDR_20' ) start [2025-04-09 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869347', 'tblTempVendorCDR_20' ) end [2025-04-09 11:50:22] Production.INFO: ProcessCDR(1,14869347,1,1,2) [2025-04-09 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869347', 'tblTempUsageDetail_20' ) start [2025-04-09 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869347', 'tblTempUsageDetail_20' ) end [2025-04-09 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:50:27] Production.INFO: ==30556== Releasing lock... [2025-04-09 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:50:27] Production.INFO: 68 MB #Memory Used# [2025-04-09 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:51:05 [end_date_ymd] => 2025-04-09 11:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:51:05' and `end` < '2025-04-09 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-09 11:51:18] Production.INFO: count ==5421 [2025-04-09 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:51:05 - End Time 2025-04-09 11:51:05 [2025-04-09 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869353', 'tblTempUsageDetail_20' ) start [2025-04-09 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869353', 'tblTempUsageDetail_20' ) end [2025-04-09 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869353', 'tblTempVendorCDR_20' ) start [2025-04-09 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869353', 'tblTempVendorCDR_20' ) end [2025-04-09 11:51:21] Production.INFO: ProcessCDR(1,14869353,1,1,2) [2025-04-09 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869353', 'tblTempUsageDetail_20' ) start [2025-04-09 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869353', 'tblTempUsageDetail_20' ) end [2025-04-09 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:51:27] Production.INFO: ==30631== Releasing lock... [2025-04-09 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:51:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-09 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:52:05 [end_date_ymd] => 2025-04-09 11:52:05 [RateCDR] => 1 ) [2025-04-09 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:52:05' and `end` < '2025-04-09 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:52:19] Production.INFO: count ==5452 [2025-04-09 11:52:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:52:05 - End Time 2025-04-09 11:52:05 [2025-04-09 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869358', 'tblTempUsageDetail_20' ) start [2025-04-09 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869358', 'tblTempUsageDetail_20' ) end [2025-04-09 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869358', 'tblTempVendorCDR_20' ) start [2025-04-09 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869358', 'tblTempVendorCDR_20' ) end [2025-04-09 11:52:22] Production.INFO: ProcessCDR(1,14869358,1,1,2) [2025-04-09 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869358', 'tblTempUsageDetail_20' ) start [2025-04-09 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869358', 'tblTempUsageDetail_20' ) end [2025-04-09 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:52:27] Production.INFO: ==30710== Releasing lock... [2025-04-09 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:52:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-09 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:53:05 [end_date_ymd] => 2025-04-09 11:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:53:05' and `end` < '2025-04-09 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-09 11:53:19] Production.INFO: count ==5447 [2025-04-09 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:53:05 - End Time 2025-04-09 11:53:05 [2025-04-09 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869363', 'tblTempUsageDetail_20' ) start [2025-04-09 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869363', 'tblTempUsageDetail_20' ) end [2025-04-09 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869363', 'tblTempVendorCDR_20' ) start [2025-04-09 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869363', 'tblTempVendorCDR_20' ) end [2025-04-09 11:53:21] Production.INFO: ProcessCDR(1,14869363,1,1,2) [2025-04-09 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869363', 'tblTempUsageDetail_20' ) start [2025-04-09 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869363', 'tblTempUsageDetail_20' ) end [2025-04-09 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:53:26] Production.INFO: ==30781== Releasing lock... [2025-04-09 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:53:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-09 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:54:06 [end_date_ymd] => 2025-04-09 11:54:06 [RateCDR] => 1 ) [2025-04-09 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 08:54:06' and `end` < '2025-04-09 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 11:54:20] Production.INFO: count ==5451 [2025-04-09 11:54:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:54:06 - End Time 2025-04-09 11:54:06 [2025-04-09 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869368', 'tblTempUsageDetail_20' ) start [2025-04-09 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869368', 'tblTempUsageDetail_20' ) end [2025-04-09 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869368', 'tblTempVendorCDR_20' ) start [2025-04-09 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869368', 'tblTempVendorCDR_20' ) end [2025-04-09 11:54:22] Production.INFO: ProcessCDR(1,14869368,1,1,2) [2025-04-09 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869368', 'tblTempUsageDetail_20' ) start [2025-04-09 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869368', 'tblTempUsageDetail_20' ) end [2025-04-09 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:54:27] Production.INFO: ==30852== Releasing lock... [2025-04-09 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:54:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-09 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:55:05 [end_date_ymd] => 2025-04-09 11:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:55:05' and `end` < '2025-04-09 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-09 11:55:19] Production.INFO: count ==5475 [2025-04-09 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:55:05 - End Time 2025-04-09 11:55:05 [2025-04-09 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869373', 'tblTempUsageDetail_20' ) start [2025-04-09 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869373', 'tblTempUsageDetail_20' ) end [2025-04-09 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869373', 'tblTempVendorCDR_20' ) start [2025-04-09 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869373', 'tblTempVendorCDR_20' ) end [2025-04-09 11:55:21] Production.INFO: ProcessCDR(1,14869373,1,1,2) [2025-04-09 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869373', 'tblTempUsageDetail_20' ) start [2025-04-09 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869373', 'tblTempUsageDetail_20' ) end [2025-04-09 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:55:27] Production.INFO: ==30923== Releasing lock... [2025-04-09 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:55:27] Production.INFO: 69 MB #Memory Used# [2025-04-09 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:56:05 [end_date_ymd] => 2025-04-09 11:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:56:05' and `end` < '2025-04-09 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-09 11:56:19] Production.INFO: count ==5481 [2025-04-09 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:56:05 - End Time 2025-04-09 11:56:05 [2025-04-09 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869378', 'tblTempUsageDetail_20' ) start [2025-04-09 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869378', 'tblTempUsageDetail_20' ) end [2025-04-09 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869378', 'tblTempVendorCDR_20' ) start [2025-04-09 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869378', 'tblTempVendorCDR_20' ) end [2025-04-09 11:56:21] Production.INFO: ProcessCDR(1,14869378,1,1,2) [2025-04-09 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869378', 'tblTempUsageDetail_20' ) start [2025-04-09 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869378', 'tblTempUsageDetail_20' ) end [2025-04-09 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:56:26] Production.INFO: ==30999== Releasing lock... [2025-04-09 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:56:26] Production.INFO: 69 MB #Memory Used# [2025-04-09 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:57:05 [end_date_ymd] => 2025-04-09 11:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:57:05' and `end` < '2025-04-09 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-09 11:57:19] Production.INFO: count ==5495 [2025-04-09 11:57:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:57:05 - End Time 2025-04-09 11:57:05 [2025-04-09 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869383', 'tblTempUsageDetail_20' ) start [2025-04-09 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869383', 'tblTempUsageDetail_20' ) end [2025-04-09 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869383', 'tblTempVendorCDR_20' ) start [2025-04-09 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869383', 'tblTempVendorCDR_20' ) end [2025-04-09 11:57:22] Production.INFO: ProcessCDR(1,14869383,1,1,2) [2025-04-09 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869383', 'tblTempUsageDetail_20' ) start [2025-04-09 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869383', 'tblTempUsageDetail_20' ) end [2025-04-09 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:57:28] Production.INFO: ==31072== Releasing lock... [2025-04-09 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:57:28] Production.INFO: 69 MB #Memory Used# [2025-04-09 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:58:05 [end_date_ymd] => 2025-04-09 11:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:58:05' and `end` < '2025-04-09 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-09 11:58:19] Production.INFO: count ==5641 [2025-04-09 11:58:22] Production.ERROR: pbx CDR StartTime 2025-04-09 08:58:05 - End Time 2025-04-09 11:58:05 [2025-04-09 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869388', 'tblTempUsageDetail_20' ) start [2025-04-09 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869388', 'tblTempUsageDetail_20' ) end [2025-04-09 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869388', 'tblTempVendorCDR_20' ) start [2025-04-09 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869388', 'tblTempVendorCDR_20' ) end [2025-04-09 11:58:22] Production.INFO: ProcessCDR(1,14869388,1,1,2) [2025-04-09 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869388', 'tblTempUsageDetail_20' ) start [2025-04-09 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869388', 'tblTempUsageDetail_20' ) end [2025-04-09 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:58:27] Production.INFO: ==31143== Releasing lock... [2025-04-09 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:58:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-09 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 08:59:05 [end_date_ymd] => 2025-04-09 11:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 08:59:05' and `end` < '2025-04-09 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-09 11:59:19] Production.INFO: count ==5635 [2025-04-09 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-09 08:59:05 - End Time 2025-04-09 11:59:05 [2025-04-09 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869393', 'tblTempUsageDetail_20' ) start [2025-04-09 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869393', 'tblTempUsageDetail_20' ) end [2025-04-09 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869393', 'tblTempVendorCDR_20' ) start [2025-04-09 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869393', 'tblTempVendorCDR_20' ) end [2025-04-09 11:59:22] Production.INFO: ProcessCDR(1,14869393,1,1,2) [2025-04-09 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869393', 'tblTempUsageDetail_20' ) start [2025-04-09 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869393', 'tblTempUsageDetail_20' ) end [2025-04-09 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 11:59:27] Production.INFO: ==31217== Releasing lock... [2025-04-09 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 11:59:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-09 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:00:06 [end_date_ymd] => 2025-04-09 12:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:00:06' and `end` < '2025-04-09 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-09 12:00:19] Production.INFO: count ==5634 [2025-04-09 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:00:06 - End Time 2025-04-09 12:00:06 [2025-04-09 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869398', 'tblTempUsageDetail_20' ) start [2025-04-09 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869398', 'tblTempUsageDetail_20' ) end [2025-04-09 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869398', 'tblTempVendorCDR_20' ) start [2025-04-09 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869398', 'tblTempVendorCDR_20' ) end [2025-04-09 12:00:22] Production.INFO: ProcessCDR(1,14869398,1,1,2) [2025-04-09 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869398', 'tblTempUsageDetail_20' ) start [2025-04-09 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869398', 'tblTempUsageDetail_20' ) end [2025-04-09 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:00:28] Production.INFO: ==31294== Releasing lock... [2025-04-09 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:00:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-09 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:01:05 [end_date_ymd] => 2025-04-09 12:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:01:05' and `end` < '2025-04-09 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-09 12:01:19] Production.INFO: count ==5682 [2025-04-09 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-09 09:01:05 - End Time 2025-04-09 12:01:05 [2025-04-09 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869404', 'tblTempUsageDetail_20' ) start [2025-04-09 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869404', 'tblTempUsageDetail_20' ) end [2025-04-09 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869404', 'tblTempVendorCDR_20' ) start [2025-04-09 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869404', 'tblTempVendorCDR_20' ) end [2025-04-09 12:01:21] Production.INFO: ProcessCDR(1,14869404,1,1,2) [2025-04-09 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869404', 'tblTempUsageDetail_20' ) start [2025-04-09 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869404', 'tblTempUsageDetail_20' ) end [2025-04-09 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:01:27] Production.INFO: ==31383== Releasing lock... [2025-04-09 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:01:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-09 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:02:05 [end_date_ymd] => 2025-04-09 12:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:02:05' and `end` < '2025-04-09 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-09 12:02:19] Production.INFO: count ==5687 [2025-04-09 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-09 09:02:05 - End Time 2025-04-09 12:02:05 [2025-04-09 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869409', 'tblTempUsageDetail_20' ) start [2025-04-09 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869409', 'tblTempUsageDetail_20' ) end [2025-04-09 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869409', 'tblTempVendorCDR_20' ) start [2025-04-09 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869409', 'tblTempVendorCDR_20' ) end [2025-04-09 12:02:21] Production.INFO: ProcessCDR(1,14869409,1,1,2) [2025-04-09 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869409', 'tblTempUsageDetail_20' ) start [2025-04-09 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869409', 'tblTempUsageDetail_20' ) end [2025-04-09 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:02:27] Production.INFO: ==31453== Releasing lock... [2025-04-09 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:02:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-09 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:03:06 [end_date_ymd] => 2025-04-09 12:03:06 [RateCDR] => 1 ) [2025-04-09 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:03:06' and `end` < '2025-04-09 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:03:20] Production.INFO: count ==5712 [2025-04-09 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:03:06 - End Time 2025-04-09 12:03:06 [2025-04-09 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869414', 'tblTempUsageDetail_20' ) start [2025-04-09 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869414', 'tblTempUsageDetail_20' ) end [2025-04-09 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869414', 'tblTempVendorCDR_20' ) start [2025-04-09 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869414', 'tblTempVendorCDR_20' ) end [2025-04-09 12:03:22] Production.INFO: ProcessCDR(1,14869414,1,1,2) [2025-04-09 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869414', 'tblTempUsageDetail_20' ) start [2025-04-09 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869414', 'tblTempUsageDetail_20' ) end [2025-04-09 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:03:28] Production.INFO: ==31525== Releasing lock... [2025-04-09 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:03:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-09 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:04:06 [end_date_ymd] => 2025-04-09 12:04:06 [RateCDR] => 1 ) [2025-04-09 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:04:06' and `end` < '2025-04-09 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:04:20] Production.INFO: count ==5727 [2025-04-09 12:04:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:04:06 - End Time 2025-04-09 12:04:06 [2025-04-09 12:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869419', 'tblTempUsageDetail_20' ) start [2025-04-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869419', 'tblTempUsageDetail_20' ) end [2025-04-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869419', 'tblTempVendorCDR_20' ) start [2025-04-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869419', 'tblTempVendorCDR_20' ) end [2025-04-09 12:04:23] Production.INFO: ProcessCDR(1,14869419,1,1,2) [2025-04-09 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869419', 'tblTempUsageDetail_20' ) start [2025-04-09 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869419', 'tblTempUsageDetail_20' ) end [2025-04-09 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:04:28] Production.INFO: ==31641== Releasing lock... [2025-04-09 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:04:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-09 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:05:05 [end_date_ymd] => 2025-04-09 12:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:05:05' and `end` < '2025-04-09 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-09 12:05:19] Production.INFO: count ==5742 [2025-04-09 12:05:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:05:05 - End Time 2025-04-09 12:05:05 [2025-04-09 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869424', 'tblTempUsageDetail_20' ) start [2025-04-09 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869424', 'tblTempUsageDetail_20' ) end [2025-04-09 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869424', 'tblTempVendorCDR_20' ) start [2025-04-09 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869424', 'tblTempVendorCDR_20' ) end [2025-04-09 12:05:22] Production.INFO: ProcessCDR(1,14869424,1,1,2) [2025-04-09 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869424', 'tblTempUsageDetail_20' ) start [2025-04-09 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869424', 'tblTempUsageDetail_20' ) end [2025-04-09 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:05:28] Production.INFO: ==31711== Releasing lock... [2025-04-09 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:05:28] Production.INFO: 71 MB #Memory Used# [2025-04-09 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:06:06 [end_date_ymd] => 2025-04-09 12:06:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:06:06' and `end` < '2025-04-09 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-09 12:06:20] Production.INFO: count ==5863 [2025-04-09 12:06:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:06:06 - End Time 2025-04-09 12:06:06 [2025-04-09 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869429', 'tblTempUsageDetail_20' ) start [2025-04-09 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869429', 'tblTempUsageDetail_20' ) end [2025-04-09 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869429', 'tblTempVendorCDR_20' ) start [2025-04-09 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869429', 'tblTempVendorCDR_20' ) end [2025-04-09 12:06:23] Production.INFO: ProcessCDR(1,14869429,1,1,2) [2025-04-09 12:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869429', 'tblTempUsageDetail_20' ) start [2025-04-09 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869429', 'tblTempUsageDetail_20' ) end [2025-04-09 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:06:28] Production.INFO: ==31785== Releasing lock... [2025-04-09 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:06:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-09 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:07:05 [end_date_ymd] => 2025-04-09 12:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:07:05' and `end` < '2025-04-09 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-09 12:07:19] Production.INFO: count ==5864 [2025-04-09 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:07:05 - End Time 2025-04-09 12:07:05 [2025-04-09 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869434', 'tblTempUsageDetail_20' ) start [2025-04-09 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869434', 'tblTempUsageDetail_20' ) end [2025-04-09 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869434', 'tblTempVendorCDR_20' ) start [2025-04-09 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869434', 'tblTempVendorCDR_20' ) end [2025-04-09 12:07:23] Production.INFO: ProcessCDR(1,14869434,1,1,2) [2025-04-09 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869434', 'tblTempUsageDetail_20' ) start [2025-04-09 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869434', 'tblTempUsageDetail_20' ) end [2025-04-09 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:07:28] Production.INFO: ==31858== Releasing lock... [2025-04-09 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:07:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-09 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:08:05 [end_date_ymd] => 2025-04-09 12:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:08:05' and `end` < '2025-04-09 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-09 12:08:19] Production.INFO: count ==5860 [2025-04-09 12:08:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:08:05 - End Time 2025-04-09 12:08:05 [2025-04-09 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869439', 'tblTempUsageDetail_20' ) start [2025-04-09 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869439', 'tblTempUsageDetail_20' ) end [2025-04-09 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869439', 'tblTempVendorCDR_20' ) start [2025-04-09 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869439', 'tblTempVendorCDR_20' ) end [2025-04-09 12:08:22] Production.INFO: ProcessCDR(1,14869439,1,1,2) [2025-04-09 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869439', 'tblTempUsageDetail_20' ) start [2025-04-09 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869439', 'tblTempUsageDetail_20' ) end [2025-04-09 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:08:27] Production.INFO: ==31931== Releasing lock... [2025-04-09 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:08:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-09 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:09:05 [end_date_ymd] => 2025-04-09 12:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:09:05' and `end` < '2025-04-09 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-09 12:09:19] Production.INFO: count ==5866 [2025-04-09 12:09:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:09:05 - End Time 2025-04-09 12:09:05 [2025-04-09 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869444', 'tblTempUsageDetail_20' ) start [2025-04-09 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869444', 'tblTempUsageDetail_20' ) end [2025-04-09 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869444', 'tblTempVendorCDR_20' ) start [2025-04-09 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869444', 'tblTempVendorCDR_20' ) end [2025-04-09 12:09:22] Production.INFO: ProcessCDR(1,14869444,1,1,2) [2025-04-09 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869444', 'tblTempUsageDetail_20' ) start [2025-04-09 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869444', 'tblTempUsageDetail_20' ) end [2025-04-09 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:09:27] Production.INFO: ==32003== Releasing lock... [2025-04-09 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:09:27] Production.INFO: 72 MB #Memory Used# [2025-04-09 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:10:06 [end_date_ymd] => 2025-04-09 12:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:10:06' and `end` < '2025-04-09 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-09 12:10:20] Production.INFO: count ==5862 [2025-04-09 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:10:06 - End Time 2025-04-09 12:10:06 [2025-04-09 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869450', 'tblTempUsageDetail_20' ) start [2025-04-09 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869450', 'tblTempUsageDetail_20' ) end [2025-04-09 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869450', 'tblTempVendorCDR_20' ) start [2025-04-09 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869450', 'tblTempVendorCDR_20' ) end [2025-04-09 12:10:23] Production.INFO: ProcessCDR(1,14869450,1,1,2) [2025-04-09 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869450', 'tblTempUsageDetail_20' ) start [2025-04-09 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869450', 'tblTempUsageDetail_20' ) end [2025-04-09 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:10:28] Production.INFO: ==32077== Releasing lock... [2025-04-09 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:10:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-09 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:11:05 [end_date_ymd] => 2025-04-09 12:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:11:05' and `end` < '2025-04-09 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-09 12:11:19] Production.INFO: count ==5930 [2025-04-09 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:11:05 - End Time 2025-04-09 12:11:05 [2025-04-09 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869455', 'tblTempUsageDetail_20' ) start [2025-04-09 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869455', 'tblTempUsageDetail_20' ) end [2025-04-09 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869455', 'tblTempVendorCDR_20' ) start [2025-04-09 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869455', 'tblTempVendorCDR_20' ) end [2025-04-09 12:11:22] Production.INFO: ProcessCDR(1,14869455,1,1,2) [2025-04-09 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869455', 'tblTempUsageDetail_20' ) start [2025-04-09 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869455', 'tblTempUsageDetail_20' ) end [2025-04-09 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:11:27] Production.INFO: ==32152== Releasing lock... [2025-04-09 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:11:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:12:05 [end_date_ymd] => 2025-04-09 12:12:05 [RateCDR] => 1 ) [2025-04-09 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:12:05' and `end` < '2025-04-09 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:12:19] Production.INFO: count ==5923 [2025-04-09 12:12:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:12:05 - End Time 2025-04-09 12:12:05 [2025-04-09 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869460', 'tblTempUsageDetail_20' ) start [2025-04-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869460', 'tblTempUsageDetail_20' ) end [2025-04-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869460', 'tblTempVendorCDR_20' ) start [2025-04-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869460', 'tblTempVendorCDR_20' ) end [2025-04-09 12:12:22] Production.INFO: ProcessCDR(1,14869460,1,1,2) [2025-04-09 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869460', 'tblTempUsageDetail_20' ) start [2025-04-09 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869460', 'tblTempUsageDetail_20' ) end [2025-04-09 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:12:28] Production.INFO: ==32222== Releasing lock... [2025-04-09 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:12:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:13:06 [end_date_ymd] => 2025-04-09 12:13:06 [RateCDR] => 1 ) [2025-04-09 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:13:06' and `end` < '2025-04-09 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:13:20] Production.INFO: count ==5925 [2025-04-09 12:13:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:13:06 - End Time 2025-04-09 12:13:06 [2025-04-09 12:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869465', 'tblTempUsageDetail_20' ) start [2025-04-09 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869465', 'tblTempUsageDetail_20' ) end [2025-04-09 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869465', 'tblTempVendorCDR_20' ) start [2025-04-09 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869465', 'tblTempVendorCDR_20' ) end [2025-04-09 12:13:23] Production.INFO: ProcessCDR(1,14869465,1,1,2) [2025-04-09 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869465', 'tblTempUsageDetail_20' ) start [2025-04-09 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869465', 'tblTempUsageDetail_20' ) end [2025-04-09 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:13:28] Production.INFO: ==32298== Releasing lock... [2025-04-09 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:13:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:14:05 [end_date_ymd] => 2025-04-09 12:14:05 [RateCDR] => 1 ) [2025-04-09 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:14:05' and `end` < '2025-04-09 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:14:19] Production.INFO: count ==5920 [2025-04-09 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:14:05 - End Time 2025-04-09 12:14:05 [2025-04-09 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869470', 'tblTempUsageDetail_20' ) start [2025-04-09 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869470', 'tblTempUsageDetail_20' ) end [2025-04-09 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869470', 'tblTempVendorCDR_20' ) start [2025-04-09 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869470', 'tblTempVendorCDR_20' ) end [2025-04-09 12:14:22] Production.INFO: ProcessCDR(1,14869470,1,1,2) [2025-04-09 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869470', 'tblTempUsageDetail_20' ) start [2025-04-09 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869470', 'tblTempUsageDetail_20' ) end [2025-04-09 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:14:27] Production.INFO: ==32369== Releasing lock... [2025-04-09 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:14:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:15:05 [end_date_ymd] => 2025-04-09 12:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:15:05' and `end` < '2025-04-09 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-09 12:15:19] Production.INFO: count ==5913 [2025-04-09 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:15:05 - End Time 2025-04-09 12:15:05 [2025-04-09 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869475', 'tblTempUsageDetail_20' ) start [2025-04-09 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869475', 'tblTempUsageDetail_20' ) end [2025-04-09 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869475', 'tblTempVendorCDR_20' ) start [2025-04-09 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869475', 'tblTempVendorCDR_20' ) end [2025-04-09 12:15:22] Production.INFO: ProcessCDR(1,14869475,1,1,2) [2025-04-09 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869475', 'tblTempUsageDetail_20' ) start [2025-04-09 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869475', 'tblTempUsageDetail_20' ) end [2025-04-09 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:15:28] Production.INFO: ==32441== Releasing lock... [2025-04-09 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:15:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:16:05 [end_date_ymd] => 2025-04-09 12:16:05 [RateCDR] => 1 ) [2025-04-09 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:16:05' and `end` < '2025-04-09 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:16:19] Production.INFO: count ==6466 [2025-04-09 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:16:05 - End Time 2025-04-09 12:16:05 [2025-04-09 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869480', 'tblTempUsageDetail_20' ) start [2025-04-09 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869480', 'tblTempUsageDetail_20' ) end [2025-04-09 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869480', 'tblTempVendorCDR_20' ) start [2025-04-09 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869480', 'tblTempVendorCDR_20' ) end [2025-04-09 12:16:22] Production.INFO: ProcessCDR(1,14869480,1,1,2) [2025-04-09 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869480', 'tblTempUsageDetail_20' ) start [2025-04-09 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869480', 'tblTempUsageDetail_20' ) end [2025-04-09 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:16:28] Production.INFO: ==32510== Releasing lock... [2025-04-09 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:16:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-09 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:17:05 [end_date_ymd] => 2025-04-09 12:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:17:05' and `end` < '2025-04-09 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-09 12:17:19] Production.INFO: count ==6457 [2025-04-09 12:17:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:17:05 - End Time 2025-04-09 12:17:05 [2025-04-09 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869485', 'tblTempUsageDetail_20' ) start [2025-04-09 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869485', 'tblTempUsageDetail_20' ) end [2025-04-09 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869485', 'tblTempVendorCDR_20' ) start [2025-04-09 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869485', 'tblTempVendorCDR_20' ) end [2025-04-09 12:17:22] Production.INFO: ProcessCDR(1,14869485,1,1,2) [2025-04-09 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869485', 'tblTempUsageDetail_20' ) start [2025-04-09 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869485', 'tblTempUsageDetail_20' ) end [2025-04-09 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:17:28] Production.INFO: ==32583== Releasing lock... [2025-04-09 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:17:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-09 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:18:05 [end_date_ymd] => 2025-04-09 12:18:05 [RateCDR] => 1 ) [2025-04-09 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:18:05' and `end` < '2025-04-09 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:18:19] Production.INFO: count ==6471 [2025-04-09 12:18:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:18:05 - End Time 2025-04-09 12:18:05 [2025-04-09 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869490', 'tblTempUsageDetail_20' ) start [2025-04-09 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869490', 'tblTempUsageDetail_20' ) end [2025-04-09 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869490', 'tblTempVendorCDR_20' ) start [2025-04-09 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869490', 'tblTempVendorCDR_20' ) end [2025-04-09 12:18:22] Production.INFO: ProcessCDR(1,14869490,1,1,2) [2025-04-09 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869490', 'tblTempUsageDetail_20' ) start [2025-04-09 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869490', 'tblTempUsageDetail_20' ) end [2025-04-09 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:18:28] Production.INFO: ==32656== Releasing lock... [2025-04-09 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:18:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:19:05 [end_date_ymd] => 2025-04-09 12:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:19:05' and `end` < '2025-04-09 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-09 12:19:19] Production.INFO: count ==6487 [2025-04-09 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:19:05 - End Time 2025-04-09 12:19:05 [2025-04-09 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869495', 'tblTempUsageDetail_20' ) start [2025-04-09 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869495', 'tblTempUsageDetail_20' ) end [2025-04-09 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869495', 'tblTempVendorCDR_20' ) start [2025-04-09 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869495', 'tblTempVendorCDR_20' ) end [2025-04-09 12:19:22] Production.INFO: ProcessCDR(1,14869495,1,1,2) [2025-04-09 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869495', 'tblTempUsageDetail_20' ) start [2025-04-09 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869495', 'tblTempUsageDetail_20' ) end [2025-04-09 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:19:28] Production.INFO: ==32729== Releasing lock... [2025-04-09 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:19:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:20:06 [end_date_ymd] => 2025-04-09 12:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:20:06' and `end` < '2025-04-09 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-09 12:20:20] Production.INFO: count ==6481 [2025-04-09 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:20:06 - End Time 2025-04-09 12:20:06 [2025-04-09 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869501', 'tblTempUsageDetail_20' ) start [2025-04-09 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869501', 'tblTempUsageDetail_20' ) end [2025-04-09 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869501', 'tblTempVendorCDR_20' ) start [2025-04-09 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869501', 'tblTempVendorCDR_20' ) end [2025-04-09 12:20:23] Production.INFO: ProcessCDR(1,14869501,1,1,2) [2025-04-09 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869501', 'tblTempUsageDetail_20' ) start [2025-04-09 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869501', 'tblTempUsageDetail_20' ) end [2025-04-09 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:20:28] Production.INFO: ==398== Releasing lock... [2025-04-09 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:20:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:21:05 [end_date_ymd] => 2025-04-09 12:21:05 [RateCDR] => 1 ) [2025-04-09 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:21:05' and `end` < '2025-04-09 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:21:19] Production.INFO: count ==6515 [2025-04-09 12:21:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:21:05 - End Time 2025-04-09 12:21:05 [2025-04-09 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869506', 'tblTempUsageDetail_20' ) start [2025-04-09 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869506', 'tblTempUsageDetail_20' ) end [2025-04-09 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869506', 'tblTempVendorCDR_20' ) start [2025-04-09 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869506', 'tblTempVendorCDR_20' ) end [2025-04-09 12:21:23] Production.INFO: ProcessCDR(1,14869506,1,1,2) [2025-04-09 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869506', 'tblTempUsageDetail_20' ) start [2025-04-09 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869506', 'tblTempUsageDetail_20' ) end [2025-04-09 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:21:28] Production.INFO: ==470== Releasing lock... [2025-04-09 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:21:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-09 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:22:05 [end_date_ymd] => 2025-04-09 12:22:05 [RateCDR] => 1 ) [2025-04-09 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:22:05' and `end` < '2025-04-09 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:22:19] Production.INFO: count ==6517 [2025-04-09 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:22:05 - End Time 2025-04-09 12:22:05 [2025-04-09 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869511', 'tblTempUsageDetail_20' ) start [2025-04-09 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869511', 'tblTempUsageDetail_20' ) end [2025-04-09 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869511', 'tblTempVendorCDR_20' ) start [2025-04-09 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869511', 'tblTempVendorCDR_20' ) end [2025-04-09 12:22:22] Production.INFO: ProcessCDR(1,14869511,1,1,2) [2025-04-09 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869511', 'tblTempUsageDetail_20' ) start [2025-04-09 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869511', 'tblTempUsageDetail_20' ) end [2025-04-09 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:22:28] Production.INFO: ==545== Releasing lock... [2025-04-09 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:22:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-09 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:23:05 [end_date_ymd] => 2025-04-09 12:23:05 [RateCDR] => 1 ) [2025-04-09 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:23:05' and `end` < '2025-04-09 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:23:19] Production.INFO: count ==6511 [2025-04-09 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:23:05 - End Time 2025-04-09 12:23:05 [2025-04-09 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869516', 'tblTempUsageDetail_20' ) start [2025-04-09 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869516', 'tblTempUsageDetail_20' ) end [2025-04-09 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869516', 'tblTempVendorCDR_20' ) start [2025-04-09 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869516', 'tblTempVendorCDR_20' ) end [2025-04-09 12:23:23] Production.INFO: ProcessCDR(1,14869516,1,1,2) [2025-04-09 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869516', 'tblTempUsageDetail_20' ) start [2025-04-09 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869516', 'tblTempUsageDetail_20' ) end [2025-04-09 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:23:28] Production.INFO: ==623== Releasing lock... [2025-04-09 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:23:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-09 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:24:04 [end_date_ymd] => 2025-04-09 12:24:04 [RateCDR] => 1 ) [2025-04-09 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:24:04' and `end` < '2025-04-09 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:24:18] Production.INFO: count ==6510 [2025-04-09 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-09 09:24:04 - End Time 2025-04-09 12:24:04 [2025-04-09 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869521', 'tblTempUsageDetail_20' ) start [2025-04-09 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869521', 'tblTempUsageDetail_20' ) end [2025-04-09 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869521', 'tblTempVendorCDR_20' ) start [2025-04-09 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869521', 'tblTempVendorCDR_20' ) end [2025-04-09 12:24:22] Production.INFO: ProcessCDR(1,14869521,1,1,2) [2025-04-09 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869521', 'tblTempUsageDetail_20' ) start [2025-04-09 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869521', 'tblTempUsageDetail_20' ) end [2025-04-09 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:24:27] Production.INFO: ==722== Releasing lock... [2025-04-09 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:24:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-09 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:25:05 [end_date_ymd] => 2025-04-09 12:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:25:05' and `end` < '2025-04-09 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-09 12:25:19] Production.INFO: count ==6511 [2025-04-09 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:25:05 - End Time 2025-04-09 12:25:05 [2025-04-09 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869526', 'tblTempUsageDetail_20' ) start [2025-04-09 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869526', 'tblTempUsageDetail_20' ) end [2025-04-09 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869526', 'tblTempVendorCDR_20' ) start [2025-04-09 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869526', 'tblTempVendorCDR_20' ) end [2025-04-09 12:25:23] Production.INFO: ProcessCDR(1,14869526,1,1,2) [2025-04-09 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869526', 'tblTempUsageDetail_20' ) start [2025-04-09 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869526', 'tblTempUsageDetail_20' ) end [2025-04-09 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:25:28] Production.INFO: ==796== Releasing lock... [2025-04-09 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:25:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-09 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:26:04 [end_date_ymd] => 2025-04-09 12:26:04 [RateCDR] => 1 ) [2025-04-09 12: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 09:26:04' and `end` < '2025-04-09 12: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-09 12:26:18] Production.INFO: count ==6499 [2025-04-09 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-09 09:26:04 - End Time 2025-04-09 12:26:04 [2025-04-09 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869531', 'tblTempUsageDetail_20' ) start [2025-04-09 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869531', 'tblTempUsageDetail_20' ) end [2025-04-09 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869531', 'tblTempVendorCDR_20' ) start [2025-04-09 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869531', 'tblTempVendorCDR_20' ) end [2025-04-09 12:26:21] Production.INFO: ProcessCDR(1,14869531,1,1,2) [2025-04-09 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869531', 'tblTempUsageDetail_20' ) start [2025-04-09 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869531', 'tblTempUsageDetail_20' ) end [2025-04-09 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:26:25] Production.INFO: ==868== Releasing lock... [2025-04-09 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:26:25] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:27:05 [end_date_ymd] => 2025-04-09 12:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:27:05' and `end` < '2025-04-09 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-09 12:27:19] Production.INFO: count ==6493 [2025-04-09 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:27:05 - End Time 2025-04-09 12:27:05 [2025-04-09 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869536', 'tblTempUsageDetail_20' ) start [2025-04-09 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869536', 'tblTempUsageDetail_20' ) end [2025-04-09 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869536', 'tblTempVendorCDR_20' ) start [2025-04-09 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869536', 'tblTempVendorCDR_20' ) end [2025-04-09 12:27:22] Production.INFO: ProcessCDR(1,14869536,1,1,2) [2025-04-09 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869536', 'tblTempUsageDetail_20' ) start [2025-04-09 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869536', 'tblTempUsageDetail_20' ) end [2025-04-09 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:27:27] Production.INFO: ==939== Releasing lock... [2025-04-09 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:27:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:28:06 [end_date_ymd] => 2025-04-09 12:28:06 [RateCDR] => 1 ) [2025-04-09 12: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 09:28:06' and `end` < '2025-04-09 12: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-09 12:28:19] Production.INFO: count ==6481 [2025-04-09 12:28:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:28:06 - End Time 2025-04-09 12:28:06 [2025-04-09 12:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869541', 'tblTempUsageDetail_20' ) start [2025-04-09 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869541', 'tblTempUsageDetail_20' ) end [2025-04-09 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869541', 'tblTempVendorCDR_20' ) start [2025-04-09 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869541', 'tblTempVendorCDR_20' ) end [2025-04-09 12:28:24] Production.INFO: ProcessCDR(1,14869541,1,1,2) [2025-04-09 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869541', 'tblTempUsageDetail_20' ) start [2025-04-09 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869541', 'tblTempUsageDetail_20' ) end [2025-04-09 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:28:29] Production.INFO: ==1012== Releasing lock... [2025-04-09 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:28:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:29:05 [end_date_ymd] => 2025-04-09 12:29:05 [RateCDR] => 1 ) [2025-04-09 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:29:05' and `end` < '2025-04-09 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:29:19] Production.INFO: count ==6479 [2025-04-09 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:29:05 - End Time 2025-04-09 12:29:05 [2025-04-09 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869546', 'tblTempUsageDetail_20' ) start [2025-04-09 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869546', 'tblTempUsageDetail_20' ) end [2025-04-09 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869546', 'tblTempVendorCDR_20' ) start [2025-04-09 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869546', 'tblTempVendorCDR_20' ) end [2025-04-09 12:29:22] Production.INFO: ProcessCDR(1,14869546,1,1,2) [2025-04-09 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869546', 'tblTempUsageDetail_20' ) start [2025-04-09 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869546', 'tblTempUsageDetail_20' ) end [2025-04-09 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:29:27] Production.INFO: ==1083== Releasing lock... [2025-04-09 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:29:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:30:06 [end_date_ymd] => 2025-04-09 12:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:30:06' and `end` < '2025-04-09 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-09 12:30:20] Production.INFO: count ==6474 [2025-04-09 12:30:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:30:06 - End Time 2025-04-09 12:30:06 [2025-04-09 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869552', 'tblTempUsageDetail_20' ) start [2025-04-09 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869552', 'tblTempUsageDetail_20' ) end [2025-04-09 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869552', 'tblTempVendorCDR_20' ) start [2025-04-09 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869552', 'tblTempVendorCDR_20' ) end [2025-04-09 12:30:23] Production.INFO: ProcessCDR(1,14869552,1,1,2) [2025-04-09 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869552', 'tblTempUsageDetail_20' ) start [2025-04-09 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869552', 'tblTempUsageDetail_20' ) end [2025-04-09 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:30:29] Production.INFO: ==1161== Releasing lock... [2025-04-09 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:30:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:31:04 [end_date_ymd] => 2025-04-09 12:31:04 [RateCDR] => 1 ) [2025-04-09 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-09 09:31:04' and `end` < '2025-04-09 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-09 12:31:18] Production.INFO: count ==7058 [2025-04-09 12:31:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:31:04 - End Time 2025-04-09 12:31:04 [2025-04-09 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869557', 'tblTempUsageDetail_20' ) start [2025-04-09 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869557', 'tblTempUsageDetail_20' ) end [2025-04-09 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869557', 'tblTempVendorCDR_20' ) start [2025-04-09 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869557', 'tblTempVendorCDR_20' ) end [2025-04-09 12:31:22] Production.INFO: ProcessCDR(1,14869557,1,1,2) [2025-04-09 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869557', 'tblTempUsageDetail_20' ) start [2025-04-09 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869557', 'tblTempUsageDetail_20' ) end [2025-04-09 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:31:28] Production.INFO: ==1246== Releasing lock... [2025-04-09 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:31:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:32:05 [end_date_ymd] => 2025-04-09 12:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:32:05' and `end` < '2025-04-09 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-09 12:32:19] Production.INFO: count ==7044 [2025-04-09 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:32:05 - End Time 2025-04-09 12:32:05 [2025-04-09 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869562', 'tblTempUsageDetail_20' ) start [2025-04-09 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869562', 'tblTempUsageDetail_20' ) end [2025-04-09 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869562', 'tblTempVendorCDR_20' ) start [2025-04-09 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869562', 'tblTempVendorCDR_20' ) end [2025-04-09 12:32:22] Production.INFO: ProcessCDR(1,14869562,1,1,2) [2025-04-09 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869562', 'tblTempUsageDetail_20' ) start [2025-04-09 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869562', 'tblTempUsageDetail_20' ) end [2025-04-09 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:32:28] Production.INFO: ==1323== Releasing lock... [2025-04-09 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:32:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:33:05 [end_date_ymd] => 2025-04-09 12:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:33:05' and `end` < '2025-04-09 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-09 12:33:19] Production.INFO: count ==7030 [2025-04-09 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:33:05 - End Time 2025-04-09 12:33:05 [2025-04-09 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869567', 'tblTempUsageDetail_20' ) start [2025-04-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869567', 'tblTempUsageDetail_20' ) end [2025-04-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869567', 'tblTempVendorCDR_20' ) start [2025-04-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869567', 'tblTempVendorCDR_20' ) end [2025-04-09 12:33:22] Production.INFO: ProcessCDR(1,14869567,1,1,2) [2025-04-09 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869567', 'tblTempUsageDetail_20' ) start [2025-04-09 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869567', 'tblTempUsageDetail_20' ) end [2025-04-09 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:33:27] Production.INFO: ==1393== Releasing lock... [2025-04-09 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:33:27] Production.INFO: 80.5 MB #Memory Used# [2025-04-09 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:34:05 [end_date_ymd] => 2025-04-09 12:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:34:05' and `end` < '2025-04-09 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-09 12:34:19] Production.INFO: count ==6968 [2025-04-09 12:34:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:34:05 - End Time 2025-04-09 12:34:05 [2025-04-09 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869572', 'tblTempUsageDetail_20' ) start [2025-04-09 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869572', 'tblTempUsageDetail_20' ) end [2025-04-09 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869572', 'tblTempVendorCDR_20' ) start [2025-04-09 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869572', 'tblTempVendorCDR_20' ) end [2025-04-09 12:34:23] Production.INFO: ProcessCDR(1,14869572,1,1,2) [2025-04-09 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869572', 'tblTempUsageDetail_20' ) start [2025-04-09 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869572', 'tblTempUsageDetail_20' ) end [2025-04-09 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:34:27] Production.INFO: ==1468== Releasing lock... [2025-04-09 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:34:27] Production.INFO: 80 MB #Memory Used# [2025-04-09 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:35:06 [end_date_ymd] => 2025-04-09 12:35:06 [RateCDR] => 1 ) [2025-04-09 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:35:06' and `end` < '2025-04-09 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:35:20] Production.INFO: count ==6949 [2025-04-09 12:35:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:35:06 - End Time 2025-04-09 12:35:06 [2025-04-09 12:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869577', 'tblTempUsageDetail_20' ) start [2025-04-09 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869577', 'tblTempUsageDetail_20' ) end [2025-04-09 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869577', 'tblTempVendorCDR_20' ) start [2025-04-09 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869577', 'tblTempVendorCDR_20' ) end [2025-04-09 12:35:24] Production.INFO: ProcessCDR(1,14869577,1,1,2) [2025-04-09 12:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869577', 'tblTempUsageDetail_20' ) start [2025-04-09 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869577', 'tblTempUsageDetail_20' ) end [2025-04-09 12:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:35:29] Production.INFO: ==1615== Releasing lock... [2025-04-09 12:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:35:29] Production.INFO: 80 MB #Memory Used# [2025-04-09 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:36:05 [end_date_ymd] => 2025-04-09 12:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:36:05' and `end` < '2025-04-09 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-09 12:36:19] Production.INFO: count ==6954 [2025-04-09 12:36:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:36:05 - End Time 2025-04-09 12:36:05 [2025-04-09 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869582', 'tblTempUsageDetail_20' ) start [2025-04-09 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869582', 'tblTempUsageDetail_20' ) end [2025-04-09 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869582', 'tblTempVendorCDR_20' ) start [2025-04-09 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869582', 'tblTempVendorCDR_20' ) end [2025-04-09 12:36:23] Production.INFO: ProcessCDR(1,14869582,1,1,2) [2025-04-09 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869582', 'tblTempUsageDetail_20' ) start [2025-04-09 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869582', 'tblTempUsageDetail_20' ) end [2025-04-09 12:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:36:28] Production.INFO: ==1685== Releasing lock... [2025-04-09 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:36:28] Production.INFO: 80 MB #Memory Used# [2025-04-09 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:37:05 [end_date_ymd] => 2025-04-09 12:37:05 [RateCDR] => 1 ) [2025-04-09 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:37:05' and `end` < '2025-04-09 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:37:20] Production.INFO: count ==6955 [2025-04-09 12:37:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:37:05 - End Time 2025-04-09 12:37:05 [2025-04-09 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869587', 'tblTempUsageDetail_20' ) start [2025-04-09 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869587', 'tblTempUsageDetail_20' ) end [2025-04-09 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869587', 'tblTempVendorCDR_20' ) start [2025-04-09 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869587', 'tblTempVendorCDR_20' ) end [2025-04-09 12:37:23] Production.INFO: ProcessCDR(1,14869587,1,1,2) [2025-04-09 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869587', 'tblTempUsageDetail_20' ) start [2025-04-09 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869587', 'tblTempUsageDetail_20' ) end [2025-04-09 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:37:28] Production.INFO: ==1762== Releasing lock... [2025-04-09 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:37:28] Production.INFO: 80 MB #Memory Used# [2025-04-09 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:38:05 [end_date_ymd] => 2025-04-09 12:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:38:05' and `end` < '2025-04-09 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-09 12:38:19] Production.INFO: count ==6973 [2025-04-09 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:38:05 - End Time 2025-04-09 12:38:05 [2025-04-09 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869592', 'tblTempUsageDetail_20' ) start [2025-04-09 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869592', 'tblTempUsageDetail_20' ) end [2025-04-09 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869592', 'tblTempVendorCDR_20' ) start [2025-04-09 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869592', 'tblTempVendorCDR_20' ) end [2025-04-09 12:38:23] Production.INFO: ProcessCDR(1,14869592,1,1,2) [2025-04-09 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869592', 'tblTempUsageDetail_20' ) start [2025-04-09 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869592', 'tblTempUsageDetail_20' ) end [2025-04-09 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:38:28] Production.INFO: ==1837== Releasing lock... [2025-04-09 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:38:28] Production.INFO: 80.25 MB #Memory Used# [2025-04-09 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:39:05 [end_date_ymd] => 2025-04-09 12:39:05 [RateCDR] => 1 ) [2025-04-09 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:39:05' and `end` < '2025-04-09 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-09 12:39:19] Production.INFO: count ==6959 [2025-04-09 12:39:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:39:05 - End Time 2025-04-09 12:39:05 [2025-04-09 12:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869597', 'tblTempUsageDetail_20' ) start [2025-04-09 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869597', 'tblTempUsageDetail_20' ) end [2025-04-09 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869597', 'tblTempVendorCDR_20' ) start [2025-04-09 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869597', 'tblTempVendorCDR_20' ) end [2025-04-09 12:39:23] Production.INFO: ProcessCDR(1,14869597,1,1,2) [2025-04-09 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869597', 'tblTempUsageDetail_20' ) start [2025-04-09 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869597', 'tblTempUsageDetail_20' ) end [2025-04-09 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:39:28] Production.INFO: ==1911== Releasing lock... [2025-04-09 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:39:28] Production.INFO: 80 MB #Memory Used# [2025-04-09 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:40:06 [end_date_ymd] => 2025-04-09 12:40:06 [RateCDR] => 1 ) [2025-04-09 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:40:06' and `end` < '2025-04-09 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:40:20] Production.INFO: count ==7234 [2025-04-09 12:40:24] Production.ERROR: pbx CDR StartTime 2025-04-09 09:40:06 - End Time 2025-04-09 12:40:06 [2025-04-09 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869602', 'tblTempUsageDetail_20' ) start [2025-04-09 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869602', 'tblTempUsageDetail_20' ) end [2025-04-09 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869602', 'tblTempVendorCDR_20' ) start [2025-04-09 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869602', 'tblTempVendorCDR_20' ) end [2025-04-09 12:40:24] Production.INFO: ProcessCDR(1,14869602,1,1,2) [2025-04-09 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869602', 'tblTempUsageDetail_20' ) start [2025-04-09 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869602', 'tblTempUsageDetail_20' ) end [2025-04-09 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:40:30] Production.INFO: ==1989== Releasing lock... [2025-04-09 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:40:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:41:05 [end_date_ymd] => 2025-04-09 12:41:05 [RateCDR] => 1 ) [2025-04-09 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:41:05' and `end` < '2025-04-09 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:41:19] Production.INFO: count ==7228 [2025-04-09 12:41:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:41:05 - End Time 2025-04-09 12:41:05 [2025-04-09 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869608', 'tblTempUsageDetail_20' ) start [2025-04-09 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869608', 'tblTempUsageDetail_20' ) end [2025-04-09 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869608', 'tblTempVendorCDR_20' ) start [2025-04-09 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869608', 'tblTempVendorCDR_20' ) end [2025-04-09 12:41:23] Production.INFO: ProcessCDR(1,14869608,1,1,2) [2025-04-09 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869608', 'tblTempUsageDetail_20' ) start [2025-04-09 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869608', 'tblTempUsageDetail_20' ) end [2025-04-09 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:41:28] Production.INFO: ==2064== Releasing lock... [2025-04-09 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:41:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:42:05 [end_date_ymd] => 2025-04-09 12:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:42:05' and `end` < '2025-04-09 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-09 12:42:19] Production.INFO: count ==7236 [2025-04-09 12:42:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:42:05 - End Time 2025-04-09 12:42:05 [2025-04-09 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869613', 'tblTempUsageDetail_20' ) start [2025-04-09 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869613', 'tblTempUsageDetail_20' ) end [2025-04-09 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869613', 'tblTempVendorCDR_20' ) start [2025-04-09 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869613', 'tblTempVendorCDR_20' ) end [2025-04-09 12:42:23] Production.INFO: ProcessCDR(1,14869613,1,1,2) [2025-04-09 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869613', 'tblTempUsageDetail_20' ) start [2025-04-09 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869613', 'tblTempUsageDetail_20' ) end [2025-04-09 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:42:29] Production.INFO: ==2142== Releasing lock... [2025-04-09 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:42:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:43:06 [end_date_ymd] => 2025-04-09 12:43:06 [RateCDR] => 1 ) [2025-04-09 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-09 09:43:06' and `end` < '2025-04-09 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-09 12:43:19] Production.INFO: count ==7235 [2025-04-09 12:43:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:43:06 - End Time 2025-04-09 12:43:06 [2025-04-09 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869618', 'tblTempUsageDetail_20' ) start [2025-04-09 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869618', 'tblTempUsageDetail_20' ) end [2025-04-09 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869618', 'tblTempVendorCDR_20' ) start [2025-04-09 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869618', 'tblTempVendorCDR_20' ) end [2025-04-09 12:43:24] Production.INFO: ProcessCDR(1,14869618,1,1,2) [2025-04-09 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869618', 'tblTempUsageDetail_20' ) start [2025-04-09 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869618', 'tblTempUsageDetail_20' ) end [2025-04-09 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:43:27] Production.INFO: ==2216== Releasing lock... [2025-04-09 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:43:27] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:44:05 [end_date_ymd] => 2025-04-09 12:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:44:05' and `end` < '2025-04-09 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-09 12:44:19] Production.INFO: count ==7229 [2025-04-09 12:44:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:44:05 - End Time 2025-04-09 12:44:05 [2025-04-09 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869623', 'tblTempUsageDetail_20' ) start [2025-04-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869623', 'tblTempUsageDetail_20' ) end [2025-04-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869623', 'tblTempVendorCDR_20' ) start [2025-04-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869623', 'tblTempVendorCDR_20' ) end [2025-04-09 12:44:23] Production.INFO: ProcessCDR(1,14869623,1,1,2) [2025-04-09 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869623', 'tblTempUsageDetail_20' ) start [2025-04-09 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869623', 'tblTempUsageDetail_20' ) end [2025-04-09 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:44:29] Production.INFO: ==2289== Releasing lock... [2025-04-09 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:44:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:45:06 [end_date_ymd] => 2025-04-09 12:45:06 [RateCDR] => 1 ) [2025-04-09 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:45:06' and `end` < '2025-04-09 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:45:20] Production.INFO: count ==7217 [2025-04-09 12:45:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:45:06 - End Time 2025-04-09 12:45:06 [2025-04-09 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869628', 'tblTempUsageDetail_20' ) start [2025-04-09 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869628', 'tblTempUsageDetail_20' ) end [2025-04-09 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869628', 'tblTempVendorCDR_20' ) start [2025-04-09 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869628', 'tblTempVendorCDR_20' ) end [2025-04-09 12:45:23] Production.INFO: ProcessCDR(1,14869628,1,1,2) [2025-04-09 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869628', 'tblTempUsageDetail_20' ) start [2025-04-09 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869628', 'tblTempUsageDetail_20' ) end [2025-04-09 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:45:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:45:29] Production.INFO: ==2363== Releasing lock... [2025-04-09 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:45:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:46:05 [end_date_ymd] => 2025-04-09 12:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:46:05' and `end` < '2025-04-09 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-09 12:46:20] Production.INFO: count ==7218 [2025-04-09 12:46:24] Production.ERROR: pbx CDR StartTime 2025-04-09 09:46:05 - End Time 2025-04-09 12:46:05 [2025-04-09 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869633', 'tblTempUsageDetail_20' ) start [2025-04-09 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869633', 'tblTempUsageDetail_20' ) end [2025-04-09 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869633', 'tblTempVendorCDR_20' ) start [2025-04-09 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869633', 'tblTempVendorCDR_20' ) end [2025-04-09 12:46:24] Production.INFO: ProcessCDR(1,14869633,1,1,2) [2025-04-09 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869633', 'tblTempUsageDetail_20' ) start [2025-04-09 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869633', 'tblTempUsageDetail_20' ) end [2025-04-09 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:46:29] Production.INFO: ==2434== Releasing lock... [2025-04-09 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:46:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:47:05 [end_date_ymd] => 2025-04-09 12:47:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:47:05' and `end` < '2025-04-09 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-09 12:47:19] Production.INFO: count ==7221 [2025-04-09 12:47:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:47:05 - End Time 2025-04-09 12:47:05 [2025-04-09 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869638', 'tblTempUsageDetail_20' ) start [2025-04-09 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869638', 'tblTempUsageDetail_20' ) end [2025-04-09 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869638', 'tblTempVendorCDR_20' ) start [2025-04-09 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869638', 'tblTempVendorCDR_20' ) end [2025-04-09 12:47:23] Production.INFO: ProcessCDR(1,14869638,1,1,2) [2025-04-09 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869638', 'tblTempUsageDetail_20' ) start [2025-04-09 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869638', 'tblTempUsageDetail_20' ) end [2025-04-09 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:47:28] Production.INFO: ==2503== Releasing lock... [2025-04-09 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:47:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:48:05 [end_date_ymd] => 2025-04-09 12:48:05 [RateCDR] => 1 ) [2025-04-09 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:48:05' and `end` < '2025-04-09 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:48:19] Production.INFO: count ==7227 [2025-04-09 12:48:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:48:05 - End Time 2025-04-09 12:48:05 [2025-04-09 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869643', 'tblTempUsageDetail_20' ) start [2025-04-09 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869643', 'tblTempUsageDetail_20' ) end [2025-04-09 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869643', 'tblTempVendorCDR_20' ) start [2025-04-09 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869643', 'tblTempVendorCDR_20' ) end [2025-04-09 12:48:23] Production.INFO: ProcessCDR(1,14869643,1,1,2) [2025-04-09 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869643', 'tblTempUsageDetail_20' ) start [2025-04-09 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869643', 'tblTempUsageDetail_20' ) end [2025-04-09 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:48:28] Production.INFO: ==2573== Releasing lock... [2025-04-09 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:48:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:49:05 [end_date_ymd] => 2025-04-09 12:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:49:05' and `end` < '2025-04-09 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-09 12:49:20] Production.INFO: count ==7240 [2025-04-09 12:49:24] Production.ERROR: pbx CDR StartTime 2025-04-09 09:49:05 - End Time 2025-04-09 12:49:05 [2025-04-09 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869648', 'tblTempUsageDetail_20' ) start [2025-04-09 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869648', 'tblTempUsageDetail_20' ) end [2025-04-09 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869648', 'tblTempVendorCDR_20' ) start [2025-04-09 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869648', 'tblTempVendorCDR_20' ) end [2025-04-09 12:49:24] Production.INFO: ProcessCDR(1,14869648,1,1,2) [2025-04-09 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869648', 'tblTempUsageDetail_20' ) start [2025-04-09 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869648', 'tblTempUsageDetail_20' ) end [2025-04-09 12:49:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:49:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:49:29] Production.INFO: ==2644== Releasing lock... [2025-04-09 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:49:29] Production.INFO: 82.75 MB #Memory Used# [2025-04-09 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:50:06 [end_date_ymd] => 2025-04-09 12:50:06 [RateCDR] => 1 ) [2025-04-09 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:50:06' and `end` < '2025-04-09 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:50:20] Production.INFO: count ==7231 [2025-04-09 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:50:06 - End Time 2025-04-09 12:50:06 [2025-04-09 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869654', 'tblTempUsageDetail_20' ) start [2025-04-09 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869654', 'tblTempUsageDetail_20' ) end [2025-04-09 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869654', 'tblTempVendorCDR_20' ) start [2025-04-09 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869654', 'tblTempVendorCDR_20' ) end [2025-04-09 12:50:23] Production.INFO: ProcessCDR(1,14869654,1,1,2) [2025-04-09 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869654', 'tblTempUsageDetail_20' ) start [2025-04-09 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869654', 'tblTempUsageDetail_20' ) end [2025-04-09 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:50:28] Production.INFO: ==2729== Releasing lock... [2025-04-09 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:50:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-09 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:51:05 [end_date_ymd] => 2025-04-09 12:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:51:05' and `end` < '2025-04-09 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-09 12:51:19] Production.INFO: count ==7194 [2025-04-09 12:51:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:51:05 - End Time 2025-04-09 12:51:05 [2025-04-09 12:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869659', 'tblTempUsageDetail_20' ) start [2025-04-09 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869659', 'tblTempUsageDetail_20' ) end [2025-04-09 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869659', 'tblTempVendorCDR_20' ) start [2025-04-09 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869659', 'tblTempVendorCDR_20' ) end [2025-04-09 12:51:23] Production.INFO: ProcessCDR(1,14869659,1,1,2) [2025-04-09 12:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869659', 'tblTempUsageDetail_20' ) start [2025-04-09 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869659', 'tblTempUsageDetail_20' ) end [2025-04-09 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:51:27] Production.INFO: ==2856== Releasing lock... [2025-04-09 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:51:27] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:52:04 [end_date_ymd] => 2025-04-09 12:52:04 [RateCDR] => 1 ) [2025-04-09 12:52: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 09:52:04' and `end` < '2025-04-09 12:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:52:18] Production.INFO: count ==7174 [2025-04-09 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:52:04 - End Time 2025-04-09 12:52:04 [2025-04-09 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869664', 'tblTempUsageDetail_20' ) start [2025-04-09 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869664', 'tblTempUsageDetail_20' ) end [2025-04-09 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869664', 'tblTempVendorCDR_20' ) start [2025-04-09 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869664', 'tblTempVendorCDR_20' ) end [2025-04-09 12:52:22] Production.INFO: ProcessCDR(1,14869664,1,1,2) [2025-04-09 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869664', 'tblTempUsageDetail_20' ) start [2025-04-09 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869664', 'tblTempUsageDetail_20' ) end [2025-04-09 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:52:27] Production.INFO: ==2943== Releasing lock... [2025-04-09 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:52:27] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:53:05 [end_date_ymd] => 2025-04-09 12:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:53:05' and `end` < '2025-04-09 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-09 12:53:19] Production.INFO: count ==7178 [2025-04-09 12:53:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:53:05 - End Time 2025-04-09 12:53:05 [2025-04-09 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869669', 'tblTempUsageDetail_20' ) start [2025-04-09 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869669', 'tblTempUsageDetail_20' ) end [2025-04-09 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869669', 'tblTempVendorCDR_20' ) start [2025-04-09 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869669', 'tblTempVendorCDR_20' ) end [2025-04-09 12:53:23] Production.INFO: ProcessCDR(1,14869669,1,1,2) [2025-04-09 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869669', 'tblTempUsageDetail_20' ) start [2025-04-09 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869669', 'tblTempUsageDetail_20' ) end [2025-04-09 12:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:53:28] Production.INFO: ==3031== Releasing lock... [2025-04-09 12:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:53:28] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:54:06 [end_date_ymd] => 2025-04-09 12:54:06 [RateCDR] => 1 ) [2025-04-09 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 09:54:06' and `end` < '2025-04-09 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 12:54:20] Production.INFO: count ==7167 [2025-04-09 12:54:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:54:06 - End Time 2025-04-09 12:54:06 [2025-04-09 12:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869674', 'tblTempUsageDetail_20' ) start [2025-04-09 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869674', 'tblTempUsageDetail_20' ) end [2025-04-09 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869674', 'tblTempVendorCDR_20' ) start [2025-04-09 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869674', 'tblTempVendorCDR_20' ) end [2025-04-09 12:54:23] Production.INFO: ProcessCDR(1,14869674,1,1,2) [2025-04-09 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869674', 'tblTempUsageDetail_20' ) start [2025-04-09 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869674', 'tblTempUsageDetail_20' ) end [2025-04-09 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:54:29] Production.INFO: ==3118== Releasing lock... [2025-04-09 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:54:29] Production.INFO: 82 MB #Memory Used# [2025-04-09 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:55:05 [end_date_ymd] => 2025-04-09 12:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:55:05' and `end` < '2025-04-09 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-09 12:55:19] Production.INFO: count ==7168 [2025-04-09 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:55:05 - End Time 2025-04-09 12:55:05 [2025-04-09 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869679', 'tblTempUsageDetail_20' ) start [2025-04-09 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869679', 'tblTempUsageDetail_20' ) end [2025-04-09 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869679', 'tblTempVendorCDR_20' ) start [2025-04-09 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869679', 'tblTempVendorCDR_20' ) end [2025-04-09 12:55:23] Production.INFO: ProcessCDR(1,14869679,1,1,2) [2025-04-09 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869679', 'tblTempUsageDetail_20' ) start [2025-04-09 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869679', 'tblTempUsageDetail_20' ) end [2025-04-09 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:55:28] Production.INFO: ==3202== Releasing lock... [2025-04-09 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:55:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:56:05 [end_date_ymd] => 2025-04-09 12:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:56:05' and `end` < '2025-04-09 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-09 12:56:19] Production.INFO: count ==7178 [2025-04-09 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:56:05 - End Time 2025-04-09 12:56:05 [2025-04-09 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869684', 'tblTempUsageDetail_20' ) start [2025-04-09 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869684', 'tblTempUsageDetail_20' ) end [2025-04-09 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869684', 'tblTempVendorCDR_20' ) start [2025-04-09 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869684', 'tblTempVendorCDR_20' ) end [2025-04-09 12:56:23] Production.INFO: ProcessCDR(1,14869684,1,1,2) [2025-04-09 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869684', 'tblTempUsageDetail_20' ) start [2025-04-09 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869684', 'tblTempUsageDetail_20' ) end [2025-04-09 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:56:28] Production.INFO: ==3284== Releasing lock... [2025-04-09 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:56:28] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:57:05 [end_date_ymd] => 2025-04-09 12:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:57:05' and `end` < '2025-04-09 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-09 12:57:19] Production.INFO: count ==7170 [2025-04-09 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-09 09:57:05 - End Time 2025-04-09 12:57:05 [2025-04-09 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869689', 'tblTempUsageDetail_20' ) start [2025-04-09 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869689', 'tblTempUsageDetail_20' ) end [2025-04-09 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869689', 'tblTempVendorCDR_20' ) start [2025-04-09 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869689', 'tblTempVendorCDR_20' ) end [2025-04-09 12:57:22] Production.INFO: ProcessCDR(1,14869689,1,1,2) [2025-04-09 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869689', 'tblTempUsageDetail_20' ) start [2025-04-09 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869689', 'tblTempUsageDetail_20' ) end [2025-04-09 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:57:28] Production.INFO: ==3408== Releasing lock... [2025-04-09 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:57:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:58:05 [end_date_ymd] => 2025-04-09 12:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:58:05' and `end` < '2025-04-09 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-09 12:58:19] Production.INFO: count ==7170 [2025-04-09 12:58:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:58:05 - End Time 2025-04-09 12:58:05 [2025-04-09 12:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869694', 'tblTempUsageDetail_20' ) start [2025-04-09 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869694', 'tblTempUsageDetail_20' ) end [2025-04-09 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869694', 'tblTempVendorCDR_20' ) start [2025-04-09 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869694', 'tblTempVendorCDR_20' ) end [2025-04-09 12:58:23] Production.INFO: ProcessCDR(1,14869694,1,1,2) [2025-04-09 12:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869694', 'tblTempUsageDetail_20' ) start [2025-04-09 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869694', 'tblTempUsageDetail_20' ) end [2025-04-09 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:58:28] Production.INFO: ==3499== Releasing lock... [2025-04-09 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:58:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 09:59:05 [end_date_ymd] => 2025-04-09 12:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 09:59:05' and `end` < '2025-04-09 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-09 12:59:19] Production.INFO: count ==7161 [2025-04-09 12:59:23] Production.ERROR: pbx CDR StartTime 2025-04-09 09:59:05 - End Time 2025-04-09 12:59:05 [2025-04-09 12:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869699', 'tblTempUsageDetail_20' ) start [2025-04-09 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869699', 'tblTempUsageDetail_20' ) end [2025-04-09 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869699', 'tblTempVendorCDR_20' ) start [2025-04-09 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869699', 'tblTempVendorCDR_20' ) end [2025-04-09 12:59:23] Production.INFO: ProcessCDR(1,14869699,1,1,2) [2025-04-09 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869699', 'tblTempUsageDetail_20' ) start [2025-04-09 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869699', 'tblTempUsageDetail_20' ) end [2025-04-09 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 12:59:28] Production.INFO: ==3585== Releasing lock... [2025-04-09 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 12:59:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:00:07 [end_date_ymd] => 2025-04-09 13:00:07 [RateCDR] => 1 ) [2025-04-09 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:00:07' and `end` < '2025-04-09 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:00:21] Production.INFO: count ==7147 [2025-04-09 13:00:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:00:07 - End Time 2025-04-09 13:00:07 [2025-04-09 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869705', 'tblTempUsageDetail_20' ) start [2025-04-09 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869705', 'tblTempUsageDetail_20' ) end [2025-04-09 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869705', 'tblTempVendorCDR_20' ) start [2025-04-09 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869705', 'tblTempVendorCDR_20' ) end [2025-04-09 13:00:24] Production.INFO: ProcessCDR(1,14869705,1,1,2) [2025-04-09 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869705', 'tblTempUsageDetail_20' ) start [2025-04-09 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869705', 'tblTempUsageDetail_20' ) end [2025-04-09 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:00:30] Production.INFO: ==3671== Releasing lock... [2025-04-09 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:00:30] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:01:05 [end_date_ymd] => 2025-04-09 13:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:01:05' and `end` < '2025-04-09 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-09 13:01:19] Production.INFO: count ==7140 [2025-04-09 13:01:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:01:05 - End Time 2025-04-09 13:01:05 [2025-04-09 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869710', 'tblTempUsageDetail_20' ) start [2025-04-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869710', 'tblTempUsageDetail_20' ) end [2025-04-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869710', 'tblTempVendorCDR_20' ) start [2025-04-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869710', 'tblTempVendorCDR_20' ) end [2025-04-09 13:01:23] Production.INFO: ProcessCDR(1,14869710,1,1,2) [2025-04-09 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869710', 'tblTempUsageDetail_20' ) start [2025-04-09 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869710', 'tblTempUsageDetail_20' ) end [2025-04-09 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:01:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:01:29] Production.INFO: ==3774== Releasing lock... [2025-04-09 13:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:01:29] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:02:06 [end_date_ymd] => 2025-04-09 13:02:06 [RateCDR] => 1 ) [2025-04-09 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:02:06' and `end` < '2025-04-09 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:02:20] Production.INFO: count ==7148 [2025-04-09 13:02:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:02:06 - End Time 2025-04-09 13:02:06 [2025-04-09 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869715', 'tblTempUsageDetail_20' ) start [2025-04-09 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869715', 'tblTempUsageDetail_20' ) end [2025-04-09 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869715', 'tblTempVendorCDR_20' ) start [2025-04-09 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869715', 'tblTempVendorCDR_20' ) end [2025-04-09 13:02:24] Production.INFO: ProcessCDR(1,14869715,1,1,2) [2025-04-09 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869715', 'tblTempUsageDetail_20' ) start [2025-04-09 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869715', 'tblTempUsageDetail_20' ) end [2025-04-09 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:02:28] Production.INFO: ==3855== Releasing lock... [2025-04-09 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:02:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:03:05 [end_date_ymd] => 2025-04-09 13:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:03:05' and `end` < '2025-04-09 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-09 13:03:19] Production.INFO: count ==7158 [2025-04-09 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:03:05 - End Time 2025-04-09 13:03:05 [2025-04-09 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869720', 'tblTempUsageDetail_20' ) start [2025-04-09 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869720', 'tblTempUsageDetail_20' ) end [2025-04-09 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869720', 'tblTempVendorCDR_20' ) start [2025-04-09 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869720', 'tblTempVendorCDR_20' ) end [2025-04-09 13:03:23] Production.INFO: ProcessCDR(1,14869720,1,1,2) [2025-04-09 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869720', 'tblTempUsageDetail_20' ) start [2025-04-09 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869720', 'tblTempUsageDetail_20' ) end [2025-04-09 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:03:28] Production.INFO: ==3946== Releasing lock... [2025-04-09 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:03:28] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:04:06 [end_date_ymd] => 2025-04-09 13:04:06 [RateCDR] => 1 ) [2025-04-09 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:04:06' and `end` < '2025-04-09 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:04:20] Production.INFO: count ==7155 [2025-04-09 13:04:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:04:06 - End Time 2025-04-09 13:04:06 [2025-04-09 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869725', 'tblTempUsageDetail_20' ) start [2025-04-09 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869725', 'tblTempUsageDetail_20' ) end [2025-04-09 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869725', 'tblTempVendorCDR_20' ) start [2025-04-09 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869725', 'tblTempVendorCDR_20' ) end [2025-04-09 13:04:24] Production.INFO: ProcessCDR(1,14869725,1,1,2) [2025-04-09 13:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869725', 'tblTempUsageDetail_20' ) start [2025-04-09 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869725', 'tblTempUsageDetail_20' ) end [2025-04-09 13:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:04:30] Production.INFO: ==4037== Releasing lock... [2025-04-09 13:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:04:30] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:05:05 [end_date_ymd] => 2025-04-09 13:05:05 [RateCDR] => 1 ) [2025-04-09 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:05:05' and `end` < '2025-04-09 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:05:19] Production.INFO: count ==7169 [2025-04-09 13:05:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:05:05 - End Time 2025-04-09 13:05:05 [2025-04-09 13:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869730', 'tblTempUsageDetail_20' ) start [2025-04-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869730', 'tblTempUsageDetail_20' ) end [2025-04-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869730', 'tblTempVendorCDR_20' ) start [2025-04-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869730', 'tblTempVendorCDR_20' ) end [2025-04-09 13:05:23] Production.INFO: ProcessCDR(1,14869730,1,1,2) [2025-04-09 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869730', 'tblTempUsageDetail_20' ) start [2025-04-09 13:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869730', 'tblTempUsageDetail_20' ) end [2025-04-09 13:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:05:29] Production.INFO: ==4124== Releasing lock... [2025-04-09 13:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:05:29] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:06:06 [end_date_ymd] => 2025-04-09 13:06:06 [RateCDR] => 1 ) [2025-04-09 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:06:06' and `end` < '2025-04-09 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:06:20] Production.INFO: count ==7187 [2025-04-09 13:06:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:06:06 - End Time 2025-04-09 13:06:06 [2025-04-09 13:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869735', 'tblTempUsageDetail_20' ) start [2025-04-09 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869735', 'tblTempUsageDetail_20' ) end [2025-04-09 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869735', 'tblTempVendorCDR_20' ) start [2025-04-09 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869735', 'tblTempVendorCDR_20' ) end [2025-04-09 13:06:24] Production.INFO: ProcessCDR(1,14869735,1,1,2) [2025-04-09 13:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869735', 'tblTempUsageDetail_20' ) start [2025-04-09 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869735', 'tblTempUsageDetail_20' ) end [2025-04-09 13:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:06:29] Production.INFO: ==4274== Releasing lock... [2025-04-09 13:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:06:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:07:05 [end_date_ymd] => 2025-04-09 13:07:05 [RateCDR] => 1 ) [2025-04-09 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:07:05' and `end` < '2025-04-09 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-09 13:07:18] Production.INFO: count ==7190 [2025-04-09 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:07:05 - End Time 2025-04-09 13:07:05 [2025-04-09 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869740', 'tblTempUsageDetail_20' ) start [2025-04-09 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869740', 'tblTempUsageDetail_20' ) end [2025-04-09 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869740', 'tblTempVendorCDR_20' ) start [2025-04-09 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869740', 'tblTempVendorCDR_20' ) end [2025-04-09 13:07:22] Production.INFO: ProcessCDR(1,14869740,1,1,2) [2025-04-09 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869740', 'tblTempUsageDetail_20' ) start [2025-04-09 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869740', 'tblTempUsageDetail_20' ) end [2025-04-09 13:07:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:07:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:07:29] Production.INFO: ==4359== Releasing lock... [2025-04-09 13:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:07:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-09 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:08:06 [end_date_ymd] => 2025-04-09 13:08:06 [RateCDR] => 1 ) [2025-04-09 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:08:06' and `end` < '2025-04-09 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:08:19] Production.INFO: count ==7150 [2025-04-09 13:08:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:08:06 - End Time 2025-04-09 13:08:06 [2025-04-09 13:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869745', 'tblTempUsageDetail_20' ) start [2025-04-09 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869745', 'tblTempUsageDetail_20' ) end [2025-04-09 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869745', 'tblTempVendorCDR_20' ) start [2025-04-09 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869745', 'tblTempVendorCDR_20' ) end [2025-04-09 13:08:23] Production.INFO: ProcessCDR(1,14869745,1,1,2) [2025-04-09 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869745', 'tblTempUsageDetail_20' ) start [2025-04-09 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869745', 'tblTempUsageDetail_20' ) end [2025-04-09 13:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:08:29] Production.INFO: ==4445== Releasing lock... [2025-04-09 13:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:08:29] Production.INFO: 82 MB #Memory Used# [2025-04-09 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:09:05 [end_date_ymd] => 2025-04-09 13:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:09:05' and `end` < '2025-04-09 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-09 13:09:19] Production.INFO: count ==7107 [2025-04-09 13:09:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:09:05 - End Time 2025-04-09 13:09:05 [2025-04-09 13:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869750', 'tblTempUsageDetail_20' ) start [2025-04-09 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869750', 'tblTempUsageDetail_20' ) end [2025-04-09 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869750', 'tblTempVendorCDR_20' ) start [2025-04-09 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869750', 'tblTempVendorCDR_20' ) end [2025-04-09 13:09:23] Production.INFO: ProcessCDR(1,14869750,1,1,2) [2025-04-09 13:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869750', 'tblTempUsageDetail_20' ) start [2025-04-09 13:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869750', 'tblTempUsageDetail_20' ) end [2025-04-09 13:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:09:29] Production.INFO: ==4535== Releasing lock... [2025-04-09 13:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:09:29] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:10:06 [end_date_ymd] => 2025-04-09 13:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 10:10:06' and `end` < '2025-04-09 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-09 13:10:20] Production.INFO: count ==7085 [2025-04-09 13:10:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:10:06 - End Time 2025-04-09 13:10:06 [2025-04-09 13:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869756', 'tblTempUsageDetail_20' ) start [2025-04-09 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869756', 'tblTempUsageDetail_20' ) end [2025-04-09 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869756', 'tblTempVendorCDR_20' ) start [2025-04-09 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869756', 'tblTempVendorCDR_20' ) end [2025-04-09 13:10:24] Production.INFO: ProcessCDR(1,14869756,1,1,2) [2025-04-09 13:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869756', 'tblTempUsageDetail_20' ) start [2025-04-09 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869756', 'tblTempUsageDetail_20' ) end [2025-04-09 13:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:10:30] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:10:30] Production.INFO: ==4629== Releasing lock... [2025-04-09 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:10:30] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:11:05 [end_date_ymd] => 2025-04-09 13:11:05 [RateCDR] => 1 ) [2025-04-09 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:11:05' and `end` < '2025-04-09 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:11:19] Production.INFO: count ==7084 [2025-04-09 13:11:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:11:05 - End Time 2025-04-09 13:11:05 [2025-04-09 13:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869761', 'tblTempUsageDetail_20' ) start [2025-04-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869761', 'tblTempUsageDetail_20' ) end [2025-04-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869761', 'tblTempVendorCDR_20' ) start [2025-04-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869761', 'tblTempVendorCDR_20' ) end [2025-04-09 13:11:23] Production.INFO: ProcessCDR(1,14869761,1,1,2) [2025-04-09 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869761', 'tblTempUsageDetail_20' ) start [2025-04-09 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869761', 'tblTempUsageDetail_20' ) end [2025-04-09 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:11:28] Production.INFO: ==4719== Releasing lock... [2025-04-09 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:11:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:12:06 [end_date_ymd] => 2025-04-09 13:12:06 [RateCDR] => 1 ) [2025-04-09 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:12:06' and `end` < '2025-04-09 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:12:19] Production.INFO: count ==7067 [2025-04-09 13:12:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:12:06 - End Time 2025-04-09 13:12:06 [2025-04-09 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869766', 'tblTempUsageDetail_20' ) start [2025-04-09 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869766', 'tblTempUsageDetail_20' ) end [2025-04-09 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869766', 'tblTempVendorCDR_20' ) start [2025-04-09 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869766', 'tblTempVendorCDR_20' ) end [2025-04-09 13:12:23] Production.INFO: ProcessCDR(1,14869766,1,1,2) [2025-04-09 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869766', 'tblTempUsageDetail_20' ) start [2025-04-09 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869766', 'tblTempUsageDetail_20' ) end [2025-04-09 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:12:29] Production.INFO: ==4809== Releasing lock... [2025-04-09 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:12:29] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:13:05 [end_date_ymd] => 2025-04-09 13:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:13:05' and `end` < '2025-04-09 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-09 13:13:19] Production.INFO: count ==7069 [2025-04-09 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:13:05 - End Time 2025-04-09 13:13:05 [2025-04-09 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869771', 'tblTempUsageDetail_20' ) start [2025-04-09 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869771', 'tblTempUsageDetail_20' ) end [2025-04-09 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869771', 'tblTempVendorCDR_20' ) start [2025-04-09 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869771', 'tblTempVendorCDR_20' ) end [2025-04-09 13:13:22] Production.INFO: ProcessCDR(1,14869771,1,1,2) [2025-04-09 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869771', 'tblTempUsageDetail_20' ) start [2025-04-09 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869771', 'tblTempUsageDetail_20' ) end [2025-04-09 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:13:28] Production.INFO: ==4898== Releasing lock... [2025-04-09 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:13:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:14:05 [end_date_ymd] => 2025-04-09 13:14:05 [RateCDR] => 1 ) [2025-04-09 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:14:05' and `end` < '2025-04-09 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:14:20] Production.INFO: count ==7063 [2025-04-09 13:14:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:14:05 - End Time 2025-04-09 13:14:05 [2025-04-09 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869776', 'tblTempUsageDetail_20' ) start [2025-04-09 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869776', 'tblTempUsageDetail_20' ) end [2025-04-09 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869776', 'tblTempVendorCDR_20' ) start [2025-04-09 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869776', 'tblTempVendorCDR_20' ) end [2025-04-09 13:14:23] Production.INFO: ProcessCDR(1,14869776,1,1,2) [2025-04-09 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869776', 'tblTempUsageDetail_20' ) start [2025-04-09 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869776', 'tblTempUsageDetail_20' ) end [2025-04-09 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:14:29] Production.INFO: ==4981== Releasing lock... [2025-04-09 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:14:29] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:15:05 [end_date_ymd] => 2025-04-09 13:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:15:05' and `end` < '2025-04-09 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-09 13:15:18] Production.INFO: count ==7089 [2025-04-09 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:15:05 - End Time 2025-04-09 13:15:05 [2025-04-09 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869781', 'tblTempUsageDetail_20' ) start [2025-04-09 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869781', 'tblTempUsageDetail_20' ) end [2025-04-09 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869781', 'tblTempVendorCDR_20' ) start [2025-04-09 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869781', 'tblTempVendorCDR_20' ) end [2025-04-09 13:15:22] Production.INFO: ProcessCDR(1,14869781,1,1,2) [2025-04-09 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869781', 'tblTempUsageDetail_20' ) start [2025-04-09 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869781', 'tblTempUsageDetail_20' ) end [2025-04-09 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:15:27] Production.INFO: ==5054== Releasing lock... [2025-04-09 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:15:27] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:16:06 [end_date_ymd] => 2025-04-09 13:16:06 [RateCDR] => 1 ) [2025-04-09 13: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-09 10:16:06' and `end` < '2025-04-09 13: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-09 13:16:20] Production.INFO: count ==7096 [2025-04-09 13:16:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:16:06 - End Time 2025-04-09 13:16:06 [2025-04-09 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869786', 'tblTempUsageDetail_20' ) start [2025-04-09 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869786', 'tblTempUsageDetail_20' ) end [2025-04-09 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869786', 'tblTempVendorCDR_20' ) start [2025-04-09 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869786', 'tblTempVendorCDR_20' ) end [2025-04-09 13:16:23] Production.INFO: ProcessCDR(1,14869786,1,1,2) [2025-04-09 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869786', 'tblTempUsageDetail_20' ) start [2025-04-09 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869786', 'tblTempUsageDetail_20' ) end [2025-04-09 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:16:29] Production.INFO: ==5127== Releasing lock... [2025-04-09 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:16:29] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:17:05 [end_date_ymd] => 2025-04-09 13:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:17:05' and `end` < '2025-04-09 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-09 13:17:19] Production.INFO: count ==7088 [2025-04-09 13:17:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:17:05 - End Time 2025-04-09 13:17:05 [2025-04-09 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869791', 'tblTempUsageDetail_20' ) start [2025-04-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869791', 'tblTempUsageDetail_20' ) end [2025-04-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869791', 'tblTempVendorCDR_20' ) start [2025-04-09 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869791', 'tblTempVendorCDR_20' ) end [2025-04-09 13:17:23] Production.INFO: ProcessCDR(1,14869791,1,1,2) [2025-04-09 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869791', 'tblTempUsageDetail_20' ) start [2025-04-09 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869791', 'tblTempUsageDetail_20' ) end [2025-04-09 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:17:28] Production.INFO: ==5201== Releasing lock... [2025-04-09 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:17:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:18:06 [end_date_ymd] => 2025-04-09 13:18:06 [RateCDR] => 1 ) [2025-04-09 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-09 10:18:06' and `end` < '2025-04-09 13: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-09 13:18:19] Production.INFO: count ==7098 [2025-04-09 13:18:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:18:06 - End Time 2025-04-09 13:18:06 [2025-04-09 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869796', 'tblTempUsageDetail_20' ) start [2025-04-09 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869796', 'tblTempUsageDetail_20' ) end [2025-04-09 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869796', 'tblTempVendorCDR_20' ) start [2025-04-09 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869796', 'tblTempVendorCDR_20' ) end [2025-04-09 13:18:23] Production.INFO: ProcessCDR(1,14869796,1,1,2) [2025-04-09 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869796', 'tblTempUsageDetail_20' ) start [2025-04-09 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869796', 'tblTempUsageDetail_20' ) end [2025-04-09 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:18:28] Production.INFO: ==5291== Releasing lock... [2025-04-09 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:18:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:19:04 [end_date_ymd] => 2025-04-09 13:19:04 [RateCDR] => 1 ) [2025-04-09 13:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:19:04' and `end` < '2025-04-09 13: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-09 13:19:18] Production.INFO: count ==7095 [2025-04-09 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:19:04 - End Time 2025-04-09 13:19:04 [2025-04-09 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869801', 'tblTempUsageDetail_20' ) start [2025-04-09 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869801', 'tblTempUsageDetail_20' ) end [2025-04-09 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869801', 'tblTempVendorCDR_20' ) start [2025-04-09 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869801', 'tblTempVendorCDR_20' ) end [2025-04-09 13:19:22] Production.INFO: ProcessCDR(1,14869801,1,1,2) [2025-04-09 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869801', 'tblTempUsageDetail_20' ) start [2025-04-09 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869801', 'tblTempUsageDetail_20' ) end [2025-04-09 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:19:27] Production.INFO: ==5366== Releasing lock... [2025-04-09 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:19:27] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:20:05 [end_date_ymd] => 2025-04-09 13:20:05 [RateCDR] => 1 ) [2025-04-09 13: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 10:20:05' and `end` < '2025-04-09 13: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-09 13:20:19] Production.INFO: count ==7129 [2025-04-09 13:20:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:20:05 - End Time 2025-04-09 13:20:05 [2025-04-09 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869807', 'tblTempUsageDetail_20' ) start [2025-04-09 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869807', 'tblTempUsageDetail_20' ) end [2025-04-09 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869807', 'tblTempVendorCDR_20' ) start [2025-04-09 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869807', 'tblTempVendorCDR_20' ) end [2025-04-09 13:20:23] Production.INFO: ProcessCDR(1,14869807,1,1,2) [2025-04-09 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869807', 'tblTempUsageDetail_20' ) start [2025-04-09 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869807', 'tblTempUsageDetail_20' ) end [2025-04-09 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:20:28] Production.INFO: ==5442== Releasing lock... [2025-04-09 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:20:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:21:06 [end_date_ymd] => 2025-04-09 13:21:06 [RateCDR] => 1 ) [2025-04-09 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:21:06' and `end` < '2025-04-09 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:21:20] Production.INFO: count ==7133 [2025-04-09 13:21:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:21:06 - End Time 2025-04-09 13:21:06 [2025-04-09 13:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869812', 'tblTempUsageDetail_20' ) start [2025-04-09 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869812', 'tblTempUsageDetail_20' ) end [2025-04-09 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869812', 'tblTempVendorCDR_20' ) start [2025-04-09 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869812', 'tblTempVendorCDR_20' ) end [2025-04-09 13:21:23] Production.INFO: ProcessCDR(1,14869812,1,1,2) [2025-04-09 13:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869812', 'tblTempUsageDetail_20' ) start [2025-04-09 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869812', 'tblTempUsageDetail_20' ) end [2025-04-09 13:21:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:21:29] Production.INFO: ==5517== Releasing lock... [2025-04-09 13:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:21:29] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:22:05 [end_date_ymd] => 2025-04-09 13:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:22:05' and `end` < '2025-04-09 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-09 13:22:19] Production.INFO: count ==7133 [2025-04-09 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:22:05 - End Time 2025-04-09 13:22:05 [2025-04-09 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869817', 'tblTempUsageDetail_20' ) start [2025-04-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869817', 'tblTempUsageDetail_20' ) end [2025-04-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869817', 'tblTempVendorCDR_20' ) start [2025-04-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869817', 'tblTempVendorCDR_20' ) end [2025-04-09 13:22:23] Production.INFO: ProcessCDR(1,14869817,1,1,2) [2025-04-09 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869817', 'tblTempUsageDetail_20' ) start [2025-04-09 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869817', 'tblTempUsageDetail_20' ) end [2025-04-09 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:22:28] Production.INFO: ==5629== Releasing lock... [2025-04-09 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:22:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:23:05 [end_date_ymd] => 2025-04-09 13:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:23:05' and `end` < '2025-04-09 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-09 13:23:19] Production.INFO: count ==7135 [2025-04-09 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:23:05 - End Time 2025-04-09 13:23:05 [2025-04-09 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869822', 'tblTempUsageDetail_20' ) start [2025-04-09 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869822', 'tblTempUsageDetail_20' ) end [2025-04-09 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869822', 'tblTempVendorCDR_20' ) start [2025-04-09 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869822', 'tblTempVendorCDR_20' ) end [2025-04-09 13:23:23] Production.INFO: ProcessCDR(1,14869822,1,1,2) [2025-04-09 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869822', 'tblTempUsageDetail_20' ) start [2025-04-09 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869822', 'tblTempUsageDetail_20' ) end [2025-04-09 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:23:28] Production.INFO: ==5702== Releasing lock... [2025-04-09 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:23:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:24:05 [end_date_ymd] => 2025-04-09 13:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:24:05' and `end` < '2025-04-09 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-09 13:24:19] Production.INFO: count ==7133 [2025-04-09 13:24:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:24:05 - End Time 2025-04-09 13:24:05 [2025-04-09 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869827', 'tblTempUsageDetail_20' ) start [2025-04-09 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869827', 'tblTempUsageDetail_20' ) end [2025-04-09 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869827', 'tblTempVendorCDR_20' ) start [2025-04-09 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869827', 'tblTempVendorCDR_20' ) end [2025-04-09 13:24:23] Production.INFO: ProcessCDR(1,14869827,1,1,2) [2025-04-09 13:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869827', 'tblTempUsageDetail_20' ) start [2025-04-09 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869827', 'tblTempUsageDetail_20' ) end [2025-04-09 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:24:28] Production.INFO: ==5776== Releasing lock... [2025-04-09 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:24:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:25:06 [end_date_ymd] => 2025-04-09 13:25:06 [RateCDR] => 1 ) [2025-04-09 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:25:06' and `end` < '2025-04-09 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:25:19] Production.INFO: count ==7107 [2025-04-09 13:25:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:25:06 - End Time 2025-04-09 13:25:06 [2025-04-09 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869832', 'tblTempUsageDetail_20' ) start [2025-04-09 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869832', 'tblTempUsageDetail_20' ) end [2025-04-09 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869832', 'tblTempVendorCDR_20' ) start [2025-04-09 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869832', 'tblTempVendorCDR_20' ) end [2025-04-09 13:25:23] Production.INFO: ProcessCDR(1,14869832,1,1,2) [2025-04-09 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869832', 'tblTempUsageDetail_20' ) start [2025-04-09 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869832', 'tblTempUsageDetail_20' ) end [2025-04-09 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:25:28] Production.INFO: ==5849== Releasing lock... [2025-04-09 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:25:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-09 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:26:05 [end_date_ymd] => 2025-04-09 13:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:26:05' and `end` < '2025-04-09 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-09 13:26:19] Production.INFO: count ==7101 [2025-04-09 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:26:05 - End Time 2025-04-09 13:26:05 [2025-04-09 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869837', 'tblTempUsageDetail_20' ) start [2025-04-09 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869837', 'tblTempUsageDetail_20' ) end [2025-04-09 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869837', 'tblTempVendorCDR_20' ) start [2025-04-09 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869837', 'tblTempVendorCDR_20' ) end [2025-04-09 13:26:22] Production.INFO: ProcessCDR(1,14869837,1,1,2) [2025-04-09 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869837', 'tblTempUsageDetail_20' ) start [2025-04-09 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869837', 'tblTempUsageDetail_20' ) end [2025-04-09 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:26:27] Production.INFO: ==5923== Releasing lock... [2025-04-09 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:26:27] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:27:06 [end_date_ymd] => 2025-04-09 13:27:06 [RateCDR] => 1 ) [2025-04-09 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:27:06' and `end` < '2025-04-09 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:27:19] Production.INFO: count ==7088 [2025-04-09 13:27:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:27:06 - End Time 2025-04-09 13:27:06 [2025-04-09 13:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869842', 'tblTempUsageDetail_20' ) start [2025-04-09 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869842', 'tblTempUsageDetail_20' ) end [2025-04-09 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869842', 'tblTempVendorCDR_20' ) start [2025-04-09 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869842', 'tblTempVendorCDR_20' ) end [2025-04-09 13:27:23] Production.INFO: ProcessCDR(1,14869842,1,1,2) [2025-04-09 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869842', 'tblTempUsageDetail_20' ) start [2025-04-09 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869842', 'tblTempUsageDetail_20' ) end [2025-04-09 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:27:26] Production.INFO: ==6001== Releasing lock... [2025-04-09 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:27:26] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:28:05 [end_date_ymd] => 2025-04-09 13:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:28:05' and `end` < '2025-04-09 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-09 13:28:19] Production.INFO: count ==7082 [2025-04-09 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:28:05 - End Time 2025-04-09 13:28:05 [2025-04-09 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869847', 'tblTempUsageDetail_20' ) start [2025-04-09 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869847', 'tblTempUsageDetail_20' ) end [2025-04-09 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869847', 'tblTempVendorCDR_20' ) start [2025-04-09 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869847', 'tblTempVendorCDR_20' ) end [2025-04-09 13:28:22] Production.INFO: ProcessCDR(1,14869847,1,1,2) [2025-04-09 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869847', 'tblTempUsageDetail_20' ) start [2025-04-09 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869847', 'tblTempUsageDetail_20' ) end [2025-04-09 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:28:28] Production.INFO: ==6073== Releasing lock... [2025-04-09 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:28:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:29:05 [end_date_ymd] => 2025-04-09 13:29:05 [RateCDR] => 1 ) [2025-04-09 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:29:05' and `end` < '2025-04-09 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:29:19] Production.INFO: count ==7082 [2025-04-09 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:29:05 - End Time 2025-04-09 13:29:05 [2025-04-09 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869852', 'tblTempUsageDetail_20' ) start [2025-04-09 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869852', 'tblTempUsageDetail_20' ) end [2025-04-09 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869852', 'tblTempVendorCDR_20' ) start [2025-04-09 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869852', 'tblTempVendorCDR_20' ) end [2025-04-09 13:29:23] Production.INFO: ProcessCDR(1,14869852,1,1,2) [2025-04-09 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869852', 'tblTempUsageDetail_20' ) start [2025-04-09 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869852', 'tblTempUsageDetail_20' ) end [2025-04-09 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:29:28] Production.INFO: ==6147== Releasing lock... [2025-04-09 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:29:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:30:05 [end_date_ymd] => 2025-04-09 13:30:05 [RateCDR] => 1 ) [2025-04-09 13: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-09 10:30:05' and `end` < '2025-04-09 13: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-09 13:30:19] Production.INFO: count ==7092 [2025-04-09 13:30:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:30:05 - End Time 2025-04-09 13:30:05 [2025-04-09 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869858', 'tblTempUsageDetail_20' ) start [2025-04-09 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869858', 'tblTempUsageDetail_20' ) end [2025-04-09 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869858', 'tblTempVendorCDR_20' ) start [2025-04-09 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869858', 'tblTempVendorCDR_20' ) end [2025-04-09 13:30:23] Production.INFO: ProcessCDR(1,14869858,1,1,2) [2025-04-09 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869858', 'tblTempUsageDetail_20' ) start [2025-04-09 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869858', 'tblTempUsageDetail_20' ) end [2025-04-09 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:30:28] Production.INFO: ==6221== Releasing lock... [2025-04-09 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:30:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:31:05 [end_date_ymd] => 2025-04-09 13:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:31:05' and `end` < '2025-04-09 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-09 13:31:19] Production.INFO: count ==7081 [2025-04-09 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:31:05 - End Time 2025-04-09 13:31:05 [2025-04-09 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869863', 'tblTempUsageDetail_20' ) start [2025-04-09 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869863', 'tblTempUsageDetail_20' ) end [2025-04-09 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869863', 'tblTempVendorCDR_20' ) start [2025-04-09 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869863', 'tblTempVendorCDR_20' ) end [2025-04-09 13:31:22] Production.INFO: ProcessCDR(1,14869863,1,1,2) [2025-04-09 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869863', 'tblTempUsageDetail_20' ) start [2025-04-09 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869863', 'tblTempUsageDetail_20' ) end [2025-04-09 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:31:28] Production.INFO: ==6296== Releasing lock... [2025-04-09 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:31:28] Production.INFO: 81.5 MB #Memory Used# [2025-04-09 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:32:05 [end_date_ymd] => 2025-04-09 13:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:32:05' and `end` < '2025-04-09 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-09 13:32:19] Production.INFO: count ==7044 [2025-04-09 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:32:05 - End Time 2025-04-09 13:32:05 [2025-04-09 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869868', 'tblTempUsageDetail_20' ) start [2025-04-09 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869868', 'tblTempUsageDetail_20' ) end [2025-04-09 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869868', 'tblTempVendorCDR_20' ) start [2025-04-09 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869868', 'tblTempVendorCDR_20' ) end [2025-04-09 13:32:22] Production.INFO: ProcessCDR(1,14869868,1,1,2) [2025-04-09 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869868', 'tblTempUsageDetail_20' ) start [2025-04-09 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869868', 'tblTempUsageDetail_20' ) end [2025-04-09 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:32:28] Production.INFO: ==6368== Releasing lock... [2025-04-09 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:32:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-09 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:33:05 [end_date_ymd] => 2025-04-09 13:33:05 [RateCDR] => 1 ) [2025-04-09 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:33:05' and `end` < '2025-04-09 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:33:19] Production.INFO: count ==7003 [2025-04-09 13:33:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:33:05 - End Time 2025-04-09 13:33:05 [2025-04-09 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869873', 'tblTempUsageDetail_20' ) start [2025-04-09 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869873', 'tblTempUsageDetail_20' ) end [2025-04-09 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869873', 'tblTempVendorCDR_20' ) start [2025-04-09 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869873', 'tblTempVendorCDR_20' ) end [2025-04-09 13:33:23] Production.INFO: ProcessCDR(1,14869873,1,1,2) [2025-04-09 13:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869873', 'tblTempUsageDetail_20' ) start [2025-04-09 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869873', 'tblTempUsageDetail_20' ) end [2025-04-09 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:33:27] Production.INFO: ==6442== Releasing lock... [2025-04-09 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:33:27] Production.INFO: 80.25 MB #Memory Used# [2025-04-09 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:34:05 [end_date_ymd] => 2025-04-09 13:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:34:05' and `end` < '2025-04-09 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-09 13:34:19] Production.INFO: count ==6953 [2025-04-09 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:34:05 - End Time 2025-04-09 13:34:05 [2025-04-09 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869878', 'tblTempUsageDetail_20' ) start [2025-04-09 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869878', 'tblTempUsageDetail_20' ) end [2025-04-09 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869878', 'tblTempVendorCDR_20' ) start [2025-04-09 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869878', 'tblTempVendorCDR_20' ) end [2025-04-09 13:34:22] Production.INFO: ProcessCDR(1,14869878,1,1,2) [2025-04-09 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869878', 'tblTempUsageDetail_20' ) start [2025-04-09 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869878', 'tblTempUsageDetail_20' ) end [2025-04-09 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:34:27] Production.INFO: ==6515== Releasing lock... [2025-04-09 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:34:27] Production.INFO: 80 MB #Memory Used# [2025-04-09 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:35:06 [end_date_ymd] => 2025-04-09 13:35:06 [RateCDR] => 1 ) [2025-04-09 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:35:06' and `end` < '2025-04-09 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:35:19] Production.INFO: count ==6917 [2025-04-09 13:35:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:35:06 - End Time 2025-04-09 13:35:06 [2025-04-09 13:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869883', 'tblTempUsageDetail_20' ) start [2025-04-09 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869883', 'tblTempUsageDetail_20' ) end [2025-04-09 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869883', 'tblTempVendorCDR_20' ) start [2025-04-09 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869883', 'tblTempVendorCDR_20' ) end [2025-04-09 13:35:23] Production.INFO: ProcessCDR(1,14869883,1,1,2) [2025-04-09 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869883', 'tblTempUsageDetail_20' ) start [2025-04-09 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869883', 'tblTempUsageDetail_20' ) end [2025-04-09 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:35:28] Production.INFO: ==6590== Releasing lock... [2025-04-09 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:35:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-09 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:36:05 [end_date_ymd] => 2025-04-09 13:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:36:05' and `end` < '2025-04-09 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-09 13:36:18] Production.INFO: count ==6920 [2025-04-09 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:36:05 - End Time 2025-04-09 13:36:05 [2025-04-09 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869888', 'tblTempUsageDetail_20' ) start [2025-04-09 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869888', 'tblTempUsageDetail_20' ) end [2025-04-09 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869888', 'tblTempVendorCDR_20' ) start [2025-04-09 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869888', 'tblTempVendorCDR_20' ) end [2025-04-09 13:36:22] Production.INFO: ProcessCDR(1,14869888,1,1,2) [2025-04-09 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869888', 'tblTempUsageDetail_20' ) start [2025-04-09 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869888', 'tblTempUsageDetail_20' ) end [2025-04-09 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:36:27] Production.INFO: ==6661== Releasing lock... [2025-04-09 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:36:27] Production.INFO: 79.75 MB #Memory Used# [2025-04-09 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:37:06 [end_date_ymd] => 2025-04-09 13:37:06 [RateCDR] => 1 ) [2025-04-09 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:37:06' and `end` < '2025-04-09 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:37:19] Production.INFO: count ==6888 [2025-04-09 13:37:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:37:06 - End Time 2025-04-09 13:37:06 [2025-04-09 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869893', 'tblTempUsageDetail_20' ) start [2025-04-09 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869893', 'tblTempUsageDetail_20' ) end [2025-04-09 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869893', 'tblTempVendorCDR_20' ) start [2025-04-09 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869893', 'tblTempVendorCDR_20' ) end [2025-04-09 13:37:23] Production.INFO: ProcessCDR(1,14869893,1,1,2) [2025-04-09 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869893', 'tblTempUsageDetail_20' ) start [2025-04-09 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869893', 'tblTempUsageDetail_20' ) end [2025-04-09 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:37:28] Production.INFO: ==6774== Releasing lock... [2025-04-09 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:37:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:38:05 [end_date_ymd] => 2025-04-09 13:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:38:05' and `end` < '2025-04-09 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-09 13:38:19] Production.INFO: count ==6859 [2025-04-09 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:38:05 - End Time 2025-04-09 13:38:05 [2025-04-09 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869898', 'tblTempUsageDetail_20' ) start [2025-04-09 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869898', 'tblTempUsageDetail_20' ) end [2025-04-09 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869898', 'tblTempVendorCDR_20' ) start [2025-04-09 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869898', 'tblTempVendorCDR_20' ) end [2025-04-09 13:38:22] Production.INFO: ProcessCDR(1,14869898,1,1,2) [2025-04-09 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869898', 'tblTempUsageDetail_20' ) start [2025-04-09 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869898', 'tblTempUsageDetail_20' ) end [2025-04-09 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:38:26] Production.INFO: ==6850== Releasing lock... [2025-04-09 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:38:26] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:39:05 [end_date_ymd] => 2025-04-09 13:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:39:05' and `end` < '2025-04-09 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-09 13:39:19] Production.INFO: count ==6858 [2025-04-09 13:39:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:39:05 - End Time 2025-04-09 13:39:05 [2025-04-09 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869903', 'tblTempUsageDetail_20' ) start [2025-04-09 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869903', 'tblTempUsageDetail_20' ) end [2025-04-09 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869903', 'tblTempVendorCDR_20' ) start [2025-04-09 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869903', 'tblTempVendorCDR_20' ) end [2025-04-09 13:39:23] Production.INFO: ProcessCDR(1,14869903,1,1,2) [2025-04-09 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869903', 'tblTempUsageDetail_20' ) start [2025-04-09 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869903', 'tblTempUsageDetail_20' ) end [2025-04-09 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:39:28] Production.INFO: ==6925== Releasing lock... [2025-04-09 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:39:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:40:06 [end_date_ymd] => 2025-04-09 13:40:06 [RateCDR] => 1 ) [2025-04-09 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:40:06' and `end` < '2025-04-09 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:40:20] Production.INFO: count ==6865 [2025-04-09 13:40:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:40:06 - End Time 2025-04-09 13:40:06 [2025-04-09 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869909', 'tblTempUsageDetail_20' ) start [2025-04-09 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869909', 'tblTempUsageDetail_20' ) end [2025-04-09 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869909', 'tblTempVendorCDR_20' ) start [2025-04-09 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869909', 'tblTempVendorCDR_20' ) end [2025-04-09 13:40:24] Production.INFO: ProcessCDR(1,14869909,1,1,2) [2025-04-09 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869909', 'tblTempUsageDetail_20' ) start [2025-04-09 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869909', 'tblTempUsageDetail_20' ) end [2025-04-09 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:40:29] Production.INFO: ==7001== Releasing lock... [2025-04-09 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:40:29] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:41:05 [end_date_ymd] => 2025-04-09 13:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:41:05' and `end` < '2025-04-09 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-09 13:41:19] Production.INFO: count ==6834 [2025-04-09 13:41:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:41:05 - End Time 2025-04-09 13:41:05 [2025-04-09 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869914', 'tblTempUsageDetail_20' ) start [2025-04-09 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869914', 'tblTempUsageDetail_20' ) end [2025-04-09 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869914', 'tblTempVendorCDR_20' ) start [2025-04-09 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869914', 'tblTempVendorCDR_20' ) end [2025-04-09 13:41:22] Production.INFO: ProcessCDR(1,14869914,1,1,2) [2025-04-09 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869914', 'tblTempUsageDetail_20' ) start [2025-04-09 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869914', 'tblTempUsageDetail_20' ) end [2025-04-09 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:41:25] Production.INFO: ==7073== Releasing lock... [2025-04-09 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:41:25] Production.INFO: 79 MB #Memory Used# [2025-04-09 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:42:06 [end_date_ymd] => 2025-04-09 13:42:06 [RateCDR] => 1 ) [2025-04-09 13: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-09 10:42:06' and `end` < '2025-04-09 13: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-09 13:42:20] Production.INFO: count ==6821 [2025-04-09 13:42:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:42:06 - End Time 2025-04-09 13:42:06 [2025-04-09 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869919', 'tblTempUsageDetail_20' ) start [2025-04-09 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869919', 'tblTempUsageDetail_20' ) end [2025-04-09 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869919', 'tblTempVendorCDR_20' ) start [2025-04-09 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869919', 'tblTempVendorCDR_20' ) end [2025-04-09 13:42:23] Production.INFO: ProcessCDR(1,14869919,1,1,2) [2025-04-09 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869919', 'tblTempUsageDetail_20' ) start [2025-04-09 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869919', 'tblTempUsageDetail_20' ) end [2025-04-09 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:42:28] Production.INFO: ==7143== Releasing lock... [2025-04-09 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:42:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:43:05 [end_date_ymd] => 2025-04-09 13:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:43:05' and `end` < '2025-04-09 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-09 13:43:20] Production.INFO: count ==6860 [2025-04-09 13:43:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:43:05 - End Time 2025-04-09 13:43:05 [2025-04-09 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869924', 'tblTempUsageDetail_20' ) start [2025-04-09 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869924', 'tblTempUsageDetail_20' ) end [2025-04-09 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869924', 'tblTempVendorCDR_20' ) start [2025-04-09 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869924', 'tblTempVendorCDR_20' ) end [2025-04-09 13:43:23] Production.INFO: ProcessCDR(1,14869924,1,1,2) [2025-04-09 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869924', 'tblTempUsageDetail_20' ) start [2025-04-09 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869924', 'tblTempUsageDetail_20' ) end [2025-04-09 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:43:28] Production.INFO: ==7212== Releasing lock... [2025-04-09 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:43:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:44:06 [end_date_ymd] => 2025-04-09 13:44:06 [RateCDR] => 1 ) [2025-04-09 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:44:06' and `end` < '2025-04-09 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:44:20] Production.INFO: count ==6871 [2025-04-09 13:44:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:44:06 - End Time 2025-04-09 13:44:06 [2025-04-09 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869929', 'tblTempUsageDetail_20' ) start [2025-04-09 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869929', 'tblTempUsageDetail_20' ) end [2025-04-09 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869929', 'tblTempVendorCDR_20' ) start [2025-04-09 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869929', 'tblTempVendorCDR_20' ) end [2025-04-09 13:44:23] Production.INFO: ProcessCDR(1,14869929,1,1,2) [2025-04-09 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869929', 'tblTempUsageDetail_20' ) start [2025-04-09 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869929', 'tblTempUsageDetail_20' ) end [2025-04-09 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:44:28] Production.INFO: ==7285== Releasing lock... [2025-04-09 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:44:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:45:05 [end_date_ymd] => 2025-04-09 13:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:45:05' and `end` < '2025-04-09 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-09 13:45:19] Production.INFO: count ==6867 [2025-04-09 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:45:05 - End Time 2025-04-09 13:45:05 [2025-04-09 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869934', 'tblTempUsageDetail_20' ) start [2025-04-09 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869934', 'tblTempUsageDetail_20' ) end [2025-04-09 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869934', 'tblTempVendorCDR_20' ) start [2025-04-09 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869934', 'tblTempVendorCDR_20' ) end [2025-04-09 13:45:22] Production.INFO: ProcessCDR(1,14869934,1,1,2) [2025-04-09 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869934', 'tblTempUsageDetail_20' ) start [2025-04-09 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869934', 'tblTempUsageDetail_20' ) end [2025-04-09 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:45:28] Production.INFO: ==7356== Releasing lock... [2025-04-09 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:45:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:46:06 [end_date_ymd] => 2025-04-09 13:46:06 [RateCDR] => 1 ) [2025-04-09 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:46:06' and `end` < '2025-04-09 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:46:20] Production.INFO: count ==6859 [2025-04-09 13:46:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:46:06 - End Time 2025-04-09 13:46:06 [2025-04-09 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869939', 'tblTempUsageDetail_20' ) start [2025-04-09 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869939', 'tblTempUsageDetail_20' ) end [2025-04-09 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869939', 'tblTempVendorCDR_20' ) start [2025-04-09 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869939', 'tblTempVendorCDR_20' ) end [2025-04-09 13:46:23] Production.INFO: ProcessCDR(1,14869939,1,1,2) [2025-04-09 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869939', 'tblTempUsageDetail_20' ) start [2025-04-09 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869939', 'tblTempUsageDetail_20' ) end [2025-04-09 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:46:29] Production.INFO: ==7427== Releasing lock... [2025-04-09 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:46:29] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:47:05 [end_date_ymd] => 2025-04-09 13:47:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:47:05' and `end` < '2025-04-09 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-09 13:47:19] Production.INFO: count ==6880 [2025-04-09 13:47:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:47:05 - End Time 2025-04-09 13:47:05 [2025-04-09 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869944', 'tblTempUsageDetail_20' ) start [2025-04-09 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869944', 'tblTempUsageDetail_20' ) end [2025-04-09 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869944', 'tblTempVendorCDR_20' ) start [2025-04-09 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869944', 'tblTempVendorCDR_20' ) end [2025-04-09 13:47:22] Production.INFO: ProcessCDR(1,14869944,1,1,2) [2025-04-09 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869944', 'tblTempUsageDetail_20' ) start [2025-04-09 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869944', 'tblTempUsageDetail_20' ) end [2025-04-09 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:47:27] Production.INFO: ==7497== Releasing lock... [2025-04-09 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:47:27] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:48:06 [end_date_ymd] => 2025-04-09 13:48:06 [RateCDR] => 1 ) [2025-04-09 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:48:06' and `end` < '2025-04-09 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:48:20] Production.INFO: count ==6891 [2025-04-09 13:48:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:48:06 - End Time 2025-04-09 13:48:06 [2025-04-09 13:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869949', 'tblTempUsageDetail_20' ) start [2025-04-09 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869949', 'tblTempUsageDetail_20' ) end [2025-04-09 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869949', 'tblTempVendorCDR_20' ) start [2025-04-09 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869949', 'tblTempVendorCDR_20' ) end [2025-04-09 13:48:24] Production.INFO: ProcessCDR(1,14869949,1,1,2) [2025-04-09 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869949', 'tblTempUsageDetail_20' ) start [2025-04-09 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869949', 'tblTempUsageDetail_20' ) end [2025-04-09 13:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:48:29] Production.INFO: ==7568== Releasing lock... [2025-04-09 13:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:48:29] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:49:05 [end_date_ymd] => 2025-04-09 13:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:49:05' and `end` < '2025-04-09 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-09 13:49:19] Production.INFO: count ==6904 [2025-04-09 13:49:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:49:05 - End Time 2025-04-09 13:49:05 [2025-04-09 13:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869954', 'tblTempUsageDetail_20' ) start [2025-04-09 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869954', 'tblTempUsageDetail_20' ) end [2025-04-09 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869954', 'tblTempVendorCDR_20' ) start [2025-04-09 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869954', 'tblTempVendorCDR_20' ) end [2025-04-09 13:49:23] Production.INFO: ProcessCDR(1,14869954,1,1,2) [2025-04-09 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869954', 'tblTempUsageDetail_20' ) start [2025-04-09 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869954', 'tblTempUsageDetail_20' ) end [2025-04-09 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:49:28] Production.INFO: ==7639== Releasing lock... [2025-04-09 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:49:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:50:06 [end_date_ymd] => 2025-04-09 13:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 10:50:06' and `end` < '2025-04-09 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-09 13:50:20] Production.INFO: count ==6911 [2025-04-09 13:50:24] Production.ERROR: pbx CDR StartTime 2025-04-09 10:50:06 - End Time 2025-04-09 13:50:06 [2025-04-09 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869959', 'tblTempUsageDetail_20' ) start [2025-04-09 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869959', 'tblTempUsageDetail_20' ) end [2025-04-09 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869959', 'tblTempVendorCDR_20' ) start [2025-04-09 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869959', 'tblTempVendorCDR_20' ) end [2025-04-09 13:50:24] Production.INFO: ProcessCDR(1,14869959,1,1,2) [2025-04-09 13:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869959', 'tblTempUsageDetail_20' ) start [2025-04-09 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869959', 'tblTempUsageDetail_20' ) end [2025-04-09 13:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:50:29] Production.INFO: ==7713== Releasing lock... [2025-04-09 13:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:50:29] Production.INFO: 79.75 MB #Memory Used# [2025-04-09 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:51:05 [end_date_ymd] => 2025-04-09 13:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:51:05' and `end` < '2025-04-09 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-09 13:51:19] Production.INFO: count ==6837 [2025-04-09 13:51:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:51:05 - End Time 2025-04-09 13:51:05 [2025-04-09 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869965', 'tblTempUsageDetail_20' ) start [2025-04-09 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869965', 'tblTempUsageDetail_20' ) end [2025-04-09 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869965', 'tblTempVendorCDR_20' ) start [2025-04-09 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869965', 'tblTempVendorCDR_20' ) end [2025-04-09 13:51:22] Production.INFO: ProcessCDR(1,14869965,1,1,2) [2025-04-09 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869965', 'tblTempUsageDetail_20' ) start [2025-04-09 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869965', 'tblTempUsageDetail_20' ) end [2025-04-09 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:51:27] Production.INFO: ==7786== Releasing lock... [2025-04-09 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:51:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:52:06 [end_date_ymd] => 2025-04-09 13:52:06 [RateCDR] => 1 ) [2025-04-09 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-09 10:52:06' and `end` < '2025-04-09 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-09 13:52:20] Production.INFO: count ==6836 [2025-04-09 13:52:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:52:06 - End Time 2025-04-09 13:52:06 [2025-04-09 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869970', 'tblTempUsageDetail_20' ) start [2025-04-09 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869970', 'tblTempUsageDetail_20' ) end [2025-04-09 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869970', 'tblTempVendorCDR_20' ) start [2025-04-09 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869970', 'tblTempVendorCDR_20' ) end [2025-04-09 13:52:23] Production.INFO: ProcessCDR(1,14869970,1,1,2) [2025-04-09 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869970', 'tblTempUsageDetail_20' ) start [2025-04-09 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869970', 'tblTempUsageDetail_20' ) end [2025-04-09 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:52:28] Production.INFO: ==7860== Releasing lock... [2025-04-09 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:52:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:53:05 [end_date_ymd] => 2025-04-09 13:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:53:05' and `end` < '2025-04-09 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-09 13:53:19] Production.INFO: count ==6838 [2025-04-09 13:53:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:53:05 - End Time 2025-04-09 13:53:05 [2025-04-09 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869975', 'tblTempUsageDetail_20' ) start [2025-04-09 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869975', 'tblTempUsageDetail_20' ) end [2025-04-09 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869975', 'tblTempVendorCDR_20' ) start [2025-04-09 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869975', 'tblTempVendorCDR_20' ) end [2025-04-09 13:53:22] Production.INFO: ProcessCDR(1,14869975,1,1,2) [2025-04-09 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869975', 'tblTempUsageDetail_20' ) start [2025-04-09 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869975', 'tblTempUsageDetail_20' ) end [2025-04-09 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:53:27] Production.INFO: ==7970== Releasing lock... [2025-04-09 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:53:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:54:05 [end_date_ymd] => 2025-04-09 13:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:54:05' and `end` < '2025-04-09 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-09 13:54:19] Production.INFO: count ==6850 [2025-04-09 13:54:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:54:05 - End Time 2025-04-09 13:54:05 [2025-04-09 13:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869980', 'tblTempUsageDetail_20' ) start [2025-04-09 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869980', 'tblTempUsageDetail_20' ) end [2025-04-09 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869980', 'tblTempVendorCDR_20' ) start [2025-04-09 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869980', 'tblTempVendorCDR_20' ) end [2025-04-09 13:54:23] Production.INFO: ProcessCDR(1,14869980,1,1,2) [2025-04-09 13:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869980', 'tblTempUsageDetail_20' ) start [2025-04-09 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869980', 'tblTempUsageDetail_20' ) end [2025-04-09 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:54:28] Production.INFO: ==8045== Releasing lock... [2025-04-09 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:54:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:55:05 [end_date_ymd] => 2025-04-09 13:55:05 [RateCDR] => 1 ) [2025-04-09 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:55:05' and `end` < '2025-04-09 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:55:19] Production.INFO: count ==6867 [2025-04-09 13:55:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:55:05 - End Time 2025-04-09 13:55:05 [2025-04-09 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869985', 'tblTempUsageDetail_20' ) start [2025-04-09 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869985', 'tblTempUsageDetail_20' ) end [2025-04-09 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869985', 'tblTempVendorCDR_20' ) start [2025-04-09 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869985', 'tblTempVendorCDR_20' ) end [2025-04-09 13:55:23] Production.INFO: ProcessCDR(1,14869985,1,1,2) [2025-04-09 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869985', 'tblTempUsageDetail_20' ) start [2025-04-09 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869985', 'tblTempUsageDetail_20' ) end [2025-04-09 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:55:26] Production.INFO: ==8113== Releasing lock... [2025-04-09 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:55:26] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:56:05 [end_date_ymd] => 2025-04-09 13:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:56:05' and `end` < '2025-04-09 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-09 13:56:19] Production.INFO: count ==6887 [2025-04-09 13:56:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:56:05 - End Time 2025-04-09 13:56:05 [2025-04-09 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869990', 'tblTempUsageDetail_20' ) start [2025-04-09 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869990', 'tblTempUsageDetail_20' ) end [2025-04-09 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869990', 'tblTempVendorCDR_20' ) start [2025-04-09 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869990', 'tblTempVendorCDR_20' ) end [2025-04-09 13:56:23] Production.INFO: ProcessCDR(1,14869990,1,1,2) [2025-04-09 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869990', 'tblTempUsageDetail_20' ) start [2025-04-09 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869990', 'tblTempUsageDetail_20' ) end [2025-04-09 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:56:28] Production.INFO: ==8186== Releasing lock... [2025-04-09 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:56:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:57:05 [end_date_ymd] => 2025-04-09 13:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 10:57:05' and `end` < '2025-04-09 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-09 13:57:19] Production.INFO: count ==6882 [2025-04-09 13:57:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:57:05 - End Time 2025-04-09 13:57:05 [2025-04-09 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869995', 'tblTempUsageDetail_20' ) start [2025-04-09 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14869995', 'tblTempUsageDetail_20' ) end [2025-04-09 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869995', 'tblTempVendorCDR_20' ) start [2025-04-09 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14869995', 'tblTempVendorCDR_20' ) end [2025-04-09 13:57:22] Production.INFO: ProcessCDR(1,14869995,1,1,2) [2025-04-09 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14869995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14869995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14869995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14869995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869995', 'tblTempUsageDetail_20' ) start [2025-04-09 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14869995', 'tblTempUsageDetail_20' ) end [2025-04-09 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:57:27] Production.INFO: ==8261== Releasing lock... [2025-04-09 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:57:27] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:58:06 [end_date_ymd] => 2025-04-09 13:58:06 [RateCDR] => 1 ) [2025-04-09 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:58:06' and `end` < '2025-04-09 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:58:20] Production.INFO: count ==6888 [2025-04-09 13:58:23] Production.ERROR: pbx CDR StartTime 2025-04-09 10:58:06 - End Time 2025-04-09 13:58:06 [2025-04-09 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870000', 'tblTempUsageDetail_20' ) start [2025-04-09 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870000', 'tblTempUsageDetail_20' ) end [2025-04-09 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870000', 'tblTempVendorCDR_20' ) start [2025-04-09 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870000', 'tblTempVendorCDR_20' ) end [2025-04-09 13:58:24] Production.INFO: ProcessCDR(1,14870000,1,1,2) [2025-04-09 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870000', 'tblTempUsageDetail_20' ) start [2025-04-09 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870000', 'tblTempUsageDetail_20' ) end [2025-04-09 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:58:29] Production.INFO: ==8334== Releasing lock... [2025-04-09 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:58:29] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 10:59:05 [end_date_ymd] => 2025-04-09 13:59:05 [RateCDR] => 1 ) [2025-04-09 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 10:59:05' and `end` < '2025-04-09 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 13:59:19] Production.INFO: count ==6905 [2025-04-09 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-09 10:59:05 - End Time 2025-04-09 13:59:05 [2025-04-09 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870005', 'tblTempUsageDetail_20' ) start [2025-04-09 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870005', 'tblTempUsageDetail_20' ) end [2025-04-09 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870005', 'tblTempVendorCDR_20' ) start [2025-04-09 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870005', 'tblTempVendorCDR_20' ) end [2025-04-09 13:59:22] Production.INFO: ProcessCDR(1,14870005,1,1,2) [2025-04-09 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870005', 'tblTempUsageDetail_20' ) start [2025-04-09 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870005', 'tblTempUsageDetail_20' ) end [2025-04-09 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 13:59:27] Production.INFO: ==8407== Releasing lock... [2025-04-09 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 13:59:27] Production.INFO: 79.75 MB #Memory Used# [2025-04-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:00:06 [end_date_ymd] => 2025-04-09 14:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:00:06' and `end` < '2025-04-09 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-09 14:00:20] Production.INFO: count ==6905 [2025-04-09 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:00:06 - End Time 2025-04-09 14:00:06 [2025-04-09 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870011', 'tblTempUsageDetail_20' ) start [2025-04-09 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870011', 'tblTempUsageDetail_20' ) end [2025-04-09 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870011', 'tblTempVendorCDR_20' ) start [2025-04-09 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870011', 'tblTempVendorCDR_20' ) end [2025-04-09 14:00:24] Production.INFO: ProcessCDR(1,14870011,1,1,2) [2025-04-09 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870011', 'tblTempUsageDetail_20' ) start [2025-04-09 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870011', 'tblTempUsageDetail_20' ) end [2025-04-09 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:00:29] Production.INFO: ==8480== Releasing lock... [2025-04-09 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:00:29] Production.INFO: 79.75 MB #Memory Used# [2025-04-09 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:01:05 [end_date_ymd] => 2025-04-09 14:01:05 [RateCDR] => 1 ) [2025-04-09 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:01:05' and `end` < '2025-04-09 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:01:19] Production.INFO: count ==6889 [2025-04-09 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:01:05 - End Time 2025-04-09 14:01:05 [2025-04-09 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870016', 'tblTempUsageDetail_20' ) start [2025-04-09 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870016', 'tblTempUsageDetail_20' ) end [2025-04-09 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870016', 'tblTempVendorCDR_20' ) start [2025-04-09 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870016', 'tblTempVendorCDR_20' ) end [2025-04-09 14:01:22] Production.INFO: ProcessCDR(1,14870016,1,1,2) [2025-04-09 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870016', 'tblTempUsageDetail_20' ) start [2025-04-09 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870016', 'tblTempUsageDetail_20' ) end [2025-04-09 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:01:28] Production.INFO: ==8565== Releasing lock... [2025-04-09 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:01:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:02:05 [end_date_ymd] => 2025-04-09 14:02:05 [RateCDR] => 1 ) [2025-04-09 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:02:05' and `end` < '2025-04-09 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-09 14:02:19] Production.INFO: count ==6874 [2025-04-09 14:02:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:02:05 - End Time 2025-04-09 14:02:05 [2025-04-09 14:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870021', 'tblTempUsageDetail_20' ) start [2025-04-09 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870021', 'tblTempUsageDetail_20' ) end [2025-04-09 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870021', 'tblTempVendorCDR_20' ) start [2025-04-09 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870021', 'tblTempVendorCDR_20' ) end [2025-04-09 14:02:23] Production.INFO: ProcessCDR(1,14870021,1,1,2) [2025-04-09 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870021', 'tblTempUsageDetail_20' ) start [2025-04-09 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870021', 'tblTempUsageDetail_20' ) end [2025-04-09 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:02:28] Production.INFO: ==8637== Releasing lock... [2025-04-09 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:02:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:03:05 [end_date_ymd] => 2025-04-09 14:03:05 [RateCDR] => 1 ) [2025-04-09 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:03:05' and `end` < '2025-04-09 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:03:18] Production.INFO: count ==6868 [2025-04-09 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:03:05 - End Time 2025-04-09 14:03:05 [2025-04-09 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870026', 'tblTempUsageDetail_20' ) start [2025-04-09 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870026', 'tblTempUsageDetail_20' ) end [2025-04-09 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870026', 'tblTempVendorCDR_20' ) start [2025-04-09 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870026', 'tblTempVendorCDR_20' ) end [2025-04-09 14:03:22] Production.INFO: ProcessCDR(1,14870026,1,1,2) [2025-04-09 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870026', 'tblTempUsageDetail_20' ) start [2025-04-09 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870026', 'tblTempUsageDetail_20' ) end [2025-04-09 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:03:27] Production.INFO: ==8709== Releasing lock... [2025-04-09 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:03:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:04:06 [end_date_ymd] => 2025-04-09 14:04:06 [RateCDR] => 1 ) [2025-04-09 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:04:06' and `end` < '2025-04-09 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:04:20] Production.INFO: count ==6860 [2025-04-09 14:04:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:04:06 - End Time 2025-04-09 14:04:06 [2025-04-09 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870031', 'tblTempUsageDetail_20' ) start [2025-04-09 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870031', 'tblTempUsageDetail_20' ) end [2025-04-09 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870031', 'tblTempVendorCDR_20' ) start [2025-04-09 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870031', 'tblTempVendorCDR_20' ) end [2025-04-09 14:04:23] Production.INFO: ProcessCDR(1,14870031,1,1,2) [2025-04-09 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870031', 'tblTempUsageDetail_20' ) start [2025-04-09 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870031', 'tblTempUsageDetail_20' ) end [2025-04-09 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:04:28] Production.INFO: ==8781== Releasing lock... [2025-04-09 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:04:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:05:05 [end_date_ymd] => 2025-04-09 14:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:05:05' and `end` < '2025-04-09 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-09 14:05:19] Production.INFO: count ==6864 [2025-04-09 14:05:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:05:05 - End Time 2025-04-09 14:05:05 [2025-04-09 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870036', 'tblTempUsageDetail_20' ) start [2025-04-09 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870036', 'tblTempUsageDetail_20' ) end [2025-04-09 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870036', 'tblTempVendorCDR_20' ) start [2025-04-09 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870036', 'tblTempVendorCDR_20' ) end [2025-04-09 14:05:22] Production.INFO: ProcessCDR(1,14870036,1,1,2) [2025-04-09 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870036', 'tblTempUsageDetail_20' ) start [2025-04-09 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870036', 'tblTempUsageDetail_20' ) end [2025-04-09 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:05:27] Production.INFO: ==8854== Releasing lock... [2025-04-09 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:05:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:06:05 [end_date_ymd] => 2025-04-09 14:06:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:06:05' and `end` < '2025-04-09 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-09 14:06:19] Production.INFO: count ==6871 [2025-04-09 14:06:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:06:05 - End Time 2025-04-09 14:06:05 [2025-04-09 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870041', 'tblTempUsageDetail_20' ) start [2025-04-09 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870041', 'tblTempUsageDetail_20' ) end [2025-04-09 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870041', 'tblTempVendorCDR_20' ) start [2025-04-09 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870041', 'tblTempVendorCDR_20' ) end [2025-04-09 14:06:23] Production.INFO: ProcessCDR(1,14870041,1,1,2) [2025-04-09 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870041', 'tblTempUsageDetail_20' ) start [2025-04-09 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870041', 'tblTempUsageDetail_20' ) end [2025-04-09 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:06:28] Production.INFO: ==8926== Releasing lock... [2025-04-09 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:06:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:07:05 [end_date_ymd] => 2025-04-09 14:07:05 [RateCDR] => 1 ) [2025-04-09 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:07:05' and `end` < '2025-04-09 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:07:19] Production.INFO: count ==6870 [2025-04-09 14:07:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:07:05 - End Time 2025-04-09 14:07:05 [2025-04-09 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870046', 'tblTempUsageDetail_20' ) start [2025-04-09 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870046', 'tblTempUsageDetail_20' ) end [2025-04-09 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870046', 'tblTempVendorCDR_20' ) start [2025-04-09 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870046', 'tblTempVendorCDR_20' ) end [2025-04-09 14:07:22] Production.INFO: ProcessCDR(1,14870046,1,1,2) [2025-04-09 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870046', 'tblTempUsageDetail_20' ) start [2025-04-09 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870046', 'tblTempUsageDetail_20' ) end [2025-04-09 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:07:27] Production.INFO: ==8999== Releasing lock... [2025-04-09 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:07:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:08:06 [end_date_ymd] => 2025-04-09 14:08:06 [RateCDR] => 1 ) [2025-04-09 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:08:06' and `end` < '2025-04-09 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:08:20] Production.INFO: count ==6873 [2025-04-09 14:08:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:08:06 - End Time 2025-04-09 14:08:06 [2025-04-09 14:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870051', 'tblTempUsageDetail_20' ) start [2025-04-09 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870051', 'tblTempUsageDetail_20' ) end [2025-04-09 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870051', 'tblTempVendorCDR_20' ) start [2025-04-09 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870051', 'tblTempVendorCDR_20' ) end [2025-04-09 14:08:23] Production.INFO: ProcessCDR(1,14870051,1,1,2) [2025-04-09 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870051', 'tblTempUsageDetail_20' ) start [2025-04-09 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870051', 'tblTempUsageDetail_20' ) end [2025-04-09 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:08:28] Production.INFO: ==9119== Releasing lock... [2025-04-09 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:08:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:09:05 [end_date_ymd] => 2025-04-09 14:09:05 [RateCDR] => 1 ) [2025-04-09 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:09:05' and `end` < '2025-04-09 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:09:19] Production.INFO: count ==6879 [2025-04-09 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:09:05 - End Time 2025-04-09 14:09:05 [2025-04-09 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870056', 'tblTempUsageDetail_20' ) start [2025-04-09 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870056', 'tblTempUsageDetail_20' ) end [2025-04-09 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870056', 'tblTempVendorCDR_20' ) start [2025-04-09 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870056', 'tblTempVendorCDR_20' ) end [2025-04-09 14:09:22] Production.INFO: ProcessCDR(1,14870056,1,1,2) [2025-04-09 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870056', 'tblTempUsageDetail_20' ) start [2025-04-09 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870056', 'tblTempUsageDetail_20' ) end [2025-04-09 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:09:27] Production.INFO: ==9192== Releasing lock... [2025-04-09 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:09:27] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:10:06 [end_date_ymd] => 2025-04-09 14:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:10:06' and `end` < '2025-04-09 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-09 14:10:20] Production.INFO: count ==6902 [2025-04-09 14:10:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:10:06 - End Time 2025-04-09 14:10:06 [2025-04-09 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870062', 'tblTempUsageDetail_20' ) start [2025-04-09 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870062', 'tblTempUsageDetail_20' ) end [2025-04-09 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870062', 'tblTempVendorCDR_20' ) start [2025-04-09 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870062', 'tblTempVendorCDR_20' ) end [2025-04-09 14:10:23] Production.INFO: ProcessCDR(1,14870062,1,1,2) [2025-04-09 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870062', 'tblTempUsageDetail_20' ) start [2025-04-09 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870062', 'tblTempUsageDetail_20' ) end [2025-04-09 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:10:29] Production.INFO: ==9274== Releasing lock... [2025-04-09 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:10:29] Production.INFO: 79.5 MB #Memory Used# [2025-04-09 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:11:05 [end_date_ymd] => 2025-04-09 14:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:11:05' and `end` < '2025-04-09 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-09 14:11:19] Production.INFO: count ==6869 [2025-04-09 14:11:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:11:05 - End Time 2025-04-09 14:11:05 [2025-04-09 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870067', 'tblTempUsageDetail_20' ) start [2025-04-09 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870067', 'tblTempUsageDetail_20' ) end [2025-04-09 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870067', 'tblTempVendorCDR_20' ) start [2025-04-09 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870067', 'tblTempVendorCDR_20' ) end [2025-04-09 14:11:22] Production.INFO: ProcessCDR(1,14870067,1,1,2) [2025-04-09 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870067', 'tblTempUsageDetail_20' ) start [2025-04-09 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870067', 'tblTempUsageDetail_20' ) end [2025-04-09 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:11:27] Production.INFO: ==9357== Releasing lock... [2025-04-09 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:11:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:12:05 [end_date_ymd] => 2025-04-09 14:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:12:05' and `end` < '2025-04-09 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-09 14:12:19] Production.INFO: count ==6860 [2025-04-09 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:12:05 - End Time 2025-04-09 14:12:05 [2025-04-09 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870072', 'tblTempUsageDetail_20' ) start [2025-04-09 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870072', 'tblTempUsageDetail_20' ) end [2025-04-09 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870072', 'tblTempVendorCDR_20' ) start [2025-04-09 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870072', 'tblTempVendorCDR_20' ) end [2025-04-09 14:12:22] Production.INFO: ProcessCDR(1,14870072,1,1,2) [2025-04-09 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870072', 'tblTempUsageDetail_20' ) start [2025-04-09 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870072', 'tblTempUsageDetail_20' ) end [2025-04-09 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:12:27] Production.INFO: ==9433== Releasing lock... [2025-04-09 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:12:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:13:05 [end_date_ymd] => 2025-04-09 14:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:13:05' and `end` < '2025-04-09 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-09 14:13:20] Production.INFO: count ==6845 [2025-04-09 14:13:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:13:05 - End Time 2025-04-09 14:13:05 [2025-04-09 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870077', 'tblTempUsageDetail_20' ) start [2025-04-09 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870077', 'tblTempUsageDetail_20' ) end [2025-04-09 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870077', 'tblTempVendorCDR_20' ) start [2025-04-09 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870077', 'tblTempVendorCDR_20' ) end [2025-04-09 14:13:23] Production.INFO: ProcessCDR(1,14870077,1,1,2) [2025-04-09 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870077', 'tblTempUsageDetail_20' ) start [2025-04-09 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870077', 'tblTempUsageDetail_20' ) end [2025-04-09 14:13:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:13:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:13:29] Production.INFO: ==9510== Releasing lock... [2025-04-09 14:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:13:29] Production.INFO: 79.25 MB #Memory Used# [2025-04-09 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:14:05 [end_date_ymd] => 2025-04-09 14:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:14:05' and `end` < '2025-04-09 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-09 14:14:19] Production.INFO: count ==6824 [2025-04-09 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:14:05 - End Time 2025-04-09 14:14:05 [2025-04-09 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870082', 'tblTempUsageDetail_20' ) start [2025-04-09 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870082', 'tblTempUsageDetail_20' ) end [2025-04-09 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870082', 'tblTempVendorCDR_20' ) start [2025-04-09 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870082', 'tblTempVendorCDR_20' ) end [2025-04-09 14:14:23] Production.INFO: ProcessCDR(1,14870082,1,1,2) [2025-04-09 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870082', 'tblTempUsageDetail_20' ) start [2025-04-09 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870082', 'tblTempUsageDetail_20' ) end [2025-04-09 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:14:28] Production.INFO: ==9586== Releasing lock... [2025-04-09 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:14:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:15:06 [end_date_ymd] => 2025-04-09 14:15:06 [RateCDR] => 1 ) [2025-04-09 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:15:06' and `end` < '2025-04-09 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:15:19] Production.INFO: count ==6818 [2025-04-09 14:15:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:15:06 - End Time 2025-04-09 14:15:06 [2025-04-09 14:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870087', 'tblTempUsageDetail_20' ) start [2025-04-09 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870087', 'tblTempUsageDetail_20' ) end [2025-04-09 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870087', 'tblTempVendorCDR_20' ) start [2025-04-09 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870087', 'tblTempVendorCDR_20' ) end [2025-04-09 14:15:23] Production.INFO: ProcessCDR(1,14870087,1,1,2) [2025-04-09 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870087', 'tblTempUsageDetail_20' ) start [2025-04-09 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870087', 'tblTempUsageDetail_20' ) end [2025-04-09 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:15:28] Production.INFO: ==9667== Releasing lock... [2025-04-09 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:15:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:16:04 [end_date_ymd] => 2025-04-09 14:16:04 [RateCDR] => 1 ) [2025-04-09 14: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 11:16:04' and `end` < '2025-04-09 14: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-09 14:16:18] Production.INFO: count ==6812 [2025-04-09 14:16:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:16:04 - End Time 2025-04-09 14:16:04 [2025-04-09 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870092', 'tblTempUsageDetail_20' ) start [2025-04-09 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870092', 'tblTempUsageDetail_20' ) end [2025-04-09 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870092', 'tblTempVendorCDR_20' ) start [2025-04-09 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870092', 'tblTempVendorCDR_20' ) end [2025-04-09 14:16:22] Production.INFO: ProcessCDR(1,14870092,1,1,2) [2025-04-09 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870092', 'tblTempUsageDetail_20' ) start [2025-04-09 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870092', 'tblTempUsageDetail_20' ) end [2025-04-09 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:16:27] Production.INFO: ==9748== Releasing lock... [2025-04-09 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:16:27] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:17:06 [end_date_ymd] => 2025-04-09 14:17:06 [RateCDR] => 1 ) [2025-04-09 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:17:06' and `end` < '2025-04-09 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:17:20] Production.INFO: count ==6817 [2025-04-09 14:17:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:17:06 - End Time 2025-04-09 14:17:06 [2025-04-09 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870097', 'tblTempUsageDetail_20' ) start [2025-04-09 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870097', 'tblTempUsageDetail_20' ) end [2025-04-09 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870097', 'tblTempVendorCDR_20' ) start [2025-04-09 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870097', 'tblTempVendorCDR_20' ) end [2025-04-09 14:17:23] Production.INFO: ProcessCDR(1,14870097,1,1,2) [2025-04-09 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870097', 'tblTempUsageDetail_20' ) start [2025-04-09 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870097', 'tblTempUsageDetail_20' ) end [2025-04-09 14:17:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:17:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:17:29] Production.INFO: ==9824== Releasing lock... [2025-04-09 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:17:29] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:18:05 [end_date_ymd] => 2025-04-09 14:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:18:05' and `end` < '2025-04-09 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-09 14:18:20] Production.INFO: count ==6830 [2025-04-09 14:18:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:18:05 - End Time 2025-04-09 14:18:05 [2025-04-09 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870102', 'tblTempUsageDetail_20' ) start [2025-04-09 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870102', 'tblTempUsageDetail_20' ) end [2025-04-09 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870102', 'tblTempVendorCDR_20' ) start [2025-04-09 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870102', 'tblTempVendorCDR_20' ) end [2025-04-09 14:18:23] Production.INFO: ProcessCDR(1,14870102,1,1,2) [2025-04-09 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870102', 'tblTempUsageDetail_20' ) start [2025-04-09 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870102', 'tblTempUsageDetail_20' ) end [2025-04-09 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:18:28] Production.INFO: ==9900== Releasing lock... [2025-04-09 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:18:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:19:06 [end_date_ymd] => 2025-04-09 14:19:06 [RateCDR] => 1 ) [2025-04-09 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:19:06' and `end` < '2025-04-09 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:19:20] Production.INFO: count ==6811 [2025-04-09 14:19:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:19:06 - End Time 2025-04-09 14:19:06 [2025-04-09 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870107', 'tblTempUsageDetail_20' ) start [2025-04-09 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870107', 'tblTempUsageDetail_20' ) end [2025-04-09 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870107', 'tblTempVendorCDR_20' ) start [2025-04-09 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870107', 'tblTempVendorCDR_20' ) end [2025-04-09 14:19:23] Production.INFO: ProcessCDR(1,14870107,1,1,2) [2025-04-09 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870107', 'tblTempUsageDetail_20' ) start [2025-04-09 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870107', 'tblTempUsageDetail_20' ) end [2025-04-09 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:19:28] Production.INFO: ==9977== Releasing lock... [2025-04-09 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:19:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:20:06 [end_date_ymd] => 2025-04-09 14:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:20:06' and `end` < '2025-04-09 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-09 14:20:20] Production.INFO: count ==6810 [2025-04-09 14:20:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:20:06 - End Time 2025-04-09 14:20:06 [2025-04-09 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870113', 'tblTempUsageDetail_20' ) start [2025-04-09 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870113', 'tblTempUsageDetail_20' ) end [2025-04-09 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870113', 'tblTempVendorCDR_20' ) start [2025-04-09 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870113', 'tblTempVendorCDR_20' ) end [2025-04-09 14:20:23] Production.INFO: ProcessCDR(1,14870113,1,1,2) [2025-04-09 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870113', 'tblTempUsageDetail_20' ) start [2025-04-09 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870113', 'tblTempUsageDetail_20' ) end [2025-04-09 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:20:28] Production.INFO: ==10051== Releasing lock... [2025-04-09 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:20:28] Production.INFO: 79 MB #Memory Used# [2025-04-09 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:21:06 [end_date_ymd] => 2025-04-09 14:21:06 [RateCDR] => 1 ) [2025-04-09 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:21:06' and `end` < '2025-04-09 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:21:20] Production.INFO: count ==6789 [2025-04-09 14:21:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:21:06 - End Time 2025-04-09 14:21:06 [2025-04-09 14:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870118', 'tblTempUsageDetail_20' ) start [2025-04-09 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870118', 'tblTempUsageDetail_20' ) end [2025-04-09 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870118', 'tblTempVendorCDR_20' ) start [2025-04-09 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870118', 'tblTempVendorCDR_20' ) end [2025-04-09 14:21:23] Production.INFO: ProcessCDR(1,14870118,1,1,2) [2025-04-09 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870118', 'tblTempUsageDetail_20' ) start [2025-04-09 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870118', 'tblTempUsageDetail_20' ) end [2025-04-09 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:21:29] Production.INFO: ==10131== Releasing lock... [2025-04-09 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:21:29] Production.INFO: 78.75 MB #Memory Used# [2025-04-09 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:22:05 [end_date_ymd] => 2025-04-09 14:22:05 [RateCDR] => 1 ) [2025-04-09 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:22:05' and `end` < '2025-04-09 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:22:19] Production.INFO: count ==6782 [2025-04-09 14:22:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:22:05 - End Time 2025-04-09 14:22:05 [2025-04-09 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870123', 'tblTempUsageDetail_20' ) start [2025-04-09 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870123', 'tblTempUsageDetail_20' ) end [2025-04-09 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870123', 'tblTempVendorCDR_20' ) start [2025-04-09 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870123', 'tblTempVendorCDR_20' ) end [2025-04-09 14:22:22] Production.INFO: ProcessCDR(1,14870123,1,1,2) [2025-04-09 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870123', 'tblTempUsageDetail_20' ) start [2025-04-09 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870123', 'tblTempUsageDetail_20' ) end [2025-04-09 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:22:27] Production.INFO: ==10213== Releasing lock... [2025-04-09 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:22:27] Production.INFO: 78.75 MB #Memory Used# [2025-04-09 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:23:05 [end_date_ymd] => 2025-04-09 14:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:23:05' and `end` < '2025-04-09 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-09 14:23:19] Production.INFO: count ==6775 [2025-04-09 14:23:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:23:05 - End Time 2025-04-09 14:23:05 [2025-04-09 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870128', 'tblTempUsageDetail_20' ) start [2025-04-09 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870128', 'tblTempUsageDetail_20' ) end [2025-04-09 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870128', 'tblTempVendorCDR_20' ) start [2025-04-09 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870128', 'tblTempVendorCDR_20' ) end [2025-04-09 14:23:23] Production.INFO: ProcessCDR(1,14870128,1,1,2) [2025-04-09 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870128', 'tblTempUsageDetail_20' ) start [2025-04-09 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870128', 'tblTempUsageDetail_20' ) end [2025-04-09 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:23:28] Production.INFO: ==10331== Releasing lock... [2025-04-09 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:23:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-09 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:24:05 [end_date_ymd] => 2025-04-09 14:24:05 [RateCDR] => 1 ) [2025-04-09 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:24:05' and `end` < '2025-04-09 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:24:19] Production.INFO: count ==6774 [2025-04-09 14:24:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:24:05 - End Time 2025-04-09 14:24:05 [2025-04-09 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870133', 'tblTempUsageDetail_20' ) start [2025-04-09 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870133', 'tblTempUsageDetail_20' ) end [2025-04-09 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870133', 'tblTempVendorCDR_20' ) start [2025-04-09 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870133', 'tblTempVendorCDR_20' ) end [2025-04-09 14:24:23] Production.INFO: ProcessCDR(1,14870133,1,1,2) [2025-04-09 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870133', 'tblTempUsageDetail_20' ) start [2025-04-09 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870133', 'tblTempUsageDetail_20' ) end [2025-04-09 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:24:28] Production.INFO: ==10407== Releasing lock... [2025-04-09 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:24:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-09 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:25:06 [end_date_ymd] => 2025-04-09 14:25:06 [RateCDR] => 1 ) [2025-04-09 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:25:06' and `end` < '2025-04-09 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:25:20] Production.INFO: count ==6766 [2025-04-09 14:25:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:25:06 - End Time 2025-04-09 14:25:06 [2025-04-09 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870138', 'tblTempUsageDetail_20' ) start [2025-04-09 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870138', 'tblTempUsageDetail_20' ) end [2025-04-09 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870138', 'tblTempVendorCDR_20' ) start [2025-04-09 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870138', 'tblTempVendorCDR_20' ) end [2025-04-09 14:25:23] Production.INFO: ProcessCDR(1,14870138,1,1,2) [2025-04-09 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870138', 'tblTempUsageDetail_20' ) start [2025-04-09 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870138', 'tblTempUsageDetail_20' ) end [2025-04-09 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:25:28] Production.INFO: ==10491== Releasing lock... [2025-04-09 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:25:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-09 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:26:05 [end_date_ymd] => 2025-04-09 14:26:05 [RateCDR] => 1 ) [2025-04-09 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:26:05' and `end` < '2025-04-09 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:26:19] Production.INFO: count ==6771 [2025-04-09 14:26:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:26:05 - End Time 2025-04-09 14:26:05 [2025-04-09 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870143', 'tblTempUsageDetail_20' ) start [2025-04-09 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870143', 'tblTempUsageDetail_20' ) end [2025-04-09 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870143', 'tblTempVendorCDR_20' ) start [2025-04-09 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870143', 'tblTempVendorCDR_20' ) end [2025-04-09 14:26:22] Production.INFO: ProcessCDR(1,14870143,1,1,2) [2025-04-09 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870143', 'tblTempUsageDetail_20' ) start [2025-04-09 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870143', 'tblTempUsageDetail_20' ) end [2025-04-09 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:26:27] Production.INFO: ==10570== Releasing lock... [2025-04-09 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:26:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-09 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:27:05 [end_date_ymd] => 2025-04-09 14:27:05 [RateCDR] => 1 ) [2025-04-09 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:27:05' and `end` < '2025-04-09 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:27:19] Production.INFO: count ==6749 [2025-04-09 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:27:05 - End Time 2025-04-09 14:27:05 [2025-04-09 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870148', 'tblTempUsageDetail_20' ) start [2025-04-09 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870148', 'tblTempUsageDetail_20' ) end [2025-04-09 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870148', 'tblTempVendorCDR_20' ) start [2025-04-09 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870148', 'tblTempVendorCDR_20' ) end [2025-04-09 14:27:22] Production.INFO: ProcessCDR(1,14870148,1,1,2) [2025-04-09 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870148', 'tblTempUsageDetail_20' ) start [2025-04-09 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870148', 'tblTempUsageDetail_20' ) end [2025-04-09 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:27:28] Production.INFO: ==10648== Releasing lock... [2025-04-09 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:27:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-09 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:28:05 [end_date_ymd] => 2025-04-09 14:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:28:05' and `end` < '2025-04-09 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-09 14:28:19] Production.INFO: count ==6742 [2025-04-09 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:28:05 - End Time 2025-04-09 14:28:05 [2025-04-09 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870153', 'tblTempUsageDetail_20' ) start [2025-04-09 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870153', 'tblTempUsageDetail_20' ) end [2025-04-09 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870153', 'tblTempVendorCDR_20' ) start [2025-04-09 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870153', 'tblTempVendorCDR_20' ) end [2025-04-09 14:28:23] Production.INFO: ProcessCDR(1,14870153,1,1,2) [2025-04-09 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870153', 'tblTempUsageDetail_20' ) start [2025-04-09 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870153', 'tblTempUsageDetail_20' ) end [2025-04-09 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:28:28] Production.INFO: ==10727== Releasing lock... [2025-04-09 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:28:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-09 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:29:05 [end_date_ymd] => 2025-04-09 14:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:29:05' and `end` < '2025-04-09 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-09 14:29:19] Production.INFO: count ==6717 [2025-04-09 14:29:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:29:05 - End Time 2025-04-09 14:29:05 [2025-04-09 14:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870158', 'tblTempUsageDetail_20' ) start [2025-04-09 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870158', 'tblTempUsageDetail_20' ) end [2025-04-09 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870158', 'tblTempVendorCDR_20' ) start [2025-04-09 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870158', 'tblTempVendorCDR_20' ) end [2025-04-09 14:29:23] Production.INFO: ProcessCDR(1,14870158,1,1,2) [2025-04-09 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870158', 'tblTempUsageDetail_20' ) start [2025-04-09 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870158', 'tblTempUsageDetail_20' ) end [2025-04-09 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:29:28] Production.INFO: ==10800== Releasing lock... [2025-04-09 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:29:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-09 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:30:05 [end_date_ymd] => 2025-04-09 14:30:05 [RateCDR] => 1 ) [2025-04-09 14: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-09 11:30:05' and `end` < '2025-04-09 14: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-09 14:30:19] Production.INFO: count ==6653 [2025-04-09 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:30:05 - End Time 2025-04-09 14:30:05 [2025-04-09 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870164', 'tblTempUsageDetail_20' ) start [2025-04-09 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870164', 'tblTempUsageDetail_20' ) end [2025-04-09 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870164', 'tblTempVendorCDR_20' ) start [2025-04-09 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870164', 'tblTempVendorCDR_20' ) end [2025-04-09 14:30:23] Production.INFO: ProcessCDR(1,14870164,1,1,2) [2025-04-09 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870164', 'tblTempUsageDetail_20' ) start [2025-04-09 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870164', 'tblTempUsageDetail_20' ) end [2025-04-09 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:30:28] Production.INFO: ==10881== Releasing lock... [2025-04-09 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:30:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-09 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:31:05 [end_date_ymd] => 2025-04-09 14:31:05 [RateCDR] => 1 ) [2025-04-09 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:31:05' and `end` < '2025-04-09 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:31:20] Production.INFO: count ==6587 [2025-04-09 14:31:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:31:05 - End Time 2025-04-09 14:31:05 [2025-04-09 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870169', 'tblTempUsageDetail_20' ) start [2025-04-09 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870169', 'tblTempUsageDetail_20' ) end [2025-04-09 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870169', 'tblTempVendorCDR_20' ) start [2025-04-09 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870169', 'tblTempVendorCDR_20' ) end [2025-04-09 14:31:23] Production.INFO: ProcessCDR(1,14870169,1,1,2) [2025-04-09 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870169', 'tblTempUsageDetail_20' ) start [2025-04-09 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870169', 'tblTempUsageDetail_20' ) end [2025-04-09 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:31:28] Production.INFO: ==10959== Releasing lock... [2025-04-09 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:31:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-09 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:32:05 [end_date_ymd] => 2025-04-09 14:32:05 [RateCDR] => 1 ) [2025-04-09 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:32:05' and `end` < '2025-04-09 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:32:19] Production.INFO: count ==6553 [2025-04-09 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:32:05 - End Time 2025-04-09 14:32:05 [2025-04-09 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870174', 'tblTempUsageDetail_20' ) start [2025-04-09 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870174', 'tblTempUsageDetail_20' ) end [2025-04-09 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870174', 'tblTempVendorCDR_20' ) start [2025-04-09 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870174', 'tblTempVendorCDR_20' ) end [2025-04-09 14:32:22] Production.INFO: ProcessCDR(1,14870174,1,1,2) [2025-04-09 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870174', 'tblTempUsageDetail_20' ) start [2025-04-09 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870174', 'tblTempUsageDetail_20' ) end [2025-04-09 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:32:27] Production.INFO: ==11037== Releasing lock... [2025-04-09 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:32:27] Production.INFO: 77 MB #Memory Used# [2025-04-09 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:33:05 [end_date_ymd] => 2025-04-09 14:33:05 [RateCDR] => 1 ) [2025-04-09 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:33:05' and `end` < '2025-04-09 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:33:19] Production.INFO: count ==6492 [2025-04-09 14:33:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:33:05 - End Time 2025-04-09 14:33:05 [2025-04-09 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870179', 'tblTempUsageDetail_20' ) start [2025-04-09 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870179', 'tblTempUsageDetail_20' ) end [2025-04-09 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870179', 'tblTempVendorCDR_20' ) start [2025-04-09 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870179', 'tblTempVendorCDR_20' ) end [2025-04-09 14:33:22] Production.INFO: ProcessCDR(1,14870179,1,1,2) [2025-04-09 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870179', 'tblTempUsageDetail_20' ) start [2025-04-09 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870179', 'tblTempUsageDetail_20' ) end [2025-04-09 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:33:28] Production.INFO: ==11113== Releasing lock... [2025-04-09 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:33:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-09 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:34:06 [end_date_ymd] => 2025-04-09 14:34:06 [RateCDR] => 1 ) [2025-04-09 14: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 11:34:06' and `end` < '2025-04-09 14: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-09 14:34:20] Production.INFO: count ==6452 [2025-04-09 14:34:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:34:06 - End Time 2025-04-09 14:34:06 [2025-04-09 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870184', 'tblTempUsageDetail_20' ) start [2025-04-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870184', 'tblTempUsageDetail_20' ) end [2025-04-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870184', 'tblTempVendorCDR_20' ) start [2025-04-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870184', 'tblTempVendorCDR_20' ) end [2025-04-09 14:34:23] Production.INFO: ProcessCDR(1,14870184,1,1,2) [2025-04-09 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870184', 'tblTempUsageDetail_20' ) start [2025-04-09 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870184', 'tblTempUsageDetail_20' ) end [2025-04-09 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:34:28] Production.INFO: ==11188== Releasing lock... [2025-04-09 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:34:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-09 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:35:05 [end_date_ymd] => 2025-04-09 14:35:05 [RateCDR] => 1 ) [2025-04-09 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:35:05' and `end` < '2025-04-09 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:35:19] Production.INFO: count ==6390 [2025-04-09 14:35:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:35:05 - End Time 2025-04-09 14:35:05 [2025-04-09 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870189', 'tblTempUsageDetail_20' ) start [2025-04-09 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870189', 'tblTempUsageDetail_20' ) end [2025-04-09 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870189', 'tblTempVendorCDR_20' ) start [2025-04-09 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870189', 'tblTempVendorCDR_20' ) end [2025-04-09 14:35:22] Production.INFO: ProcessCDR(1,14870189,1,1,2) [2025-04-09 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870189', 'tblTempUsageDetail_20' ) start [2025-04-09 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870189', 'tblTempUsageDetail_20' ) end [2025-04-09 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:35:28] Production.INFO: ==11261== Releasing lock... [2025-04-09 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:35:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-09 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:36:06 [end_date_ymd] => 2025-04-09 14:36:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:36:06' and `end` < '2025-04-09 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-09 14:36:20] Production.INFO: count ==6315 [2025-04-09 14:36:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:36:06 - End Time 2025-04-09 14:36:06 [2025-04-09 14:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870194', 'tblTempUsageDetail_20' ) start [2025-04-09 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870194', 'tblTempUsageDetail_20' ) end [2025-04-09 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870194', 'tblTempVendorCDR_20' ) start [2025-04-09 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870194', 'tblTempVendorCDR_20' ) end [2025-04-09 14:36:23] Production.INFO: ProcessCDR(1,14870194,1,1,2) [2025-04-09 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870194', 'tblTempUsageDetail_20' ) start [2025-04-09 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870194', 'tblTempUsageDetail_20' ) end [2025-04-09 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:36:28] Production.INFO: ==11343== Releasing lock... [2025-04-09 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:36:28] Production.INFO: 75.25 MB #Memory Used# [2025-04-09 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:37:05 [end_date_ymd] => 2025-04-09 14:37:05 [RateCDR] => 1 ) [2025-04-09 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:37:05' and `end` < '2025-04-09 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:37:19] Production.INFO: count ==6247 [2025-04-09 14:37:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:37:05 - End Time 2025-04-09 14:37:05 [2025-04-09 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870199', 'tblTempUsageDetail_20' ) start [2025-04-09 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870199', 'tblTempUsageDetail_20' ) end [2025-04-09 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870199', 'tblTempVendorCDR_20' ) start [2025-04-09 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870199', 'tblTempVendorCDR_20' ) end [2025-04-09 14:37:23] Production.INFO: ProcessCDR(1,14870199,1,1,2) [2025-04-09 14:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870199', 'tblTempUsageDetail_20' ) start [2025-04-09 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870199', 'tblTempUsageDetail_20' ) end [2025-04-09 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:37:28] Production.INFO: ==11421== Releasing lock... [2025-04-09 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:37:28] Production.INFO: 74.75 MB #Memory Used# [2025-04-09 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:38:06 [end_date_ymd] => 2025-04-09 14:38:06 [RateCDR] => 1 ) [2025-04-09 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:38:06' and `end` < '2025-04-09 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:38:20] Production.INFO: count ==6197 [2025-04-09 14:38:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:38:06 - End Time 2025-04-09 14:38:06 [2025-04-09 14:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870204', 'tblTempUsageDetail_20' ) start [2025-04-09 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870204', 'tblTempUsageDetail_20' ) end [2025-04-09 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870204', 'tblTempVendorCDR_20' ) start [2025-04-09 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870204', 'tblTempVendorCDR_20' ) end [2025-04-09 14:38:23] Production.INFO: ProcessCDR(1,14870204,1,1,2) [2025-04-09 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870204', 'tblTempUsageDetail_20' ) start [2025-04-09 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870204', 'tblTempUsageDetail_20' ) end [2025-04-09 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:38:28] Production.INFO: ==11500== Releasing lock... [2025-04-09 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:38:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-09 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:39:05 [end_date_ymd] => 2025-04-09 14:39:05 [RateCDR] => 1 ) [2025-04-09 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:39:05' and `end` < '2025-04-09 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:39:18] Production.INFO: count ==6142 [2025-04-09 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-09 11:39:05 - End Time 2025-04-09 14:39:05 [2025-04-09 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870209', 'tblTempUsageDetail_20' ) start [2025-04-09 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870209', 'tblTempUsageDetail_20' ) end [2025-04-09 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870209', 'tblTempVendorCDR_20' ) start [2025-04-09 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870209', 'tblTempVendorCDR_20' ) end [2025-04-09 14:39:21] Production.INFO: ProcessCDR(1,14870209,1,1,2) [2025-04-09 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870209', 'tblTempUsageDetail_20' ) start [2025-04-09 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870209', 'tblTempUsageDetail_20' ) end [2025-04-09 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:39:26] Production.INFO: ==11617== Releasing lock... [2025-04-09 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:39:26] Production.INFO: 74 MB #Memory Used# [2025-04-09 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:40:07 [end_date_ymd] => 2025-04-09 14:40:07 [RateCDR] => 1 ) [2025-04-09 14: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 11:40:07' and `end` < '2025-04-09 14: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-09 14:40:21] Production.INFO: count ==6098 [2025-04-09 14:40:24] Production.ERROR: pbx CDR StartTime 2025-04-09 11:40:07 - End Time 2025-04-09 14:40:07 [2025-04-09 14:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870215', 'tblTempUsageDetail_20' ) start [2025-04-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870215', 'tblTempUsageDetail_20' ) end [2025-04-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870215', 'tblTempVendorCDR_20' ) start [2025-04-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870215', 'tblTempVendorCDR_20' ) end [2025-04-09 14:40:24] Production.INFO: ProcessCDR(1,14870215,1,1,2) [2025-04-09 14:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870215', 'tblTempUsageDetail_20' ) start [2025-04-09 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870215', 'tblTempUsageDetail_20' ) end [2025-04-09 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:40:29] Production.INFO: ==11699== Releasing lock... [2025-04-09 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:40:29] Production.INFO: 73.5 MB #Memory Used# [2025-04-09 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:41:05 [end_date_ymd] => 2025-04-09 14:41:05 [RateCDR] => 1 ) [2025-04-09 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:41:05' and `end` < '2025-04-09 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:41:19] Production.INFO: count ==6073 [2025-04-09 14:41:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:41:05 - End Time 2025-04-09 14:41:05 [2025-04-09 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870220', 'tblTempUsageDetail_20' ) start [2025-04-09 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870220', 'tblTempUsageDetail_20' ) end [2025-04-09 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870220', 'tblTempVendorCDR_20' ) start [2025-04-09 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870220', 'tblTempVendorCDR_20' ) end [2025-04-09 14:41:22] Production.INFO: ProcessCDR(1,14870220,1,1,2) [2025-04-09 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870220', 'tblTempUsageDetail_20' ) start [2025-04-09 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870220', 'tblTempUsageDetail_20' ) end [2025-04-09 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:41:28] Production.INFO: ==11773== Releasing lock... [2025-04-09 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:41:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-09 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:42:06 [end_date_ymd] => 2025-04-09 14:42:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:42:06' and `end` < '2025-04-09 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-09 14:42:20] Production.INFO: count ==6041 [2025-04-09 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:42:06 - End Time 2025-04-09 14:42:06 [2025-04-09 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870225', 'tblTempUsageDetail_20' ) start [2025-04-09 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870225', 'tblTempUsageDetail_20' ) end [2025-04-09 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870225', 'tblTempVendorCDR_20' ) start [2025-04-09 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870225', 'tblTempVendorCDR_20' ) end [2025-04-09 14:42:23] Production.INFO: ProcessCDR(1,14870225,1,1,2) [2025-04-09 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870225', 'tblTempUsageDetail_20' ) start [2025-04-09 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870225', 'tblTempUsageDetail_20' ) end [2025-04-09 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:42:28] Production.INFO: ==11852== Releasing lock... [2025-04-09 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:42:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-09 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:43:05 [end_date_ymd] => 2025-04-09 14:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:43:05' and `end` < '2025-04-09 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-09 14:43:19] Production.INFO: count ==6045 [2025-04-09 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:43:05 - End Time 2025-04-09 14:43:05 [2025-04-09 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870230', 'tblTempUsageDetail_20' ) start [2025-04-09 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870230', 'tblTempUsageDetail_20' ) end [2025-04-09 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870230', 'tblTempVendorCDR_20' ) start [2025-04-09 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870230', 'tblTempVendorCDR_20' ) end [2025-04-09 14:43:22] Production.INFO: ProcessCDR(1,14870230,1,1,2) [2025-04-09 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870230', 'tblTempUsageDetail_20' ) start [2025-04-09 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870230', 'tblTempUsageDetail_20' ) end [2025-04-09 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:43:28] Production.INFO: ==11934== Releasing lock... [2025-04-09 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:43:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-09 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:44:05 [end_date_ymd] => 2025-04-09 14:44:05 [RateCDR] => 1 ) [2025-04-09 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:44:05' and `end` < '2025-04-09 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:44:19] Production.INFO: count ==6044 [2025-04-09 14:44:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:44:05 - End Time 2025-04-09 14:44:05 [2025-04-09 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870235', 'tblTempUsageDetail_20' ) start [2025-04-09 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870235', 'tblTempUsageDetail_20' ) end [2025-04-09 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870235', 'tblTempVendorCDR_20' ) start [2025-04-09 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870235', 'tblTempVendorCDR_20' ) end [2025-04-09 14:44:22] Production.INFO: ProcessCDR(1,14870235,1,1,2) [2025-04-09 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870235', 'tblTempUsageDetail_20' ) start [2025-04-09 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870235', 'tblTempUsageDetail_20' ) end [2025-04-09 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:44:27] Production.INFO: ==12033== Releasing lock... [2025-04-09 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:44:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-09 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:45:05 [end_date_ymd] => 2025-04-09 14:45:05 [RateCDR] => 1 ) [2025-04-09 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:45:05' and `end` < '2025-04-09 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-09 14:45:19] Production.INFO: count ==6036 [2025-04-09 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-09 11:45:05 - End Time 2025-04-09 14:45:05 [2025-04-09 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870240', 'tblTempUsageDetail_20' ) start [2025-04-09 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870240', 'tblTempUsageDetail_20' ) end [2025-04-09 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870240', 'tblTempVendorCDR_20' ) start [2025-04-09 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870240', 'tblTempVendorCDR_20' ) end [2025-04-09 14:45:21] Production.INFO: ProcessCDR(1,14870240,1,1,2) [2025-04-09 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870240', 'tblTempUsageDetail_20' ) start [2025-04-09 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870240', 'tblTempUsageDetail_20' ) end [2025-04-09 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:45:27] Production.INFO: ==12131== Releasing lock... [2025-04-09 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:45:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-09 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:46:05 [end_date_ymd] => 2025-04-09 14:46:05 [RateCDR] => 1 ) [2025-04-09 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:46:05' and `end` < '2025-04-09 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:46:19] Production.INFO: count ==6028 [2025-04-09 14:46:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:46:05 - End Time 2025-04-09 14:46:05 [2025-04-09 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870245', 'tblTempUsageDetail_20' ) start [2025-04-09 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870245', 'tblTempUsageDetail_20' ) end [2025-04-09 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870245', 'tblTempVendorCDR_20' ) start [2025-04-09 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870245', 'tblTempVendorCDR_20' ) end [2025-04-09 14:46:22] Production.INFO: ProcessCDR(1,14870245,1,1,2) [2025-04-09 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870245', 'tblTempUsageDetail_20' ) start [2025-04-09 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870245', 'tblTempUsageDetail_20' ) end [2025-04-09 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:46:27] Production.INFO: ==12232== Releasing lock... [2025-04-09 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:46:27] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:47:06 [end_date_ymd] => 2025-04-09 14:47:06 [RateCDR] => 1 ) [2025-04-09 14: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 11:47:06' and `end` < '2025-04-09 14: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-09 14:47:20] Production.INFO: count ==6021 [2025-04-09 14:47:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:47:06 - End Time 2025-04-09 14:47:06 [2025-04-09 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870250', 'tblTempUsageDetail_20' ) start [2025-04-09 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870250', 'tblTempUsageDetail_20' ) end [2025-04-09 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870250', 'tblTempVendorCDR_20' ) start [2025-04-09 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870250', 'tblTempVendorCDR_20' ) end [2025-04-09 14:47:23] Production.INFO: ProcessCDR(1,14870250,1,1,2) [2025-04-09 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870250', 'tblTempUsageDetail_20' ) start [2025-04-09 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870250', 'tblTempUsageDetail_20' ) end [2025-04-09 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:47:28] Production.INFO: ==12329== Releasing lock... [2025-04-09 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:47:28] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:48:05 [end_date_ymd] => 2025-04-09 14:48:05 [RateCDR] => 1 ) [2025-04-09 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:48:05' and `end` < '2025-04-09 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:48:19] Production.INFO: count ==6028 [2025-04-09 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:48:05 - End Time 2025-04-09 14:48:05 [2025-04-09 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870255', 'tblTempUsageDetail_20' ) start [2025-04-09 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870255', 'tblTempUsageDetail_20' ) end [2025-04-09 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870255', 'tblTempVendorCDR_20' ) start [2025-04-09 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870255', 'tblTempVendorCDR_20' ) end [2025-04-09 14:48:22] Production.INFO: ProcessCDR(1,14870255,1,1,2) [2025-04-09 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870255', 'tblTempUsageDetail_20' ) start [2025-04-09 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870255', 'tblTempUsageDetail_20' ) end [2025-04-09 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:48:27] Production.INFO: ==12405== Releasing lock... [2025-04-09 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:48:27] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:49:05 [end_date_ymd] => 2025-04-09 14:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:49:05' and `end` < '2025-04-09 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-09 14:49:19] Production.INFO: count ==6022 [2025-04-09 14:49:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:49:05 - End Time 2025-04-09 14:49:05 [2025-04-09 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870260', 'tblTempUsageDetail_20' ) start [2025-04-09 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870260', 'tblTempUsageDetail_20' ) end [2025-04-09 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870260', 'tblTempVendorCDR_20' ) start [2025-04-09 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870260', 'tblTempVendorCDR_20' ) end [2025-04-09 14:49:22] Production.INFO: ProcessCDR(1,14870260,1,1,2) [2025-04-09 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870260', 'tblTempUsageDetail_20' ) start [2025-04-09 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870260', 'tblTempUsageDetail_20' ) end [2025-04-09 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:49:27] Production.INFO: ==12482== Releasing lock... [2025-04-09 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:49:27] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:50:06 [end_date_ymd] => 2025-04-09 14:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:50:06' and `end` < '2025-04-09 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-09 14:50:19] Production.INFO: count ==6028 [2025-04-09 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:50:06 - End Time 2025-04-09 14:50:06 [2025-04-09 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870266', 'tblTempUsageDetail_20' ) start [2025-04-09 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870266', 'tblTempUsageDetail_20' ) end [2025-04-09 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870266', 'tblTempVendorCDR_20' ) start [2025-04-09 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870266', 'tblTempVendorCDR_20' ) end [2025-04-09 14:50:22] Production.INFO: ProcessCDR(1,14870266,1,1,2) [2025-04-09 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870266', 'tblTempUsageDetail_20' ) start [2025-04-09 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870266', 'tblTempUsageDetail_20' ) end [2025-04-09 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:50:28] Production.INFO: ==12559== Releasing lock... [2025-04-09 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:50:28] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:51:06 [end_date_ymd] => 2025-04-09 14:51:06 [RateCDR] => 1 ) [2025-04-09 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-09 11:51:06' and `end` < '2025-04-09 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-09 14:51:20] Production.INFO: count ==6027 [2025-04-09 14:51:23] Production.ERROR: pbx CDR StartTime 2025-04-09 11:51:06 - End Time 2025-04-09 14:51:06 [2025-04-09 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870271', 'tblTempUsageDetail_20' ) start [2025-04-09 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870271', 'tblTempUsageDetail_20' ) end [2025-04-09 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870271', 'tblTempVendorCDR_20' ) start [2025-04-09 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870271', 'tblTempVendorCDR_20' ) end [2025-04-09 14:51:23] Production.INFO: ProcessCDR(1,14870271,1,1,2) [2025-04-09 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870271', 'tblTempUsageDetail_20' ) start [2025-04-09 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870271', 'tblTempUsageDetail_20' ) end [2025-04-09 14:51:29] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:51:29] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:51:29] Production.INFO: ==12643== Releasing lock... [2025-04-09 14:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:51:29] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:52:06 [end_date_ymd] => 2025-04-09 14:52:06 [RateCDR] => 1 ) [2025-04-09 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:52:06' and `end` < '2025-04-09 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:52:19] Production.INFO: count ==6009 [2025-04-09 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:52:06 - End Time 2025-04-09 14:52:06 [2025-04-09 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870276', 'tblTempUsageDetail_20' ) start [2025-04-09 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870276', 'tblTempUsageDetail_20' ) end [2025-04-09 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870276', 'tblTempVendorCDR_20' ) start [2025-04-09 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870276', 'tblTempVendorCDR_20' ) end [2025-04-09 14:52:22] Production.INFO: ProcessCDR(1,14870276,1,1,2) [2025-04-09 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870276', 'tblTempUsageDetail_20' ) start [2025-04-09 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870276', 'tblTempUsageDetail_20' ) end [2025-04-09 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:52:27] Production.INFO: ==12719== Releasing lock... [2025-04-09 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:52:27] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:53:05 [end_date_ymd] => 2025-04-09 14:53:05 [RateCDR] => 1 ) [2025-04-09 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:53:05' and `end` < '2025-04-09 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:53:19] Production.INFO: count ==6029 [2025-04-09 14:53:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:53:05 - End Time 2025-04-09 14:53:05 [2025-04-09 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870281', 'tblTempUsageDetail_20' ) start [2025-04-09 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870281', 'tblTempUsageDetail_20' ) end [2025-04-09 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870281', 'tblTempVendorCDR_20' ) start [2025-04-09 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870281', 'tblTempVendorCDR_20' ) end [2025-04-09 14:53:22] Production.INFO: ProcessCDR(1,14870281,1,1,2) [2025-04-09 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870281', 'tblTempUsageDetail_20' ) start [2025-04-09 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870281', 'tblTempUsageDetail_20' ) end [2025-04-09 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:53:27] Production.INFO: ==12802== Releasing lock... [2025-04-09 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:53:27] Production.INFO: 73 MB #Memory Used# [2025-04-09 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:54:05 [end_date_ymd] => 2025-04-09 14:54:05 [RateCDR] => 1 ) [2025-04-09 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:54:05' and `end` < '2025-04-09 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:54:19] Production.INFO: count ==5995 [2025-04-09 14:54:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:54:05 - End Time 2025-04-09 14:54:05 [2025-04-09 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870286', 'tblTempUsageDetail_20' ) start [2025-04-09 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870286', 'tblTempUsageDetail_20' ) end [2025-04-09 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870286', 'tblTempVendorCDR_20' ) start [2025-04-09 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870286', 'tblTempVendorCDR_20' ) end [2025-04-09 14:54:22] Production.INFO: ProcessCDR(1,14870286,1,1,2) [2025-04-09 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870286', 'tblTempUsageDetail_20' ) start [2025-04-09 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870286', 'tblTempUsageDetail_20' ) end [2025-04-09 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:54:27] Production.INFO: ==12920== Releasing lock... [2025-04-09 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:54:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-09 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:55:05 [end_date_ymd] => 2025-04-09 14:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:55:05' and `end` < '2025-04-09 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-09 14:55:19] Production.INFO: count ==5953 [2025-04-09 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:55:05 - End Time 2025-04-09 14:55:05 [2025-04-09 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870291', 'tblTempUsageDetail_20' ) start [2025-04-09 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870291', 'tblTempUsageDetail_20' ) end [2025-04-09 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870291', 'tblTempVendorCDR_20' ) start [2025-04-09 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870291', 'tblTempVendorCDR_20' ) end [2025-04-09 14:55:22] Production.INFO: ProcessCDR(1,14870291,1,1,2) [2025-04-09 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870291', 'tblTempUsageDetail_20' ) start [2025-04-09 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870291', 'tblTempUsageDetail_20' ) end [2025-04-09 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:55:28] Production.INFO: ==13004== Releasing lock... [2025-04-09 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:55:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-09 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:56:05 [end_date_ymd] => 2025-04-09 14:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:56:05' and `end` < '2025-04-09 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-09 14:56:19] Production.INFO: count ==5922 [2025-04-09 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:56:05 - End Time 2025-04-09 14:56:05 [2025-04-09 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870296', 'tblTempUsageDetail_20' ) start [2025-04-09 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870296', 'tblTempUsageDetail_20' ) end [2025-04-09 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870296', 'tblTempVendorCDR_20' ) start [2025-04-09 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870296', 'tblTempVendorCDR_20' ) end [2025-04-09 14:56:22] Production.INFO: ProcessCDR(1,14870296,1,1,2) [2025-04-09 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870296', 'tblTempUsageDetail_20' ) start [2025-04-09 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870296', 'tblTempUsageDetail_20' ) end [2025-04-09 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:56:27] Production.INFO: ==13079== Releasing lock... [2025-04-09 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:56:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-09 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:57:05 [end_date_ymd] => 2025-04-09 14:57:05 [RateCDR] => 1 ) [2025-04-09 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:57:05' and `end` < '2025-04-09 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:57:19] Production.INFO: count ==5875 [2025-04-09 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:57:05 - End Time 2025-04-09 14:57:05 [2025-04-09 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870301', 'tblTempUsageDetail_20' ) start [2025-04-09 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870301', 'tblTempUsageDetail_20' ) end [2025-04-09 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870301', 'tblTempVendorCDR_20' ) start [2025-04-09 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870301', 'tblTempVendorCDR_20' ) end [2025-04-09 14:57:22] Production.INFO: ProcessCDR(1,14870301,1,1,2) [2025-04-09 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870301', 'tblTempUsageDetail_20' ) start [2025-04-09 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870301', 'tblTempUsageDetail_20' ) end [2025-04-09 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:57:27] Production.INFO: ==13158== Releasing lock... [2025-04-09 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:57:27] Production.INFO: 72 MB #Memory Used# [2025-04-09 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:58:05 [end_date_ymd] => 2025-04-09 14:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 11:58:05' and `end` < '2025-04-09 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-09 14:58:19] Production.INFO: count ==5871 [2025-04-09 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:58:05 - End Time 2025-04-09 14:58:05 [2025-04-09 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870306', 'tblTempUsageDetail_20' ) start [2025-04-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870306', 'tblTempUsageDetail_20' ) end [2025-04-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870306', 'tblTempVendorCDR_20' ) start [2025-04-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870306', 'tblTempVendorCDR_20' ) end [2025-04-09 14:58:22] Production.INFO: ProcessCDR(1,14870306,1,1,2) [2025-04-09 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870306', 'tblTempUsageDetail_20' ) start [2025-04-09 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870306', 'tblTempUsageDetail_20' ) end [2025-04-09 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:58:27] Production.INFO: ==13234== Releasing lock... [2025-04-09 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:58:27] Production.INFO: 72 MB #Memory Used# [2025-04-09 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 11:59:05 [end_date_ymd] => 2025-04-09 14:59:05 [RateCDR] => 1 ) [2025-04-09 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 11:59:05' and `end` < '2025-04-09 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 14:59:19] Production.INFO: count ==5882 [2025-04-09 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-09 11:59:05 - End Time 2025-04-09 14:59:05 [2025-04-09 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870311', 'tblTempUsageDetail_20' ) start [2025-04-09 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870311', 'tblTempUsageDetail_20' ) end [2025-04-09 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870311', 'tblTempVendorCDR_20' ) start [2025-04-09 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870311', 'tblTempVendorCDR_20' ) end [2025-04-09 14:59:22] Production.INFO: ProcessCDR(1,14870311,1,1,2) [2025-04-09 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870311', 'tblTempUsageDetail_20' ) start [2025-04-09 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870311', 'tblTempUsageDetail_20' ) end [2025-04-09 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 14:59:27] Production.INFO: ==13310== Releasing lock... [2025-04-09 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 14:59:27] Production.INFO: 72 MB #Memory Used# [2025-04-09 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:00:05 [end_date_ymd] => 2025-04-09 15:00:05 [RateCDR] => 1 ) [2025-04-09 15: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 12:00:05' and `end` < '2025-04-09 15: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-09 15:00:19] Production.INFO: count ==5873 [2025-04-09 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:00:05 - End Time 2025-04-09 15:00:05 [2025-04-09 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870317', 'tblTempUsageDetail_20' ) start [2025-04-09 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870317', 'tblTempUsageDetail_20' ) end [2025-04-09 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870317', 'tblTempVendorCDR_20' ) start [2025-04-09 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870317', 'tblTempVendorCDR_20' ) end [2025-04-09 15:00:22] Production.INFO: ProcessCDR(1,14870317,1,1,2) [2025-04-09 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870317', 'tblTempUsageDetail_20' ) start [2025-04-09 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870317', 'tblTempUsageDetail_20' ) end [2025-04-09 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:00:28] Production.INFO: ==13389== Releasing lock... [2025-04-09 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:00:28] Production.INFO: 72 MB #Memory Used# [2025-04-09 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:01:05 [end_date_ymd] => 2025-04-09 15:01:05 [RateCDR] => 1 ) [2025-04-09 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:01:05' and `end` < '2025-04-09 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:01:19] Production.INFO: count ==5863 [2025-04-09 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:01:05 - End Time 2025-04-09 15:01:05 [2025-04-09 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870322', 'tblTempUsageDetail_20' ) start [2025-04-09 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870322', 'tblTempUsageDetail_20' ) end [2025-04-09 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870322', 'tblTempVendorCDR_20' ) start [2025-04-09 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870322', 'tblTempVendorCDR_20' ) end [2025-04-09 15:01:22] Production.INFO: ProcessCDR(1,14870322,1,1,2) [2025-04-09 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870322', 'tblTempUsageDetail_20' ) start [2025-04-09 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870322', 'tblTempUsageDetail_20' ) end [2025-04-09 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:01:27] Production.INFO: ==13491== Releasing lock... [2025-04-09 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:01:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-09 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:02:06 [end_date_ymd] => 2025-04-09 15:02:06 [RateCDR] => 1 ) [2025-04-09 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:02:06' and `end` < '2025-04-09 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:02:20] Production.INFO: count ==5807 [2025-04-09 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:02:06 - End Time 2025-04-09 15:02:06 [2025-04-09 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870327', 'tblTempUsageDetail_20' ) start [2025-04-09 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870327', 'tblTempUsageDetail_20' ) end [2025-04-09 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870327', 'tblTempVendorCDR_20' ) start [2025-04-09 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870327', 'tblTempVendorCDR_20' ) end [2025-04-09 15:02:23] Production.INFO: ProcessCDR(1,14870327,1,1,2) [2025-04-09 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870327', 'tblTempUsageDetail_20' ) start [2025-04-09 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870327', 'tblTempUsageDetail_20' ) end [2025-04-09 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:02:28] Production.INFO: ==13636== Releasing lock... [2025-04-09 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:02:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-09 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:03:05 [end_date_ymd] => 2025-04-09 15:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:03:05' and `end` < '2025-04-09 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-09 15:03:19] Production.INFO: count ==5737 [2025-04-09 15:03:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:03:05 - End Time 2025-04-09 15:03:05 [2025-04-09 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870332', 'tblTempUsageDetail_20' ) start [2025-04-09 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870332', 'tblTempUsageDetail_20' ) end [2025-04-09 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870332', 'tblTempVendorCDR_20' ) start [2025-04-09 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870332', 'tblTempVendorCDR_20' ) end [2025-04-09 15:03:22] Production.INFO: ProcessCDR(1,14870332,1,1,2) [2025-04-09 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870332', 'tblTempUsageDetail_20' ) start [2025-04-09 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870332', 'tblTempUsageDetail_20' ) end [2025-04-09 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:03:27] Production.INFO: ==13712== Releasing lock... [2025-04-09 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:03:27] Production.INFO: 71 MB #Memory Used# [2025-04-09 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:04:06 [end_date_ymd] => 2025-04-09 15:04:06 [RateCDR] => 1 ) [2025-04-09 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:04:06' and `end` < '2025-04-09 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:04:19] Production.INFO: count ==5651 [2025-04-09 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:04:06 - End Time 2025-04-09 15:04:06 [2025-04-09 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870337', 'tblTempUsageDetail_20' ) start [2025-04-09 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870337', 'tblTempUsageDetail_20' ) end [2025-04-09 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870337', 'tblTempVendorCDR_20' ) start [2025-04-09 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870337', 'tblTempVendorCDR_20' ) end [2025-04-09 15:04:22] Production.INFO: ProcessCDR(1,14870337,1,1,2) [2025-04-09 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870337', 'tblTempUsageDetail_20' ) start [2025-04-09 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870337', 'tblTempUsageDetail_20' ) end [2025-04-09 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:04:28] Production.INFO: ==13788== Releasing lock... [2025-04-09 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:04:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-09 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:05:05 [end_date_ymd] => 2025-04-09 15:05:05 [RateCDR] => 1 ) [2025-04-09 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:05:05' and `end` < '2025-04-09 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:05:19] Production.INFO: count ==5575 [2025-04-09 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:05:05 - End Time 2025-04-09 15:05:05 [2025-04-09 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870342', 'tblTempUsageDetail_20' ) start [2025-04-09 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870342', 'tblTempUsageDetail_20' ) end [2025-04-09 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870342', 'tblTempVendorCDR_20' ) start [2025-04-09 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870342', 'tblTempVendorCDR_20' ) end [2025-04-09 15:05:22] Production.INFO: ProcessCDR(1,14870342,1,1,2) [2025-04-09 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870342', 'tblTempUsageDetail_20' ) start [2025-04-09 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870342', 'tblTempUsageDetail_20' ) end [2025-04-09 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:05:27] Production.INFO: ==13943== Releasing lock... [2025-04-09 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:05:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-09 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:06:06 [end_date_ymd] => 2025-04-09 15:06:06 [RateCDR] => 1 ) [2025-04-09 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:06:06' and `end` < '2025-04-09 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:06:20] Production.INFO: count ==5517 [2025-04-09 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:06:06 - End Time 2025-04-09 15:06:06 [2025-04-09 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870347', 'tblTempUsageDetail_20' ) start [2025-04-09 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870347', 'tblTempUsageDetail_20' ) end [2025-04-09 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870347', 'tblTempVendorCDR_20' ) start [2025-04-09 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870347', 'tblTempVendorCDR_20' ) end [2025-04-09 15:06:22] Production.INFO: ProcessCDR(1,14870347,1,1,2) [2025-04-09 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870347', 'tblTempUsageDetail_20' ) start [2025-04-09 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870347', 'tblTempUsageDetail_20' ) end [2025-04-09 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:06:27] Production.INFO: ==14017== Releasing lock... [2025-04-09 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:06:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-09 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:07:05 [end_date_ymd] => 2025-04-09 15:07:05 [RateCDR] => 1 ) [2025-04-09 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:07:05' and `end` < '2025-04-09 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:07:19] Production.INFO: count ==5482 [2025-04-09 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:07:05 - End Time 2025-04-09 15:07:05 [2025-04-09 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870352', 'tblTempUsageDetail_20' ) start [2025-04-09 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870352', 'tblTempUsageDetail_20' ) end [2025-04-09 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870352', 'tblTempVendorCDR_20' ) start [2025-04-09 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870352', 'tblTempVendorCDR_20' ) end [2025-04-09 15:07:21] Production.INFO: ProcessCDR(1,14870352,1,1,2) [2025-04-09 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870352', 'tblTempUsageDetail_20' ) start [2025-04-09 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870352', 'tblTempUsageDetail_20' ) end [2025-04-09 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:07:27] Production.INFO: ==14091== Releasing lock... [2025-04-09 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:07:27] Production.INFO: 69 MB #Memory Used# [2025-04-09 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:08:06 [end_date_ymd] => 2025-04-09 15:08:06 [RateCDR] => 1 ) [2025-04-09 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:08:06' and `end` < '2025-04-09 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:08:19] Production.INFO: count ==5460 [2025-04-09 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:08:06 - End Time 2025-04-09 15:08:06 [2025-04-09 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870357', 'tblTempUsageDetail_20' ) start [2025-04-09 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870357', 'tblTempUsageDetail_20' ) end [2025-04-09 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870357', 'tblTempVendorCDR_20' ) start [2025-04-09 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870357', 'tblTempVendorCDR_20' ) end [2025-04-09 15:08:22] Production.INFO: ProcessCDR(1,14870357,1,1,2) [2025-04-09 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870357', 'tblTempUsageDetail_20' ) start [2025-04-09 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870357', 'tblTempUsageDetail_20' ) end [2025-04-09 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:08:27] Production.INFO: ==14244== Releasing lock... [2025-04-09 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:08:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-09 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:09:06 [end_date_ymd] => 2025-04-09 15:09:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:09:06' and `end` < '2025-04-09 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-09 15:09:19] Production.INFO: count ==5415 [2025-04-09 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:09:06 - End Time 2025-04-09 15:09:06 [2025-04-09 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870362', 'tblTempUsageDetail_20' ) start [2025-04-09 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870362', 'tblTempUsageDetail_20' ) end [2025-04-09 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870362', 'tblTempVendorCDR_20' ) start [2025-04-09 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870362', 'tblTempVendorCDR_20' ) end [2025-04-09 15:09:22] Production.INFO: ProcessCDR(1,14870362,1,1,2) [2025-04-09 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870362', 'tblTempUsageDetail_20' ) start [2025-04-09 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870362', 'tblTempUsageDetail_20' ) end [2025-04-09 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:09:28] Production.INFO: ==14313== Releasing lock... [2025-04-09 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:09:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-09 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:10:07 [end_date_ymd] => 2025-04-09 15:10:07 [RateCDR] => 1 ) [2025-04-09 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:10:07' and `end` < '2025-04-09 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:10:21] Production.INFO: count ==5371 [2025-04-09 15:10:23] Production.ERROR: pbx CDR StartTime 2025-04-09 12:10:07 - End Time 2025-04-09 15:10:07 [2025-04-09 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870368', 'tblTempUsageDetail_20' ) start [2025-04-09 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870368', 'tblTempUsageDetail_20' ) end [2025-04-09 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870368', 'tblTempVendorCDR_20' ) start [2025-04-09 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870368', 'tblTempVendorCDR_20' ) end [2025-04-09 15:10:23] Production.INFO: ProcessCDR(1,14870368,1,1,2) [2025-04-09 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870368', 'tblTempUsageDetail_20' ) start [2025-04-09 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870368', 'tblTempUsageDetail_20' ) end [2025-04-09 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:10:28] Production.INFO: ==14425== Releasing lock... [2025-04-09 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:10:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-09 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:11:06 [end_date_ymd] => 2025-04-09 15:11:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:11:06' and `end` < '2025-04-09 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-09 15:11:20] Production.INFO: count ==5316 [2025-04-09 15:11:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:11:06 - End Time 2025-04-09 15:11:06 [2025-04-09 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870373', 'tblTempUsageDetail_20' ) start [2025-04-09 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870373', 'tblTempUsageDetail_20' ) end [2025-04-09 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870373', 'tblTempVendorCDR_20' ) start [2025-04-09 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870373', 'tblTempVendorCDR_20' ) end [2025-04-09 15:11:22] Production.INFO: ProcessCDR(1,14870373,1,1,2) [2025-04-09 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870373', 'tblTempUsageDetail_20' ) start [2025-04-09 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870373', 'tblTempUsageDetail_20' ) end [2025-04-09 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:11:28] Production.INFO: ==14499== Releasing lock... [2025-04-09 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:11:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-09 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:12:06 [end_date_ymd] => 2025-04-09 15:12:06 [RateCDR] => 1 ) [2025-04-09 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:12:06' and `end` < '2025-04-09 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:12:20] Production.INFO: count ==5298 [2025-04-09 15:12:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:12:06 - End Time 2025-04-09 15:12:06 [2025-04-09 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870378', 'tblTempUsageDetail_20' ) start [2025-04-09 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870378', 'tblTempUsageDetail_20' ) end [2025-04-09 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870378', 'tblTempVendorCDR_20' ) start [2025-04-09 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870378', 'tblTempVendorCDR_20' ) end [2025-04-09 15:12:22] Production.INFO: ProcessCDR(1,14870378,1,1,2) [2025-04-09 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870378', 'tblTempUsageDetail_20' ) start [2025-04-09 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870378', 'tblTempUsageDetail_20' ) end [2025-04-09 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:12:27] Production.INFO: ==14647== Releasing lock... [2025-04-09 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:12:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-09 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:13:05 [end_date_ymd] => 2025-04-09 15:13:05 [RateCDR] => 1 ) [2025-04-09 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:13:05' and `end` < '2025-04-09 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:13:20] Production.INFO: count ==5260 [2025-04-09 15:13:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:13:05 - End Time 2025-04-09 15:13:05 [2025-04-09 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870383', 'tblTempUsageDetail_20' ) start [2025-04-09 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870383', 'tblTempUsageDetail_20' ) end [2025-04-09 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870383', 'tblTempVendorCDR_20' ) start [2025-04-09 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870383', 'tblTempVendorCDR_20' ) end [2025-04-09 15:13:23] Production.INFO: ProcessCDR(1,14870383,1,1,2) [2025-04-09 15:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870383', 'tblTempUsageDetail_20' ) start [2025-04-09 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870383', 'tblTempUsageDetail_20' ) end [2025-04-09 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:13:28] Production.INFO: ==14719== Releasing lock... [2025-04-09 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:13:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-09 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:14:05 [end_date_ymd] => 2025-04-09 15:14:05 [RateCDR] => 1 ) [2025-04-09 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:14:05' and `end` < '2025-04-09 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:14:19] Production.INFO: count ==5233 [2025-04-09 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:14:05 - End Time 2025-04-09 15:14:05 [2025-04-09 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870386', 'tblTempUsageDetail_20' ) start [2025-04-09 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870386', 'tblTempUsageDetail_20' ) end [2025-04-09 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870386', 'tblTempVendorCDR_20' ) start [2025-04-09 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870386', 'tblTempVendorCDR_20' ) end [2025-04-09 15:14:21] Production.INFO: ProcessCDR(1,14870386,1,1,2) [2025-04-09 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870386', 'tblTempUsageDetail_20' ) start [2025-04-09 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870386', 'tblTempUsageDetail_20' ) end [2025-04-09 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:14:27] Production.INFO: ==14794== Releasing lock... [2025-04-09 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:14:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-09 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:15:05 [end_date_ymd] => 2025-04-09 15:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:15:05' and `end` < '2025-04-09 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-09 15:15:19] Production.INFO: count ==5196 [2025-04-09 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:15:05 - End Time 2025-04-09 15:15:05 [2025-04-09 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870393', 'tblTempUsageDetail_20' ) start [2025-04-09 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870393', 'tblTempUsageDetail_20' ) end [2025-04-09 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870393', 'tblTempVendorCDR_20' ) start [2025-04-09 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870393', 'tblTempVendorCDR_20' ) end [2025-04-09 15:15:21] Production.INFO: ProcessCDR(1,14870393,1,1,2) [2025-04-09 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870393', 'tblTempUsageDetail_20' ) start [2025-04-09 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870393', 'tblTempUsageDetail_20' ) end [2025-04-09 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:15:27] Production.INFO: ==14943== Releasing lock... [2025-04-09 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:15:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-09 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:16:05 [end_date_ymd] => 2025-04-09 15:16:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:16:05' and `end` < '2025-04-09 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-09 15:16:19] Production.INFO: count ==5159 [2025-04-09 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:16:05 - End Time 2025-04-09 15:16:05 [2025-04-09 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870398', 'tblTempUsageDetail_20' ) start [2025-04-09 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870398', 'tblTempUsageDetail_20' ) end [2025-04-09 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870398', 'tblTempVendorCDR_20' ) start [2025-04-09 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870398', 'tblTempVendorCDR_20' ) end [2025-04-09 15:16:22] Production.INFO: ProcessCDR(1,14870398,1,1,2) [2025-04-09 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870398', 'tblTempUsageDetail_20' ) start [2025-04-09 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870398', 'tblTempUsageDetail_20' ) end [2025-04-09 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:16:27] Production.INFO: ==15014== Releasing lock... [2025-04-09 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:16:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-09 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:17:06 [end_date_ymd] => 2025-04-09 15:17:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:17:06' and `end` < '2025-04-09 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-09 15:17:20] Production.INFO: count ==5124 [2025-04-09 15:17:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:17:06 - End Time 2025-04-09 15:17:06 [2025-04-09 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870403', 'tblTempUsageDetail_20' ) start [2025-04-09 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870403', 'tblTempUsageDetail_20' ) end [2025-04-09 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870403', 'tblTempVendorCDR_20' ) start [2025-04-09 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870403', 'tblTempVendorCDR_20' ) end [2025-04-09 15:17:22] Production.INFO: ProcessCDR(1,14870403,1,1,2) [2025-04-09 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870403', 'tblTempUsageDetail_20' ) start [2025-04-09 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870403', 'tblTempUsageDetail_20' ) end [2025-04-09 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:17:27] Production.INFO: ==15085== Releasing lock... [2025-04-09 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:17:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-09 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:18:05 [end_date_ymd] => 2025-04-09 15:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:18:05' and `end` < '2025-04-09 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-09 15:18:18] Production.INFO: count ==5070 [2025-04-09 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:18:05 - End Time 2025-04-09 15:18:05 [2025-04-09 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870408', 'tblTempUsageDetail_20' ) start [2025-04-09 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870408', 'tblTempUsageDetail_20' ) end [2025-04-09 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870408', 'tblTempVendorCDR_20' ) start [2025-04-09 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870408', 'tblTempVendorCDR_20' ) end [2025-04-09 15:18:21] Production.INFO: ProcessCDR(1,14870408,1,1,2) [2025-04-09 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870408', 'tblTempUsageDetail_20' ) start [2025-04-09 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870408', 'tblTempUsageDetail_20' ) end [2025-04-09 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:18:26] Production.INFO: ==15153== Releasing lock... [2025-04-09 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:18:26] Production.INFO: 66 MB #Memory Used# [2025-04-09 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:19:05 [end_date_ymd] => 2025-04-09 15:19:05 [RateCDR] => 1 ) [2025-04-09 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:19:05' and `end` < '2025-04-09 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-09 15:19:19] Production.INFO: count ==5042 [2025-04-09 15:19:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:19:05 - End Time 2025-04-09 15:19:05 [2025-04-09 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870413', 'tblTempUsageDetail_20' ) start [2025-04-09 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870413', 'tblTempUsageDetail_20' ) end [2025-04-09 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870413', 'tblTempVendorCDR_20' ) start [2025-04-09 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870413', 'tblTempVendorCDR_20' ) end [2025-04-09 15:19:22] Production.INFO: ProcessCDR(1,14870413,1,1,2) [2025-04-09 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870413', 'tblTempUsageDetail_20' ) start [2025-04-09 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870413', 'tblTempUsageDetail_20' ) end [2025-04-09 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:19:28] Production.INFO: ==15228== Releasing lock... [2025-04-09 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:19:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-09 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:20:05 [end_date_ymd] => 2025-04-09 15:20:05 [RateCDR] => 1 ) [2025-04-09 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:20:05' and `end` < '2025-04-09 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:20:20] Production.INFO: count ==5016 [2025-04-09 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:20:05 - End Time 2025-04-09 15:20:05 [2025-04-09 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870418', 'tblTempUsageDetail_20' ) start [2025-04-09 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870418', 'tblTempUsageDetail_20' ) end [2025-04-09 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870418', 'tblTempVendorCDR_20' ) start [2025-04-09 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870418', 'tblTempVendorCDR_20' ) end [2025-04-09 15:20:22] Production.INFO: ProcessCDR(1,14870418,1,1,2) [2025-04-09 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870418', 'tblTempUsageDetail_20' ) start [2025-04-09 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870418', 'tblTempUsageDetail_20' ) end [2025-04-09 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:20:27] Production.INFO: ==15299== Releasing lock... [2025-04-09 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:20:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-09 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:21:06 [end_date_ymd] => 2025-04-09 15:21:06 [RateCDR] => 1 ) [2025-04-09 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:21:06' and `end` < '2025-04-09 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:21:20] Production.INFO: count ==5007 [2025-04-09 15:21:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:21:06 - End Time 2025-04-09 15:21:06 [2025-04-09 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870424', 'tblTempUsageDetail_20' ) start [2025-04-09 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870424', 'tblTempUsageDetail_20' ) end [2025-04-09 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870424', 'tblTempVendorCDR_20' ) start [2025-04-09 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870424', 'tblTempVendorCDR_20' ) end [2025-04-09 15:21:23] Production.INFO: ProcessCDR(1,14870424,1,1,2) [2025-04-09 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870424', 'tblTempUsageDetail_20' ) start [2025-04-09 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870424', 'tblTempUsageDetail_20' ) end [2025-04-09 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:21:28] Production.INFO: ==15371== Releasing lock... [2025-04-09 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:21:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-09 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:22:05 [end_date_ymd] => 2025-04-09 15:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:22:05' and `end` < '2025-04-09 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-09 15:22:19] Production.INFO: count ==4965 [2025-04-09 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:22:05 - End Time 2025-04-09 15:22:05 [2025-04-09 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870429', 'tblTempUsageDetail_20' ) start [2025-04-09 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870429', 'tblTempUsageDetail_20' ) end [2025-04-09 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870429', 'tblTempVendorCDR_20' ) start [2025-04-09 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870429', 'tblTempVendorCDR_20' ) end [2025-04-09 15:22:21] Production.INFO: ProcessCDR(1,14870429,1,1,2) [2025-04-09 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870429', 'tblTempUsageDetail_20' ) start [2025-04-09 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870429', 'tblTempUsageDetail_20' ) end [2025-04-09 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:22:26] Production.INFO: ==15440== Releasing lock... [2025-04-09 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:22:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-09 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:23:05 [end_date_ymd] => 2025-04-09 15:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:23:05' and `end` < '2025-04-09 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-09 15:23:19] Production.INFO: count ==4944 [2025-04-09 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:23:05 - End Time 2025-04-09 15:23:05 [2025-04-09 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870434', 'tblTempUsageDetail_20' ) start [2025-04-09 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870434', 'tblTempUsageDetail_20' ) end [2025-04-09 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870434', 'tblTempVendorCDR_20' ) start [2025-04-09 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870434', 'tblTempVendorCDR_20' ) end [2025-04-09 15:23:21] Production.INFO: ProcessCDR(1,14870434,1,1,2) [2025-04-09 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870434', 'tblTempUsageDetail_20' ) start [2025-04-09 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870434', 'tblTempUsageDetail_20' ) end [2025-04-09 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:23:27] Production.INFO: ==15514== Releasing lock... [2025-04-09 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:23:27] Production.INFO: 65 MB #Memory Used# [2025-04-09 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:24:05 [end_date_ymd] => 2025-04-09 15:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:24:05' and `end` < '2025-04-09 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-09 15:24:19] Production.INFO: count ==4896 [2025-04-09 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:24:05 - End Time 2025-04-09 15:24:05 [2025-04-09 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870439', 'tblTempUsageDetail_20' ) start [2025-04-09 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870439', 'tblTempUsageDetail_20' ) end [2025-04-09 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870439', 'tblTempVendorCDR_20' ) start [2025-04-09 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870439', 'tblTempVendorCDR_20' ) end [2025-04-09 15:24:21] Production.INFO: ProcessCDR(1,14870439,1,1,2) [2025-04-09 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870439', 'tblTempUsageDetail_20' ) start [2025-04-09 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870439', 'tblTempUsageDetail_20' ) end [2025-04-09 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:24:26] Production.INFO: ==15586== Releasing lock... [2025-04-09 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:24:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-09 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:25:05 [end_date_ymd] => 2025-04-09 15:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:25:05' and `end` < '2025-04-09 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-09 15:25:19] Production.INFO: count ==4859 [2025-04-09 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:25:05 - End Time 2025-04-09 15:25:05 [2025-04-09 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870444', 'tblTempUsageDetail_20' ) start [2025-04-09 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870444', 'tblTempUsageDetail_20' ) end [2025-04-09 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870444', 'tblTempVendorCDR_20' ) start [2025-04-09 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870444', 'tblTempVendorCDR_20' ) end [2025-04-09 15:25:21] Production.INFO: ProcessCDR(1,14870444,1,1,2) [2025-04-09 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870444', 'tblTempUsageDetail_20' ) start [2025-04-09 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870444', 'tblTempUsageDetail_20' ) end [2025-04-09 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:25:26] Production.INFO: ==15695== Releasing lock... [2025-04-09 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:25:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-09 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:26:06 [end_date_ymd] => 2025-04-09 15:26:06 [RateCDR] => 1 ) [2025-04-09 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:26:06' and `end` < '2025-04-09 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:26:19] Production.INFO: count ==4819 [2025-04-09 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:26:06 - End Time 2025-04-09 15:26:06 [2025-04-09 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870449', 'tblTempUsageDetail_20' ) start [2025-04-09 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870449', 'tblTempUsageDetail_20' ) end [2025-04-09 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870449', 'tblTempVendorCDR_20' ) start [2025-04-09 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870449', 'tblTempVendorCDR_20' ) end [2025-04-09 15:26:21] Production.INFO: ProcessCDR(1,14870449,1,1,2) [2025-04-09 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870449', 'tblTempUsageDetail_20' ) start [2025-04-09 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870449', 'tblTempUsageDetail_20' ) end [2025-04-09 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:26:27] Production.INFO: ==15769== Releasing lock... [2025-04-09 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:26:27] Production.INFO: 64 MB #Memory Used# [2025-04-09 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:27:05 [end_date_ymd] => 2025-04-09 15:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:27:05' and `end` < '2025-04-09 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-09 15:27:19] Production.INFO: count ==4797 [2025-04-09 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:27:05 - End Time 2025-04-09 15:27:05 [2025-04-09 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870454', 'tblTempUsageDetail_20' ) start [2025-04-09 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870454', 'tblTempUsageDetail_20' ) end [2025-04-09 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870454', 'tblTempVendorCDR_20' ) start [2025-04-09 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870454', 'tblTempVendorCDR_20' ) end [2025-04-09 15:27:21] Production.INFO: ProcessCDR(1,14870454,1,1,2) [2025-04-09 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870454', 'tblTempUsageDetail_20' ) start [2025-04-09 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870454', 'tblTempUsageDetail_20' ) end [2025-04-09 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:27:26] Production.INFO: ==15839== Releasing lock... [2025-04-09 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:27:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-09 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:28:06 [end_date_ymd] => 2025-04-09 15:28:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:28:06' and `end` < '2025-04-09 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-09 15:28:20] Production.INFO: count ==4766 [2025-04-09 15:28:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:28:06 - End Time 2025-04-09 15:28:06 [2025-04-09 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870459', 'tblTempUsageDetail_20' ) start [2025-04-09 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870459', 'tblTempUsageDetail_20' ) end [2025-04-09 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870459', 'tblTempVendorCDR_20' ) start [2025-04-09 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870459', 'tblTempVendorCDR_20' ) end [2025-04-09 15:28:22] Production.INFO: ProcessCDR(1,14870459,1,1,2) [2025-04-09 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870459', 'tblTempUsageDetail_20' ) start [2025-04-09 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870459', 'tblTempUsageDetail_20' ) end [2025-04-09 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:28:27] Production.INFO: ==15910== Releasing lock... [2025-04-09 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:28:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-09 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:29:05 [end_date_ymd] => 2025-04-09 15:29:05 [RateCDR] => 1 ) [2025-04-09 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:29:05' and `end` < '2025-04-09 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-09 15:29:19] Production.INFO: count ==4744 [2025-04-09 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:29:05 - End Time 2025-04-09 15:29:05 [2025-04-09 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870464', 'tblTempUsageDetail_20' ) start [2025-04-09 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870464', 'tblTempUsageDetail_20' ) end [2025-04-09 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870464', 'tblTempVendorCDR_20' ) start [2025-04-09 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870464', 'tblTempVendorCDR_20' ) end [2025-04-09 15:29:21] Production.INFO: ProcessCDR(1,14870464,1,1,2) [2025-04-09 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870464', 'tblTempUsageDetail_20' ) start [2025-04-09 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870464', 'tblTempUsageDetail_20' ) end [2025-04-09 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:29:26] Production.INFO: ==15981== Releasing lock... [2025-04-09 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-09 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:30:06 [end_date_ymd] => 2025-04-09 15:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:30:06' and `end` < '2025-04-09 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-09 15:30:20] Production.INFO: count ==4700 [2025-04-09 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:30:06 - End Time 2025-04-09 15:30:06 [2025-04-09 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870470', 'tblTempUsageDetail_20' ) start [2025-04-09 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870470', 'tblTempUsageDetail_20' ) end [2025-04-09 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870470', 'tblTempVendorCDR_20' ) start [2025-04-09 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870470', 'tblTempVendorCDR_20' ) end [2025-04-09 15:30:22] Production.INFO: ProcessCDR(1,14870470,1,1,2) [2025-04-09 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870470', 'tblTempUsageDetail_20' ) start [2025-04-09 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870470', 'tblTempUsageDetail_20' ) end [2025-04-09 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:30:27] Production.INFO: ==16056== Releasing lock... [2025-04-09 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:30:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-09 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:31:05 [end_date_ymd] => 2025-04-09 15:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:31:05' and `end` < '2025-04-09 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-09 15:31:19] Production.INFO: count ==4676 [2025-04-09 15:31:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:31:05 - End Time 2025-04-09 15:31:05 [2025-04-09 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870475', 'tblTempUsageDetail_20' ) start [2025-04-09 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870475', 'tblTempUsageDetail_20' ) end [2025-04-09 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870475', 'tblTempVendorCDR_20' ) start [2025-04-09 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870475', 'tblTempVendorCDR_20' ) end [2025-04-09 15:31:21] Production.INFO: ProcessCDR(1,14870475,1,1,2) [2025-04-09 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870475', 'tblTempUsageDetail_20' ) start [2025-04-09 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870475', 'tblTempUsageDetail_20' ) end [2025-04-09 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:31:26] Production.INFO: ==16129== Releasing lock... [2025-04-09 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:31:26] Production.INFO: 63 MB #Memory Used# [2025-04-09 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:32:05 [end_date_ymd] => 2025-04-09 15:32:05 [RateCDR] => 1 ) [2025-04-09 15: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 12:32:05' and `end` < '2025-04-09 15: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-09 15:32:19] Production.INFO: count ==4685 [2025-04-09 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:32:05 - End Time 2025-04-09 15:32:05 [2025-04-09 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870480', 'tblTempUsageDetail_20' ) start [2025-04-09 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870480', 'tblTempUsageDetail_20' ) end [2025-04-09 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870480', 'tblTempVendorCDR_20' ) start [2025-04-09 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870480', 'tblTempVendorCDR_20' ) end [2025-04-09 15:32:21] Production.INFO: ProcessCDR(1,14870480,1,1,2) [2025-04-09 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870480', 'tblTempUsageDetail_20' ) start [2025-04-09 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870480', 'tblTempUsageDetail_20' ) end [2025-04-09 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:32:26] Production.INFO: ==16199== Releasing lock... [2025-04-09 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:32:26] Production.INFO: 63 MB #Memory Used# [2025-04-09 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:33:05 [end_date_ymd] => 2025-04-09 15:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:33:05' and `end` < '2025-04-09 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-09 15:33:19] Production.INFO: count ==4677 [2025-04-09 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:33:05 - End Time 2025-04-09 15:33:05 [2025-04-09 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870485', 'tblTempUsageDetail_20' ) start [2025-04-09 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870485', 'tblTempUsageDetail_20' ) end [2025-04-09 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870485', 'tblTempVendorCDR_20' ) start [2025-04-09 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870485', 'tblTempVendorCDR_20' ) end [2025-04-09 15:33:21] Production.INFO: ProcessCDR(1,14870485,1,1,2) [2025-04-09 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870485', 'tblTempUsageDetail_20' ) start [2025-04-09 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870485', 'tblTempUsageDetail_20' ) end [2025-04-09 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:33:26] Production.INFO: ==16269== Releasing lock... [2025-04-09 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:33:26] Production.INFO: 63 MB #Memory Used# [2025-04-09 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:34:06 [end_date_ymd] => 2025-04-09 15:34:06 [RateCDR] => 1 ) [2025-04-09 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-09 12:34:06' and `end` < '2025-04-09 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:34:19] Production.INFO: count ==4639 [2025-04-09 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:34:06 - End Time 2025-04-09 15:34:06 [2025-04-09 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870490', 'tblTempUsageDetail_20' ) start [2025-04-09 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870490', 'tblTempUsageDetail_20' ) end [2025-04-09 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870490', 'tblTempVendorCDR_20' ) start [2025-04-09 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870490', 'tblTempVendorCDR_20' ) end [2025-04-09 15:34:21] Production.INFO: ProcessCDR(1,14870490,1,1,2) [2025-04-09 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870490', 'tblTempUsageDetail_20' ) start [2025-04-09 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870490', 'tblTempUsageDetail_20' ) end [2025-04-09 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:34:26] Production.INFO: ==16346== Releasing lock... [2025-04-09 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:34:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-09 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:35:05 [end_date_ymd] => 2025-04-09 15:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:35:05' and `end` < '2025-04-09 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-09 15:35:19] Production.INFO: count ==4615 [2025-04-09 15:35:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:35:05 - End Time 2025-04-09 15:35:05 [2025-04-09 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870495', 'tblTempUsageDetail_20' ) start [2025-04-09 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870495', 'tblTempUsageDetail_20' ) end [2025-04-09 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870495', 'tblTempVendorCDR_20' ) start [2025-04-09 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870495', 'tblTempVendorCDR_20' ) end [2025-04-09 15:35:21] Production.INFO: ProcessCDR(1,14870495,1,1,2) [2025-04-09 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870495', 'tblTempUsageDetail_20' ) start [2025-04-09 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870495', 'tblTempUsageDetail_20' ) end [2025-04-09 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:35:26] Production.INFO: ==16428== Releasing lock... [2025-04-09 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:35:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-09 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:36:05 [end_date_ymd] => 2025-04-09 15:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:36:05' and `end` < '2025-04-09 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-09 15:36:19] Production.INFO: count ==4566 [2025-04-09 15:36:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:36:05 - End Time 2025-04-09 15:36:05 [2025-04-09 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870500', 'tblTempUsageDetail_20' ) start [2025-04-09 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870500', 'tblTempUsageDetail_20' ) end [2025-04-09 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870500', 'tblTempVendorCDR_20' ) start [2025-04-09 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870500', 'tblTempVendorCDR_20' ) end [2025-04-09 15:36:21] Production.INFO: ProcessCDR(1,14870500,1,1,2) [2025-04-09 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870500', 'tblTempUsageDetail_20' ) start [2025-04-09 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870500', 'tblTempUsageDetail_20' ) end [2025-04-09 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:36:26] Production.INFO: ==16500== Releasing lock... [2025-04-09 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:36:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:37:05 [end_date_ymd] => 2025-04-09 15:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:37:05' and `end` < '2025-04-09 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-09 15:37:19] Production.INFO: count ==4521 [2025-04-09 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:37:05 - End Time 2025-04-09 15:37:05 [2025-04-09 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870505', 'tblTempUsageDetail_20' ) start [2025-04-09 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870505', 'tblTempUsageDetail_20' ) end [2025-04-09 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870505', 'tblTempVendorCDR_20' ) start [2025-04-09 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870505', 'tblTempVendorCDR_20' ) end [2025-04-09 15:37:21] Production.INFO: ProcessCDR(1,14870505,1,1,2) [2025-04-09 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870505', 'tblTempUsageDetail_20' ) start [2025-04-09 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870505', 'tblTempUsageDetail_20' ) end [2025-04-09 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:37:27] Production.INFO: ==16571== Releasing lock... [2025-04-09 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:37:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:38:05 [end_date_ymd] => 2025-04-09 15:38:05 [RateCDR] => 1 ) [2025-04-09 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:38:05' and `end` < '2025-04-09 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-09 15:38:19] Production.INFO: count ==4478 [2025-04-09 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:38:05 - End Time 2025-04-09 15:38:05 [2025-04-09 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870510', 'tblTempUsageDetail_20' ) start [2025-04-09 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870510', 'tblTempUsageDetail_20' ) end [2025-04-09 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870510', 'tblTempVendorCDR_20' ) start [2025-04-09 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870510', 'tblTempVendorCDR_20' ) end [2025-04-09 15:38:21] Production.INFO: ProcessCDR(1,14870510,1,1,2) [2025-04-09 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870510', 'tblTempUsageDetail_20' ) start [2025-04-09 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870510', 'tblTempUsageDetail_20' ) end [2025-04-09 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:38:26] Production.INFO: ==16648== Releasing lock... [2025-04-09 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:38:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:39:06 [end_date_ymd] => 2025-04-09 15:39:06 [RateCDR] => 1 ) [2025-04-09 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:39:06' and `end` < '2025-04-09 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:39:20] Production.INFO: count ==4446 [2025-04-09 15:39:22] Production.ERROR: pbx CDR StartTime 2025-04-09 12:39:06 - End Time 2025-04-09 15:39:06 [2025-04-09 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870515', 'tblTempUsageDetail_20' ) start [2025-04-09 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870515', 'tblTempUsageDetail_20' ) end [2025-04-09 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870515', 'tblTempVendorCDR_20' ) start [2025-04-09 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870515', 'tblTempVendorCDR_20' ) end [2025-04-09 15:39:22] Production.INFO: ProcessCDR(1,14870515,1,1,2) [2025-04-09 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870515', 'tblTempUsageDetail_20' ) start [2025-04-09 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870515', 'tblTempUsageDetail_20' ) end [2025-04-09 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:39:27] Production.INFO: ==16719== Releasing lock... [2025-04-09 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:39:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:40:06 [end_date_ymd] => 2025-04-09 15:40:06 [RateCDR] => 1 ) [2025-04-09 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:40:06' and `end` < '2025-04-09 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:40:20] Production.INFO: count ==4436 [2025-04-09 15:40:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:40:06 - End Time 2025-04-09 15:40:06 [2025-04-09 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870521', 'tblTempUsageDetail_20' ) start [2025-04-09 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870521', 'tblTempUsageDetail_20' ) end [2025-04-09 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870521', 'tblTempVendorCDR_20' ) start [2025-04-09 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870521', 'tblTempVendorCDR_20' ) end [2025-04-09 15:40:21] Production.INFO: ProcessCDR(1,14870521,1,1,2) [2025-04-09 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870521', 'tblTempUsageDetail_20' ) start [2025-04-09 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870521', 'tblTempUsageDetail_20' ) end [2025-04-09 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:40:27] Production.INFO: ==16792== Releasing lock... [2025-04-09 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:40:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:41:05 [end_date_ymd] => 2025-04-09 15:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:41:05' and `end` < '2025-04-09 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-09 15:41:19] Production.INFO: count ==4466 [2025-04-09 15:41:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:41:05 - End Time 2025-04-09 15:41:05 [2025-04-09 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870526', 'tblTempUsageDetail_20' ) start [2025-04-09 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870526', 'tblTempUsageDetail_20' ) end [2025-04-09 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870526', 'tblTempVendorCDR_20' ) start [2025-04-09 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870526', 'tblTempVendorCDR_20' ) end [2025-04-09 15:41:20] Production.INFO: ProcessCDR(1,14870526,1,1,2) [2025-04-09 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870526', 'tblTempUsageDetail_20' ) start [2025-04-09 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870526', 'tblTempUsageDetail_20' ) end [2025-04-09 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:41:26] Production.INFO: ==16906== Releasing lock... [2025-04-09 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:41:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:42:05 [end_date_ymd] => 2025-04-09 15:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:42:05' and `end` < '2025-04-09 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-09 15:42:19] Production.INFO: count ==4468 [2025-04-09 15:42:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:42:05 - End Time 2025-04-09 15:42:05 [2025-04-09 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870531', 'tblTempUsageDetail_20' ) start [2025-04-09 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870531', 'tblTempUsageDetail_20' ) end [2025-04-09 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870531', 'tblTempVendorCDR_20' ) start [2025-04-09 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870531', 'tblTempVendorCDR_20' ) end [2025-04-09 15:42:21] Production.INFO: ProcessCDR(1,14870531,1,1,2) [2025-04-09 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870531', 'tblTempUsageDetail_20' ) start [2025-04-09 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870531', 'tblTempUsageDetail_20' ) end [2025-04-09 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:42:26] Production.INFO: ==16977== Releasing lock... [2025-04-09 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:42:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:43:05 [end_date_ymd] => 2025-04-09 15:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:43:05' and `end` < '2025-04-09 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-09 15:43:19] Production.INFO: count ==4475 [2025-04-09 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:43:05 - End Time 2025-04-09 15:43:05 [2025-04-09 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870536', 'tblTempUsageDetail_20' ) start [2025-04-09 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870536', 'tblTempUsageDetail_20' ) end [2025-04-09 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870536', 'tblTempVendorCDR_20' ) start [2025-04-09 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870536', 'tblTempVendorCDR_20' ) end [2025-04-09 15:43:21] Production.INFO: ProcessCDR(1,14870536,1,1,2) [2025-04-09 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870536', 'tblTempUsageDetail_20' ) start [2025-04-09 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870536', 'tblTempUsageDetail_20' ) end [2025-04-09 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:43:26] Production.INFO: ==17048== Releasing lock... [2025-04-09 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:43:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:44:05 [end_date_ymd] => 2025-04-09 15:44:05 [RateCDR] => 1 ) [2025-04-09 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:44:05' and `end` < '2025-04-09 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:44:19] Production.INFO: count ==4484 [2025-04-09 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:44:05 - End Time 2025-04-09 15:44:05 [2025-04-09 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870541', 'tblTempUsageDetail_20' ) start [2025-04-09 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870541', 'tblTempUsageDetail_20' ) end [2025-04-09 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870541', 'tblTempVendorCDR_20' ) start [2025-04-09 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870541', 'tblTempVendorCDR_20' ) end [2025-04-09 15:44:21] Production.INFO: ProcessCDR(1,14870541,1,1,2) [2025-04-09 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870541', 'tblTempUsageDetail_20' ) start [2025-04-09 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870541', 'tblTempUsageDetail_20' ) end [2025-04-09 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:44:26] Production.INFO: ==17117== Releasing lock... [2025-04-09 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:44:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:45:06 [end_date_ymd] => 2025-04-09 15:45:06 [RateCDR] => 1 ) [2025-04-09 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:45:06' and `end` < '2025-04-09 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:45:20] Production.INFO: count ==4501 [2025-04-09 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:45:06 - End Time 2025-04-09 15:45:06 [2025-04-09 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870546', 'tblTempUsageDetail_20' ) start [2025-04-09 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870546', 'tblTempUsageDetail_20' ) end [2025-04-09 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870546', 'tblTempVendorCDR_20' ) start [2025-04-09 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870546', 'tblTempVendorCDR_20' ) end [2025-04-09 15:45:21] Production.INFO: ProcessCDR(1,14870546,1,1,2) [2025-04-09 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870546', 'tblTempUsageDetail_20' ) start [2025-04-09 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870546', 'tblTempUsageDetail_20' ) end [2025-04-09 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:45:27] Production.INFO: ==17192== Releasing lock... [2025-04-09 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:45:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:46:05 [end_date_ymd] => 2025-04-09 15:46:05 [RateCDR] => 1 ) [2025-04-09 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:46:05' and `end` < '2025-04-09 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:46:19] Production.INFO: count ==4487 [2025-04-09 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:46:05 - End Time 2025-04-09 15:46:05 [2025-04-09 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870551', 'tblTempUsageDetail_20' ) start [2025-04-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870551', 'tblTempUsageDetail_20' ) end [2025-04-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870551', 'tblTempVendorCDR_20' ) start [2025-04-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870551', 'tblTempVendorCDR_20' ) end [2025-04-09 15:46:21] Production.INFO: ProcessCDR(1,14870551,1,1,2) [2025-04-09 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870551', 'tblTempUsageDetail_20' ) start [2025-04-09 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870551', 'tblTempUsageDetail_20' ) end [2025-04-09 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:46:26] Production.INFO: ==17263== Releasing lock... [2025-04-09 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:46:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:47:06 [end_date_ymd] => 2025-04-09 15:47:06 [RateCDR] => 1 ) [2025-04-09 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:47:06' and `end` < '2025-04-09 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:47:20] Production.INFO: count ==4474 [2025-04-09 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:47:06 - End Time 2025-04-09 15:47:06 [2025-04-09 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870556', 'tblTempUsageDetail_20' ) start [2025-04-09 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870556', 'tblTempUsageDetail_20' ) end [2025-04-09 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870556', 'tblTempVendorCDR_20' ) start [2025-04-09 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870556', 'tblTempVendorCDR_20' ) end [2025-04-09 15:47:22] Production.INFO: ProcessCDR(1,14870556,1,1,2) [2025-04-09 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870556', 'tblTempUsageDetail_20' ) start [2025-04-09 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870556', 'tblTempUsageDetail_20' ) end [2025-04-09 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:47:27] Production.INFO: ==17335== Releasing lock... [2025-04-09 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:47:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:48:05 [end_date_ymd] => 2025-04-09 15:48:05 [RateCDR] => 1 ) [2025-04-09 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:48:05' and `end` < '2025-04-09 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:48:19] Production.INFO: count ==4465 [2025-04-09 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:48:05 - End Time 2025-04-09 15:48:05 [2025-04-09 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870561', 'tblTempUsageDetail_20' ) start [2025-04-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870561', 'tblTempUsageDetail_20' ) end [2025-04-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870561', 'tblTempVendorCDR_20' ) start [2025-04-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870561', 'tblTempVendorCDR_20' ) end [2025-04-09 15:48:21] Production.INFO: ProcessCDR(1,14870561,1,1,2) [2025-04-09 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870561', 'tblTempUsageDetail_20' ) start [2025-04-09 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870561', 'tblTempUsageDetail_20' ) end [2025-04-09 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:48:26] Production.INFO: ==17406== Releasing lock... [2025-04-09 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:48:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:49:05 [end_date_ymd] => 2025-04-09 15:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:49:05' and `end` < '2025-04-09 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-09 15:49:20] Production.INFO: count ==4458 [2025-04-09 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:49:05 - End Time 2025-04-09 15:49:05 [2025-04-09 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870566', 'tblTempUsageDetail_20' ) start [2025-04-09 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870566', 'tblTempUsageDetail_20' ) end [2025-04-09 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870566', 'tblTempVendorCDR_20' ) start [2025-04-09 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870566', 'tblTempVendorCDR_20' ) end [2025-04-09 15:49:21] Production.INFO: ProcessCDR(1,14870566,1,1,2) [2025-04-09 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870566', 'tblTempUsageDetail_20' ) start [2025-04-09 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870566', 'tblTempUsageDetail_20' ) end [2025-04-09 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:49:26] Production.INFO: ==17478== Releasing lock... [2025-04-09 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:49:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:50:05 [end_date_ymd] => 2025-04-09 15:50:05 [RateCDR] => 1 ) [2025-04-09 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:50:05' and `end` < '2025-04-09 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:50:20] Production.INFO: count ==4498 [2025-04-09 15:50:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:50:05 - End Time 2025-04-09 15:50:05 [2025-04-09 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870572', 'tblTempUsageDetail_20' ) start [2025-04-09 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870572', 'tblTempUsageDetail_20' ) end [2025-04-09 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870572', 'tblTempVendorCDR_20' ) start [2025-04-09 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870572', 'tblTempVendorCDR_20' ) end [2025-04-09 15:50:21] Production.INFO: ProcessCDR(1,14870572,1,1,2) [2025-04-09 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870572', 'tblTempUsageDetail_20' ) start [2025-04-09 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870572', 'tblTempUsageDetail_20' ) end [2025-04-09 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:50:27] Production.INFO: ==17550== Releasing lock... [2025-04-09 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:50:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:51:05 [end_date_ymd] => 2025-04-09 15:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:51:05' and `end` < '2025-04-09 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-09 15:51:19] Production.INFO: count ==4558 [2025-04-09 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:51:05 - End Time 2025-04-09 15:51:05 [2025-04-09 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870577', 'tblTempUsageDetail_20' ) start [2025-04-09 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870577', 'tblTempUsageDetail_20' ) end [2025-04-09 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870577', 'tblTempVendorCDR_20' ) start [2025-04-09 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870577', 'tblTempVendorCDR_20' ) end [2025-04-09 15:51:21] Production.INFO: ProcessCDR(1,14870577,1,1,2) [2025-04-09 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870577', 'tblTempUsageDetail_20' ) start [2025-04-09 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870577', 'tblTempUsageDetail_20' ) end [2025-04-09 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:51:27] Production.INFO: ==17623== Releasing lock... [2025-04-09 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:51:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:52:05 [end_date_ymd] => 2025-04-09 15:52:05 [RateCDR] => 1 ) [2025-04-09 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:52:05' and `end` < '2025-04-09 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:52:19] Production.INFO: count ==4554 [2025-04-09 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:52:05 - End Time 2025-04-09 15:52:05 [2025-04-09 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870582', 'tblTempUsageDetail_20' ) start [2025-04-09 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870582', 'tblTempUsageDetail_20' ) end [2025-04-09 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870582', 'tblTempVendorCDR_20' ) start [2025-04-09 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870582', 'tblTempVendorCDR_20' ) end [2025-04-09 15:52:21] Production.INFO: ProcessCDR(1,14870582,1,1,2) [2025-04-09 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870582', 'tblTempUsageDetail_20' ) start [2025-04-09 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870582', 'tblTempUsageDetail_20' ) end [2025-04-09 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:52:26] Production.INFO: ==17692== Releasing lock... [2025-04-09 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:52:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:53:05 [end_date_ymd] => 2025-04-09 15:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:53:05' and `end` < '2025-04-09 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-09 15:53:19] Production.INFO: count ==4536 [2025-04-09 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:53:05 - End Time 2025-04-09 15:53:05 [2025-04-09 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870587', 'tblTempUsageDetail_20' ) start [2025-04-09 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870587', 'tblTempUsageDetail_20' ) end [2025-04-09 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870587', 'tblTempVendorCDR_20' ) start [2025-04-09 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870587', 'tblTempVendorCDR_20' ) end [2025-04-09 15:53:21] Production.INFO: ProcessCDR(1,14870587,1,1,2) [2025-04-09 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870587', 'tblTempUsageDetail_20' ) start [2025-04-09 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870587', 'tblTempUsageDetail_20' ) end [2025-04-09 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:53:26] Production.INFO: ==17771== Releasing lock... [2025-04-09 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:53:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:54:05 [end_date_ymd] => 2025-04-09 15:54:05 [RateCDR] => 1 ) [2025-04-09 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:54:05' and `end` < '2025-04-09 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:54:19] Production.INFO: count ==4530 [2025-04-09 15:54:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:54:05 - End Time 2025-04-09 15:54:05 [2025-04-09 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870592', 'tblTempUsageDetail_20' ) start [2025-04-09 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870592', 'tblTempUsageDetail_20' ) end [2025-04-09 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870592', 'tblTempVendorCDR_20' ) start [2025-04-09 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870592', 'tblTempVendorCDR_20' ) end [2025-04-09 15:54:21] Production.INFO: ProcessCDR(1,14870592,1,1,2) [2025-04-09 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870592', 'tblTempUsageDetail_20' ) start [2025-04-09 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870592', 'tblTempUsageDetail_20' ) end [2025-04-09 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:54:26] Production.INFO: ==17846== Releasing lock... [2025-04-09 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:54:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:55:05 [end_date_ymd] => 2025-04-09 15:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:55:05' and `end` < '2025-04-09 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-09 15:55:19] Production.INFO: count ==4539 [2025-04-09 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:55:05 - End Time 2025-04-09 15:55:05 [2025-04-09 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870597', 'tblTempUsageDetail_20' ) start [2025-04-09 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870597', 'tblTempUsageDetail_20' ) end [2025-04-09 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870597', 'tblTempVendorCDR_20' ) start [2025-04-09 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870597', 'tblTempVendorCDR_20' ) end [2025-04-09 15:55:21] Production.INFO: ProcessCDR(1,14870597,1,1,2) [2025-04-09 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870597', 'tblTempUsageDetail_20' ) start [2025-04-09 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870597', 'tblTempUsageDetail_20' ) end [2025-04-09 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:55:27] Production.INFO: ==17916== Releasing lock... [2025-04-09 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:55:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:56:05 [end_date_ymd] => 2025-04-09 15:56:05 [RateCDR] => 1 ) [2025-04-09 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:56:05' and `end` < '2025-04-09 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:56:19] Production.INFO: count ==4540 [2025-04-09 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:56:05 - End Time 2025-04-09 15:56:05 [2025-04-09 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870602', 'tblTempUsageDetail_20' ) start [2025-04-09 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870602', 'tblTempUsageDetail_20' ) end [2025-04-09 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870602', 'tblTempVendorCDR_20' ) start [2025-04-09 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870602', 'tblTempVendorCDR_20' ) end [2025-04-09 15:56:21] Production.INFO: ProcessCDR(1,14870602,1,1,2) [2025-04-09 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870602', 'tblTempUsageDetail_20' ) start [2025-04-09 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870602', 'tblTempUsageDetail_20' ) end [2025-04-09 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:56:26] Production.INFO: ==18026== Releasing lock... [2025-04-09 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:56:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:57:05 [end_date_ymd] => 2025-04-09 15:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:57:05' and `end` < '2025-04-09 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-09 15:57:19] Production.INFO: count ==4544 [2025-04-09 15:57:20] Production.ERROR: pbx CDR StartTime 2025-04-09 12:57:05 - End Time 2025-04-09 15:57:05 [2025-04-09 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870607', 'tblTempUsageDetail_20' ) start [2025-04-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870607', 'tblTempUsageDetail_20' ) end [2025-04-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870607', 'tblTempVendorCDR_20' ) start [2025-04-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870607', 'tblTempVendorCDR_20' ) end [2025-04-09 15:57:21] Production.INFO: ProcessCDR(1,14870607,1,1,2) [2025-04-09 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870607', 'tblTempUsageDetail_20' ) start [2025-04-09 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870607', 'tblTempUsageDetail_20' ) end [2025-04-09 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:57:26] Production.INFO: ==18096== Releasing lock... [2025-04-09 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:57:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:58:05 [end_date_ymd] => 2025-04-09 15:58:05 [RateCDR] => 1 ) [2025-04-09 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 12:58:05' and `end` < '2025-04-09 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 15:58:19] Production.INFO: count ==4507 [2025-04-09 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:58:05 - End Time 2025-04-09 15:58:05 [2025-04-09 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870612', 'tblTempUsageDetail_20' ) start [2025-04-09 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870612', 'tblTempUsageDetail_20' ) end [2025-04-09 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870612', 'tblTempVendorCDR_20' ) start [2025-04-09 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870612', 'tblTempVendorCDR_20' ) end [2025-04-09 15:58:21] Production.INFO: ProcessCDR(1,14870612,1,1,2) [2025-04-09 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870612', 'tblTempUsageDetail_20' ) start [2025-04-09 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870612', 'tblTempUsageDetail_20' ) end [2025-04-09 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:58:26] Production.INFO: ==18167== Releasing lock... [2025-04-09 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:58:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 12:59:05 [end_date_ymd] => 2025-04-09 15:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 12:59:05' and `end` < '2025-04-09 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-09 15:59:19] Production.INFO: count ==4503 [2025-04-09 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-09 12:59:05 - End Time 2025-04-09 15:59:05 [2025-04-09 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870617', 'tblTempUsageDetail_20' ) start [2025-04-09 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870617', 'tblTempUsageDetail_20' ) end [2025-04-09 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870617', 'tblTempVendorCDR_20' ) start [2025-04-09 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870617', 'tblTempVendorCDR_20' ) end [2025-04-09 15:59:21] Production.INFO: ProcessCDR(1,14870617,1,1,2) [2025-04-09 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870617', 'tblTempUsageDetail_20' ) start [2025-04-09 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870617', 'tblTempUsageDetail_20' ) end [2025-04-09 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 15:59:27] Production.INFO: ==18238== Releasing lock... [2025-04-09 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 15:59:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:00:05 [end_date_ymd] => 2025-04-09 16:00:05 [RateCDR] => 1 ) [2025-04-09 16: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 13:00:05' and `end` < '2025-04-09 16: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-09 16:00:19] Production.INFO: count ==4495 [2025-04-09 16:00:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:00:05 - End Time 2025-04-09 16:00:05 [2025-04-09 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870623', 'tblTempUsageDetail_20' ) start [2025-04-09 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870623', 'tblTempUsageDetail_20' ) end [2025-04-09 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870623', 'tblTempVendorCDR_20' ) start [2025-04-09 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870623', 'tblTempVendorCDR_20' ) end [2025-04-09 16:00:21] Production.INFO: ProcessCDR(1,14870623,1,1,2) [2025-04-09 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870623', 'tblTempUsageDetail_20' ) start [2025-04-09 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870623', 'tblTempUsageDetail_20' ) end [2025-04-09 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:00:26] Production.INFO: ==18315== Releasing lock... [2025-04-09 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:00:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:01:05 [end_date_ymd] => 2025-04-09 16:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:01:05' and `end` < '2025-04-09 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-09 16:01:19] Production.INFO: count ==4499 [2025-04-09 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:01:05 - End Time 2025-04-09 16:01:05 [2025-04-09 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870628', 'tblTempUsageDetail_20' ) start [2025-04-09 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870628', 'tblTempUsageDetail_20' ) end [2025-04-09 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870628', 'tblTempVendorCDR_20' ) start [2025-04-09 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870628', 'tblTempVendorCDR_20' ) end [2025-04-09 16:01:21] Production.INFO: ProcessCDR(1,14870628,1,1,2) [2025-04-09 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870628', 'tblTempUsageDetail_20' ) start [2025-04-09 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870628', 'tblTempUsageDetail_20' ) end [2025-04-09 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:01:27] Production.INFO: ==18400== Releasing lock... [2025-04-09 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:01:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:02:05 [end_date_ymd] => 2025-04-09 16:02:05 [RateCDR] => 1 ) [2025-04-09 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:02:05' and `end` < '2025-04-09 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:02:19] Production.INFO: count ==4518 [2025-04-09 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:02:05 - End Time 2025-04-09 16:02:05 [2025-04-09 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870633', 'tblTempUsageDetail_20' ) start [2025-04-09 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870633', 'tblTempUsageDetail_20' ) end [2025-04-09 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870633', 'tblTempVendorCDR_20' ) start [2025-04-09 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870633', 'tblTempVendorCDR_20' ) end [2025-04-09 16:02:21] Production.INFO: ProcessCDR(1,14870633,1,1,2) [2025-04-09 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870633', 'tblTempUsageDetail_20' ) start [2025-04-09 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870633', 'tblTempUsageDetail_20' ) end [2025-04-09 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:02:26] Production.INFO: ==18470== Releasing lock... [2025-04-09 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:02:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:03:05 [end_date_ymd] => 2025-04-09 16:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:03:05' and `end` < '2025-04-09 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-09 16:03:20] Production.INFO: count ==4518 [2025-04-09 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:03:05 - End Time 2025-04-09 16:03:05 [2025-04-09 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870638', 'tblTempUsageDetail_20' ) start [2025-04-09 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870638', 'tblTempUsageDetail_20' ) end [2025-04-09 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870638', 'tblTempVendorCDR_20' ) start [2025-04-09 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870638', 'tblTempVendorCDR_20' ) end [2025-04-09 16:03:21] Production.INFO: ProcessCDR(1,14870638,1,1,2) [2025-04-09 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870638', 'tblTempUsageDetail_20' ) start [2025-04-09 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870638', 'tblTempUsageDetail_20' ) end [2025-04-09 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:03:26] Production.INFO: ==18541== Releasing lock... [2025-04-09 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:04:05 [end_date_ymd] => 2025-04-09 16:04:05 [RateCDR] => 1 ) [2025-04-09 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:04:05' and `end` < '2025-04-09 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:04:19] Production.INFO: count ==4521 [2025-04-09 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:04:05 - End Time 2025-04-09 16:04:05 [2025-04-09 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870643', 'tblTempUsageDetail_20' ) start [2025-04-09 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870643', 'tblTempUsageDetail_20' ) end [2025-04-09 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870643', 'tblTempVendorCDR_20' ) start [2025-04-09 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870643', 'tblTempVendorCDR_20' ) end [2025-04-09 16:04:21] Production.INFO: ProcessCDR(1,14870643,1,1,2) [2025-04-09 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870643', 'tblTempUsageDetail_20' ) start [2025-04-09 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870643', 'tblTempUsageDetail_20' ) end [2025-04-09 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:04:26] Production.INFO: ==18613== Releasing lock... [2025-04-09 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:04:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:05:05 [end_date_ymd] => 2025-04-09 16:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:05:05' and `end` < '2025-04-09 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-09 16:05:19] Production.INFO: count ==4519 [2025-04-09 16:05:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:05:05 - End Time 2025-04-09 16:05:05 [2025-04-09 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870648', 'tblTempUsageDetail_20' ) start [2025-04-09 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870648', 'tblTempUsageDetail_20' ) end [2025-04-09 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870648', 'tblTempVendorCDR_20' ) start [2025-04-09 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870648', 'tblTempVendorCDR_20' ) end [2025-04-09 16:05:21] Production.INFO: ProcessCDR(1,14870648,1,1,2) [2025-04-09 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870648', 'tblTempUsageDetail_20' ) start [2025-04-09 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870648', 'tblTempUsageDetail_20' ) end [2025-04-09 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:05:26] Production.INFO: ==18682== Releasing lock... [2025-04-09 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:05:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:06:05 [end_date_ymd] => 2025-04-09 16:06:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:06:05' and `end` < '2025-04-09 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-09 16:06:19] Production.INFO: count ==4510 [2025-04-09 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:06:05 - End Time 2025-04-09 16:06:05 [2025-04-09 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870653', 'tblTempUsageDetail_20' ) start [2025-04-09 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870653', 'tblTempUsageDetail_20' ) end [2025-04-09 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870653', 'tblTempVendorCDR_20' ) start [2025-04-09 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870653', 'tblTempVendorCDR_20' ) end [2025-04-09 16:06:21] Production.INFO: ProcessCDR(1,14870653,1,1,2) [2025-04-09 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870653', 'tblTempUsageDetail_20' ) start [2025-04-09 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870653', 'tblTempUsageDetail_20' ) end [2025-04-09 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:06:26] Production.INFO: ==18754== Releasing lock... [2025-04-09 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:06:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:07:05 [end_date_ymd] => 2025-04-09 16:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:07:05' and `end` < '2025-04-09 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-09 16:07:19] Production.INFO: count ==4511 [2025-04-09 16:07:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:07:05 - End Time 2025-04-09 16:07:05 [2025-04-09 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870658', 'tblTempUsageDetail_20' ) start [2025-04-09 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870658', 'tblTempUsageDetail_20' ) end [2025-04-09 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870658', 'tblTempVendorCDR_20' ) start [2025-04-09 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870658', 'tblTempVendorCDR_20' ) end [2025-04-09 16:07:21] Production.INFO: ProcessCDR(1,14870658,1,1,2) [2025-04-09 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870658', 'tblTempUsageDetail_20' ) start [2025-04-09 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870658', 'tblTempUsageDetail_20' ) end [2025-04-09 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:07:25] Production.INFO: ==18828== Releasing lock... [2025-04-09 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:07:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:08:05 [end_date_ymd] => 2025-04-09 16:08:05 [RateCDR] => 1 ) [2025-04-09 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:08:05' and `end` < '2025-04-09 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-09 16:08:19] Production.INFO: count ==4511 [2025-04-09 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:08:05 - End Time 2025-04-09 16:08:05 [2025-04-09 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870663', 'tblTempUsageDetail_20' ) start [2025-04-09 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870663', 'tblTempUsageDetail_20' ) end [2025-04-09 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870663', 'tblTempVendorCDR_20' ) start [2025-04-09 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870663', 'tblTempVendorCDR_20' ) end [2025-04-09 16:08:21] Production.INFO: ProcessCDR(1,14870663,1,1,2) [2025-04-09 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870663', 'tblTempUsageDetail_20' ) start [2025-04-09 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870663', 'tblTempUsageDetail_20' ) end [2025-04-09 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:08:26] Production.INFO: ==18908== Releasing lock... [2025-04-09 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:08:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:09:05 [end_date_ymd] => 2025-04-09 16:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:09:05' and `end` < '2025-04-09 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-09 16:09:19] Production.INFO: count ==4495 [2025-04-09 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:09:05 - End Time 2025-04-09 16:09:05 [2025-04-09 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870668', 'tblTempUsageDetail_20' ) start [2025-04-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870668', 'tblTempUsageDetail_20' ) end [2025-04-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870668', 'tblTempVendorCDR_20' ) start [2025-04-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870668', 'tblTempVendorCDR_20' ) end [2025-04-09 16:09:21] Production.INFO: ProcessCDR(1,14870668,1,1,2) [2025-04-09 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870668', 'tblTempUsageDetail_20' ) start [2025-04-09 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870668', 'tblTempUsageDetail_20' ) end [2025-04-09 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:09:26] Production.INFO: ==18979== Releasing lock... [2025-04-09 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:09:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:10:07 [end_date_ymd] => 2025-04-09 16:10:07 [RateCDR] => 1 ) [2025-04-09 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:10:07' and `end` < '2025-04-09 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:10:21] Production.INFO: count ==4490 [2025-04-09 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-09 13:10:07 - End Time 2025-04-09 16:10:07 [2025-04-09 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870674', 'tblTempUsageDetail_20' ) start [2025-04-09 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870674', 'tblTempUsageDetail_20' ) end [2025-04-09 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870674', 'tblTempVendorCDR_20' ) start [2025-04-09 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870674', 'tblTempVendorCDR_20' ) end [2025-04-09 16:10:23] Production.INFO: ProcessCDR(1,14870674,1,1,2) [2025-04-09 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870674', 'tblTempUsageDetail_20' ) start [2025-04-09 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870674', 'tblTempUsageDetail_20' ) end [2025-04-09 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:10:28] Production.INFO: ==19052== Releasing lock... [2025-04-09 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:10:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:11:05 [end_date_ymd] => 2025-04-09 16:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:11:05' and `end` < '2025-04-09 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-09 16:11:19] Production.INFO: count ==4546 [2025-04-09 16:11:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:11:05 - End Time 2025-04-09 16:11:05 [2025-04-09 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870679', 'tblTempUsageDetail_20' ) start [2025-04-09 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870679', 'tblTempUsageDetail_20' ) end [2025-04-09 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870679', 'tblTempVendorCDR_20' ) start [2025-04-09 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870679', 'tblTempVendorCDR_20' ) end [2025-04-09 16:11:21] Production.INFO: ProcessCDR(1,14870679,1,1,2) [2025-04-09 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870679', 'tblTempUsageDetail_20' ) start [2025-04-09 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870679', 'tblTempUsageDetail_20' ) end [2025-04-09 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:11:26] Production.INFO: ==19129== Releasing lock... [2025-04-09 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:11:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:12:05 [end_date_ymd] => 2025-04-09 16:12:05 [RateCDR] => 1 ) [2025-04-09 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:12:05' and `end` < '2025-04-09 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:12:19] Production.INFO: count ==4560 [2025-04-09 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:12:05 - End Time 2025-04-09 16:12:05 [2025-04-09 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870684', 'tblTempUsageDetail_20' ) start [2025-04-09 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870684', 'tblTempUsageDetail_20' ) end [2025-04-09 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870684', 'tblTempVendorCDR_20' ) start [2025-04-09 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870684', 'tblTempVendorCDR_20' ) end [2025-04-09 16:12:21] Production.INFO: ProcessCDR(1,14870684,1,1,2) [2025-04-09 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870684', 'tblTempUsageDetail_20' ) start [2025-04-09 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870684', 'tblTempUsageDetail_20' ) end [2025-04-09 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:12:26] Production.INFO: ==19241== Releasing lock... [2025-04-09 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:12:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:13:04 [end_date_ymd] => 2025-04-09 16:13:04 [RateCDR] => 1 ) [2025-04-09 16:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:13:04' and `end` < '2025-04-09 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:13:18] Production.INFO: count ==4574 [2025-04-09 16:13:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:13:04 - End Time 2025-04-09 16:13:04 [2025-04-09 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870688', 'tblTempUsageDetail_20' ) start [2025-04-09 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870688', 'tblTempUsageDetail_20' ) end [2025-04-09 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870688', 'tblTempVendorCDR_20' ) start [2025-04-09 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870688', 'tblTempVendorCDR_20' ) end [2025-04-09 16:13:20] Production.INFO: ProcessCDR(1,14870688,1,1,2) [2025-04-09 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870688', 'tblTempUsageDetail_20' ) start [2025-04-09 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870688', 'tblTempUsageDetail_20' ) end [2025-04-09 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:13:25] Production.INFO: ==19316== Releasing lock... [2025-04-09 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:13:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:14:05 [end_date_ymd] => 2025-04-09 16:14:05 [RateCDR] => 1 ) [2025-04-09 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:14:05' and `end` < '2025-04-09 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:14:19] Production.INFO: count ==4581 [2025-04-09 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:14:05 - End Time 2025-04-09 16:14:05 [2025-04-09 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870694', 'tblTempUsageDetail_20' ) start [2025-04-09 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870694', 'tblTempUsageDetail_20' ) end [2025-04-09 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870694', 'tblTempVendorCDR_20' ) start [2025-04-09 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870694', 'tblTempVendorCDR_20' ) end [2025-04-09 16:14:21] Production.INFO: ProcessCDR(1,14870694,1,1,2) [2025-04-09 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870694', 'tblTempUsageDetail_20' ) start [2025-04-09 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870694', 'tblTempUsageDetail_20' ) end [2025-04-09 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:14:26] Production.INFO: ==19388== Releasing lock... [2025-04-09 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:14:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:15:05 [end_date_ymd] => 2025-04-09 16:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:15:05' and `end` < '2025-04-09 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-09 16:15:19] Production.INFO: count ==4567 [2025-04-09 16:15:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:15:05 - End Time 2025-04-09 16:15:05 [2025-04-09 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870699', 'tblTempUsageDetail_20' ) start [2025-04-09 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870699', 'tblTempUsageDetail_20' ) end [2025-04-09 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870699', 'tblTempVendorCDR_20' ) start [2025-04-09 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870699', 'tblTempVendorCDR_20' ) end [2025-04-09 16:15:21] Production.INFO: ProcessCDR(1,14870699,1,1,2) [2025-04-09 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870699', 'tblTempUsageDetail_20' ) start [2025-04-09 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870699', 'tblTempUsageDetail_20' ) end [2025-04-09 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:15:24] Production.INFO: ==19474== Releasing lock... [2025-04-09 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:15:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:16:05 [end_date_ymd] => 2025-04-09 16:16:05 [RateCDR] => 1 ) [2025-04-09 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:16:05' and `end` < '2025-04-09 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:16:20] Production.INFO: count ==4564 [2025-04-09 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:16:05 - End Time 2025-04-09 16:16:05 [2025-04-09 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870704', 'tblTempUsageDetail_20' ) start [2025-04-09 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870704', 'tblTempUsageDetail_20' ) end [2025-04-09 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870704', 'tblTempVendorCDR_20' ) start [2025-04-09 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870704', 'tblTempVendorCDR_20' ) end [2025-04-09 16:16:21] Production.INFO: ProcessCDR(1,14870704,1,1,2) [2025-04-09 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870704', 'tblTempUsageDetail_20' ) start [2025-04-09 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870704', 'tblTempUsageDetail_20' ) end [2025-04-09 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:16:26] Production.INFO: ==19544== Releasing lock... [2025-04-09 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:16:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:17:05 [end_date_ymd] => 2025-04-09 16:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:17:05' and `end` < '2025-04-09 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-09 16:17:18] Production.INFO: count ==4557 [2025-04-09 16:17:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:17:05 - End Time 2025-04-09 16:17:05 [2025-04-09 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870709', 'tblTempUsageDetail_20' ) start [2025-04-09 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870709', 'tblTempUsageDetail_20' ) end [2025-04-09 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870709', 'tblTempVendorCDR_20' ) start [2025-04-09 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870709', 'tblTempVendorCDR_20' ) end [2025-04-09 16:17:20] Production.INFO: ProcessCDR(1,14870709,1,1,2) [2025-04-09 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870709', 'tblTempUsageDetail_20' ) start [2025-04-09 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870709', 'tblTempUsageDetail_20' ) end [2025-04-09 16:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:17:25] Production.INFO: ==19615== Releasing lock... [2025-04-09 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:17:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:18:05 [end_date_ymd] => 2025-04-09 16:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:18:05' and `end` < '2025-04-09 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-09 16:18:19] Production.INFO: count ==4563 [2025-04-09 16:18:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:18:05 - End Time 2025-04-09 16:18:05 [2025-04-09 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870714', 'tblTempUsageDetail_20' ) start [2025-04-09 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870714', 'tblTempUsageDetail_20' ) end [2025-04-09 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870714', 'tblTempVendorCDR_20' ) start [2025-04-09 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870714', 'tblTempVendorCDR_20' ) end [2025-04-09 16:18:21] Production.INFO: ProcessCDR(1,14870714,1,1,2) [2025-04-09 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870714', 'tblTempUsageDetail_20' ) start [2025-04-09 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870714', 'tblTempUsageDetail_20' ) end [2025-04-09 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:18:25] Production.INFO: ==19687== Releasing lock... [2025-04-09 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:18:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:19:05 [end_date_ymd] => 2025-04-09 16:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:19:05' and `end` < '2025-04-09 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-09 16:19:19] Production.INFO: count ==4553 [2025-04-09 16:19:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:19:05 - End Time 2025-04-09 16:19:05 [2025-04-09 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870719', 'tblTempUsageDetail_20' ) start [2025-04-09 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870719', 'tblTempUsageDetail_20' ) end [2025-04-09 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870719', 'tblTempVendorCDR_20' ) start [2025-04-09 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870719', 'tblTempVendorCDR_20' ) end [2025-04-09 16:19:20] Production.INFO: ProcessCDR(1,14870719,1,1,2) [2025-04-09 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870719', 'tblTempUsageDetail_20' ) start [2025-04-09 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870719', 'tblTempUsageDetail_20' ) end [2025-04-09 16:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:19:25] Production.INFO: ==19760== Releasing lock... [2025-04-09 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:19:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:20:05 [end_date_ymd] => 2025-04-09 16:20:05 [RateCDR] => 1 ) [2025-04-09 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:20:05' and `end` < '2025-04-09 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:20:19] Production.INFO: count ==4526 [2025-04-09 16:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:20:05 - End Time 2025-04-09 16:20:05 [2025-04-09 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870724', 'tblTempUsageDetail_20' ) start [2025-04-09 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870724', 'tblTempUsageDetail_20' ) end [2025-04-09 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870724', 'tblTempVendorCDR_20' ) start [2025-04-09 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870724', 'tblTempVendorCDR_20' ) end [2025-04-09 16:20:21] Production.INFO: ProcessCDR(1,14870724,1,1,2) [2025-04-09 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870724', 'tblTempUsageDetail_20' ) start [2025-04-09 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870724', 'tblTempUsageDetail_20' ) end [2025-04-09 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:20:26] Production.INFO: ==19834== Releasing lock... [2025-04-09 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:20:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:21:04 [end_date_ymd] => 2025-04-09 16:21:04 [RateCDR] => 1 ) [2025-04-09 16: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-09 13:21:04' and `end` < '2025-04-09 16: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-09 16:21:18] Production.INFO: count ==4560 [2025-04-09 16:21:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:21:04 - End Time 2025-04-09 16:21:04 [2025-04-09 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870730', 'tblTempUsageDetail_20' ) start [2025-04-09 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870730', 'tblTempUsageDetail_20' ) end [2025-04-09 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870730', 'tblTempVendorCDR_20' ) start [2025-04-09 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870730', 'tblTempVendorCDR_20' ) end [2025-04-09 16:21:20] Production.INFO: ProcessCDR(1,14870730,1,1,2) [2025-04-09 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870730', 'tblTempUsageDetail_20' ) start [2025-04-09 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870730', 'tblTempUsageDetail_20' ) end [2025-04-09 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:21:25] Production.INFO: ==19908== Releasing lock... [2025-04-09 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:21:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:22:05 [end_date_ymd] => 2025-04-09 16:22:05 [RateCDR] => 1 ) [2025-04-09 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:22:05' and `end` < '2025-04-09 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:22:19] Production.INFO: count ==4553 [2025-04-09 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:22:05 - End Time 2025-04-09 16:22:05 [2025-04-09 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870735', 'tblTempUsageDetail_20' ) start [2025-04-09 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870735', 'tblTempUsageDetail_20' ) end [2025-04-09 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870735', 'tblTempVendorCDR_20' ) start [2025-04-09 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870735', 'tblTempVendorCDR_20' ) end [2025-04-09 16:22:21] Production.INFO: ProcessCDR(1,14870735,1,1,2) [2025-04-09 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870735', 'tblTempUsageDetail_20' ) start [2025-04-09 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870735', 'tblTempUsageDetail_20' ) end [2025-04-09 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:22:26] Production.INFO: ==19978== Releasing lock... [2025-04-09 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:22:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:23:04 [end_date_ymd] => 2025-04-09 16:23:04 [RateCDR] => 1 ) [2025-04-09 16: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-09 13:23:04' and `end` < '2025-04-09 16: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-09 16:23:18] Production.INFO: count ==4556 [2025-04-09 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-09 13:23:04 - End Time 2025-04-09 16:23:04 [2025-04-09 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870740', 'tblTempUsageDetail_20' ) start [2025-04-09 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870740', 'tblTempUsageDetail_20' ) end [2025-04-09 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870740', 'tblTempVendorCDR_20' ) start [2025-04-09 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870740', 'tblTempVendorCDR_20' ) end [2025-04-09 16:23:20] Production.INFO: ProcessCDR(1,14870740,1,1,2) [2025-04-09 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870740', 'tblTempUsageDetail_20' ) start [2025-04-09 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870740', 'tblTempUsageDetail_20' ) end [2025-04-09 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:23:25] Production.INFO: ==20054== Releasing lock... [2025-04-09 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:23:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:24:05 [end_date_ymd] => 2025-04-09 16:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:24:05' and `end` < '2025-04-09 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-09 16:24:19] Production.INFO: count ==4550 [2025-04-09 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:24:05 - End Time 2025-04-09 16:24:05 [2025-04-09 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870745', 'tblTempUsageDetail_20' ) start [2025-04-09 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870745', 'tblTempUsageDetail_20' ) end [2025-04-09 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870745', 'tblTempVendorCDR_20' ) start [2025-04-09 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870745', 'tblTempVendorCDR_20' ) end [2025-04-09 16:24:21] Production.INFO: ProcessCDR(1,14870745,1,1,2) [2025-04-09 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870745', 'tblTempUsageDetail_20' ) start [2025-04-09 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870745', 'tblTempUsageDetail_20' ) end [2025-04-09 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:24:26] Production.INFO: ==20126== Releasing lock... [2025-04-09 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:24:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:25:04 [end_date_ymd] => 2025-04-09 16:25:04 [RateCDR] => 1 ) [2025-04-09 16: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-04-09 13:25:04' and `end` < '2025-04-09 16: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-04-09 16:25:18] Production.INFO: count ==4546 [2025-04-09 16:25:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:25:04 - End Time 2025-04-09 16:25:04 [2025-04-09 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870750', 'tblTempUsageDetail_20' ) start [2025-04-09 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870750', 'tblTempUsageDetail_20' ) end [2025-04-09 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870750', 'tblTempVendorCDR_20' ) start [2025-04-09 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870750', 'tblTempVendorCDR_20' ) end [2025-04-09 16:25:20] Production.INFO: ProcessCDR(1,14870750,1,1,2) [2025-04-09 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870750', 'tblTempUsageDetail_20' ) start [2025-04-09 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870750', 'tblTempUsageDetail_20' ) end [2025-04-09 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:25:25] Production.INFO: ==20194== Releasing lock... [2025-04-09 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:25:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:26:05 [end_date_ymd] => 2025-04-09 16:26:05 [RateCDR] => 1 ) [2025-04-09 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:26:05' and `end` < '2025-04-09 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:26:19] Production.INFO: count ==4546 [2025-04-09 16:26:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:26:05 - End Time 2025-04-09 16:26:05 [2025-04-09 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870755', 'tblTempUsageDetail_20' ) start [2025-04-09 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870755', 'tblTempUsageDetail_20' ) end [2025-04-09 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870755', 'tblTempVendorCDR_20' ) start [2025-04-09 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870755', 'tblTempVendorCDR_20' ) end [2025-04-09 16:26:21] Production.INFO: ProcessCDR(1,14870755,1,1,2) [2025-04-09 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870755', 'tblTempUsageDetail_20' ) start [2025-04-09 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870755', 'tblTempUsageDetail_20' ) end [2025-04-09 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:26:26] Production.INFO: ==20265== Releasing lock... [2025-04-09 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:26:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:27:06 [end_date_ymd] => 2025-04-09 16:27:06 [RateCDR] => 1 ) [2025-04-09 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-09 13:27:06' and `end` < '2025-04-09 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-09 16:27:20] Production.INFO: count ==4551 [2025-04-09 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:27:06 - End Time 2025-04-09 16:27:06 [2025-04-09 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870760', 'tblTempUsageDetail_20' ) start [2025-04-09 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870760', 'tblTempUsageDetail_20' ) end [2025-04-09 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870760', 'tblTempVendorCDR_20' ) start [2025-04-09 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870760', 'tblTempVendorCDR_20' ) end [2025-04-09 16:27:22] Production.INFO: ProcessCDR(1,14870760,1,1,2) [2025-04-09 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870760', 'tblTempUsageDetail_20' ) start [2025-04-09 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870760', 'tblTempUsageDetail_20' ) end [2025-04-09 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:27:27] Production.INFO: ==20377== Releasing lock... [2025-04-09 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:27:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:28:05 [end_date_ymd] => 2025-04-09 16:28:05 [RateCDR] => 1 ) [2025-04-09 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:28:05' and `end` < '2025-04-09 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:28:20] Production.INFO: count ==4552 [2025-04-09 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:28:05 - End Time 2025-04-09 16:28:05 [2025-04-09 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870765', 'tblTempUsageDetail_20' ) start [2025-04-09 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870765', 'tblTempUsageDetail_20' ) end [2025-04-09 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870765', 'tblTempVendorCDR_20' ) start [2025-04-09 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870765', 'tblTempVendorCDR_20' ) end [2025-04-09 16:28:22] Production.INFO: ProcessCDR(1,14870765,1,1,2) [2025-04-09 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870765', 'tblTempUsageDetail_20' ) start [2025-04-09 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870765', 'tblTempUsageDetail_20' ) end [2025-04-09 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:28:27] Production.INFO: ==20450== Releasing lock... [2025-04-09 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:28:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:29:05 [end_date_ymd] => 2025-04-09 16:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:29:05' and `end` < '2025-04-09 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-09 16:29:19] Production.INFO: count ==4544 [2025-04-09 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:29:05 - End Time 2025-04-09 16:29:05 [2025-04-09 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870770', 'tblTempUsageDetail_20' ) start [2025-04-09 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870770', 'tblTempUsageDetail_20' ) end [2025-04-09 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870770', 'tblTempVendorCDR_20' ) start [2025-04-09 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870770', 'tblTempVendorCDR_20' ) end [2025-04-09 16:29:21] Production.INFO: ProcessCDR(1,14870770,1,1,2) [2025-04-09 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870770', 'tblTempUsageDetail_20' ) start [2025-04-09 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870770', 'tblTempUsageDetail_20' ) end [2025-04-09 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:29:26] Production.INFO: ==20522== Releasing lock... [2025-04-09 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:29:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:30:05 [end_date_ymd] => 2025-04-09 16:30:05 [RateCDR] => 1 ) [2025-04-09 16: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-09 13:30:05' and `end` < '2025-04-09 16: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-09 16:30:19] Production.INFO: count ==4539 [2025-04-09 16:30:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:30:05 - End Time 2025-04-09 16:30:05 [2025-04-09 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870776', 'tblTempUsageDetail_20' ) start [2025-04-09 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870776', 'tblTempUsageDetail_20' ) end [2025-04-09 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870776', 'tblTempVendorCDR_20' ) start [2025-04-09 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870776', 'tblTempVendorCDR_20' ) end [2025-04-09 16:30:21] Production.INFO: ProcessCDR(1,14870776,1,1,2) [2025-04-09 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870776', 'tblTempUsageDetail_20' ) start [2025-04-09 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870776', 'tblTempUsageDetail_20' ) end [2025-04-09 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:30:27] Production.INFO: ==20595== Releasing lock... [2025-04-09 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:30:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:31:05 [end_date_ymd] => 2025-04-09 16:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:31:05' and `end` < '2025-04-09 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-09 16:31:19] Production.INFO: count ==4557 [2025-04-09 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:31:05 - End Time 2025-04-09 16:31:05 [2025-04-09 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870781', 'tblTempUsageDetail_20' ) start [2025-04-09 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870781', 'tblTempUsageDetail_20' ) end [2025-04-09 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870781', 'tblTempVendorCDR_20' ) start [2025-04-09 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870781', 'tblTempVendorCDR_20' ) end [2025-04-09 16:31:21] Production.INFO: ProcessCDR(1,14870781,1,1,2) [2025-04-09 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870781', 'tblTempUsageDetail_20' ) start [2025-04-09 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870781', 'tblTempUsageDetail_20' ) end [2025-04-09 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:31:26] Production.INFO: ==20667== Releasing lock... [2025-04-09 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:31:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:32:05 [end_date_ymd] => 2025-04-09 16:32:05 [RateCDR] => 1 ) [2025-04-09 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:32:05' and `end` < '2025-04-09 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:32:19] Production.INFO: count ==4548 [2025-04-09 16:32:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:32:05 - End Time 2025-04-09 16:32:05 [2025-04-09 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870786', 'tblTempUsageDetail_20' ) start [2025-04-09 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870786', 'tblTempUsageDetail_20' ) end [2025-04-09 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870786', 'tblTempVendorCDR_20' ) start [2025-04-09 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870786', 'tblTempVendorCDR_20' ) end [2025-04-09 16:32:21] Production.INFO: ProcessCDR(1,14870786,1,1,2) [2025-04-09 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870786', 'tblTempUsageDetail_20' ) start [2025-04-09 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870786', 'tblTempUsageDetail_20' ) end [2025-04-09 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:32:26] Production.INFO: ==20744== Releasing lock... [2025-04-09 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:32:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:33:06 [end_date_ymd] => 2025-04-09 16:33:06 [RateCDR] => 1 ) [2025-04-09 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:33:06' and `end` < '2025-04-09 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:33:19] Production.INFO: count ==4546 [2025-04-09 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:33:06 - End Time 2025-04-09 16:33:06 [2025-04-09 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870791', 'tblTempUsageDetail_20' ) start [2025-04-09 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870791', 'tblTempUsageDetail_20' ) end [2025-04-09 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870791', 'tblTempVendorCDR_20' ) start [2025-04-09 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870791', 'tblTempVendorCDR_20' ) end [2025-04-09 16:33:21] Production.INFO: ProcessCDR(1,14870791,1,1,2) [2025-04-09 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870791', 'tblTempUsageDetail_20' ) start [2025-04-09 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870791', 'tblTempUsageDetail_20' ) end [2025-04-09 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:33:26] Production.INFO: ==20851== Releasing lock... [2025-04-09 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:33:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:34:05 [end_date_ymd] => 2025-04-09 16:34:05 [RateCDR] => 1 ) [2025-04-09 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:34:05' and `end` < '2025-04-09 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:34:19] Production.INFO: count ==4539 [2025-04-09 16:34:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:34:05 - End Time 2025-04-09 16:34:05 [2025-04-09 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870796', 'tblTempUsageDetail_20' ) start [2025-04-09 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870796', 'tblTempUsageDetail_20' ) end [2025-04-09 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870796', 'tblTempVendorCDR_20' ) start [2025-04-09 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870796', 'tblTempVendorCDR_20' ) end [2025-04-09 16:34:21] Production.INFO: ProcessCDR(1,14870796,1,1,2) [2025-04-09 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870796', 'tblTempUsageDetail_20' ) start [2025-04-09 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870796', 'tblTempUsageDetail_20' ) end [2025-04-09 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:34:26] Production.INFO: ==20922== Releasing lock... [2025-04-09 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:34:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:35:05 [end_date_ymd] => 2025-04-09 16:35:05 [RateCDR] => 1 ) [2025-04-09 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:35:05' and `end` < '2025-04-09 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:35:18] Production.INFO: count ==4532 [2025-04-09 16:35:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:35:05 - End Time 2025-04-09 16:35:05 [2025-04-09 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870801', 'tblTempUsageDetail_20' ) start [2025-04-09 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870801', 'tblTempUsageDetail_20' ) end [2025-04-09 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870801', 'tblTempVendorCDR_20' ) start [2025-04-09 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870801', 'tblTempVendorCDR_20' ) end [2025-04-09 16:35:20] Production.INFO: ProcessCDR(1,14870801,1,1,2) [2025-04-09 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870801', 'tblTempUsageDetail_20' ) start [2025-04-09 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870801', 'tblTempUsageDetail_20' ) end [2025-04-09 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:35:26] Production.INFO: ==20995== Releasing lock... [2025-04-09 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:35:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:36:05 [end_date_ymd] => 2025-04-09 16:36:05 [RateCDR] => 1 ) [2025-04-09 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:36:05' and `end` < '2025-04-09 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:36:19] Production.INFO: count ==4540 [2025-04-09 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:36:05 - End Time 2025-04-09 16:36:05 [2025-04-09 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870806', 'tblTempUsageDetail_20' ) start [2025-04-09 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870806', 'tblTempUsageDetail_20' ) end [2025-04-09 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870806', 'tblTempVendorCDR_20' ) start [2025-04-09 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870806', 'tblTempVendorCDR_20' ) end [2025-04-09 16:36:21] Production.INFO: ProcessCDR(1,14870806,1,1,2) [2025-04-09 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870806', 'tblTempUsageDetail_20' ) start [2025-04-09 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870806', 'tblTempUsageDetail_20' ) end [2025-04-09 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:36:26] Production.INFO: ==21065== Releasing lock... [2025-04-09 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:36:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:37:05 [end_date_ymd] => 2025-04-09 16:37:05 [RateCDR] => 1 ) [2025-04-09 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:37:05' and `end` < '2025-04-09 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:37:19] Production.INFO: count ==4539 [2025-04-09 16:37:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:37:05 - End Time 2025-04-09 16:37:05 [2025-04-09 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870811', 'tblTempUsageDetail_20' ) start [2025-04-09 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870811', 'tblTempUsageDetail_20' ) end [2025-04-09 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870811', 'tblTempVendorCDR_20' ) start [2025-04-09 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870811', 'tblTempVendorCDR_20' ) end [2025-04-09 16:37:21] Production.INFO: ProcessCDR(1,14870811,1,1,2) [2025-04-09 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870811', 'tblTempUsageDetail_20' ) start [2025-04-09 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870811', 'tblTempUsageDetail_20' ) end [2025-04-09 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:37:26] Production.INFO: ==21138== Releasing lock... [2025-04-09 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:37:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:38:05 [end_date_ymd] => 2025-04-09 16:38:05 [RateCDR] => 1 ) [2025-04-09 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:38:05' and `end` < '2025-04-09 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:38:19] Production.INFO: count ==4539 [2025-04-09 16:38:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:38:05 - End Time 2025-04-09 16:38:05 [2025-04-09 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870816', 'tblTempUsageDetail_20' ) start [2025-04-09 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870816', 'tblTempUsageDetail_20' ) end [2025-04-09 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870816', 'tblTempVendorCDR_20' ) start [2025-04-09 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870816', 'tblTempVendorCDR_20' ) end [2025-04-09 16:38:20] Production.INFO: ProcessCDR(1,14870816,1,1,2) [2025-04-09 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870816', 'tblTempUsageDetail_20' ) start [2025-04-09 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870816', 'tblTempUsageDetail_20' ) end [2025-04-09 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:38:26] Production.INFO: ==21209== Releasing lock... [2025-04-09 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:38:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:39:05 [end_date_ymd] => 2025-04-09 16:39:05 [RateCDR] => 1 ) [2025-04-09 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:39:05' and `end` < '2025-04-09 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:39:19] Production.INFO: count ==4529 [2025-04-09 16:39:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:39:05 - End Time 2025-04-09 16:39:05 [2025-04-09 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870821', 'tblTempUsageDetail_20' ) start [2025-04-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870821', 'tblTempUsageDetail_20' ) end [2025-04-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870821', 'tblTempVendorCDR_20' ) start [2025-04-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870821', 'tblTempVendorCDR_20' ) end [2025-04-09 16:39:20] Production.INFO: ProcessCDR(1,14870821,1,1,2) [2025-04-09 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870821', 'tblTempUsageDetail_20' ) start [2025-04-09 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870821', 'tblTempUsageDetail_20' ) end [2025-04-09 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:39:26] Production.INFO: ==21279== Releasing lock... [2025-04-09 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:39:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:40:06 [end_date_ymd] => 2025-04-09 16:40:06 [RateCDR] => 1 ) [2025-04-09 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:40:06' and `end` < '2025-04-09 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:40:20] Production.INFO: count ==4522 [2025-04-09 16:40:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:40:06 - End Time 2025-04-09 16:40:06 [2025-04-09 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870826', 'tblTempUsageDetail_20' ) start [2025-04-09 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870826', 'tblTempUsageDetail_20' ) end [2025-04-09 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870826', 'tblTempVendorCDR_20' ) start [2025-04-09 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870826', 'tblTempVendorCDR_20' ) end [2025-04-09 16:40:21] Production.INFO: ProcessCDR(1,14870826,1,1,2) [2025-04-09 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870826', 'tblTempUsageDetail_20' ) start [2025-04-09 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870826', 'tblTempUsageDetail_20' ) end [2025-04-09 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:40:27] Production.INFO: ==21352== Releasing lock... [2025-04-09 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:40:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:41:05 [end_date_ymd] => 2025-04-09 16:41:05 [RateCDR] => 1 ) [2025-04-09 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:41:05' and `end` < '2025-04-09 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:41:19] Production.INFO: count ==4583 [2025-04-09 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:41:05 - End Time 2025-04-09 16:41:05 [2025-04-09 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870832', 'tblTempUsageDetail_20' ) start [2025-04-09 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870832', 'tblTempUsageDetail_20' ) end [2025-04-09 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870832', 'tblTempVendorCDR_20' ) start [2025-04-09 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870832', 'tblTempVendorCDR_20' ) end [2025-04-09 16:41:21] Production.INFO: ProcessCDR(1,14870832,1,1,2) [2025-04-09 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870832', 'tblTempUsageDetail_20' ) start [2025-04-09 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870832', 'tblTempUsageDetail_20' ) end [2025-04-09 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:41:26] Production.INFO: ==21426== Releasing lock... [2025-04-09 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:41:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:42:05 [end_date_ymd] => 2025-04-09 16:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:42:05' and `end` < '2025-04-09 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-09 16:42:19] Production.INFO: count ==4591 [2025-04-09 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:42:05 - End Time 2025-04-09 16:42:05 [2025-04-09 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870837', 'tblTempUsageDetail_20' ) start [2025-04-09 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870837', 'tblTempUsageDetail_20' ) end [2025-04-09 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870837', 'tblTempVendorCDR_20' ) start [2025-04-09 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870837', 'tblTempVendorCDR_20' ) end [2025-04-09 16:42:21] Production.INFO: ProcessCDR(1,14870837,1,1,2) [2025-04-09 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870837', 'tblTempUsageDetail_20' ) start [2025-04-09 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870837', 'tblTempUsageDetail_20' ) end [2025-04-09 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:42:26] Production.INFO: ==21535== Releasing lock... [2025-04-09 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:42:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:43:05 [end_date_ymd] => 2025-04-09 16:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:43:05' and `end` < '2025-04-09 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-09 16:43:19] Production.INFO: count ==4556 [2025-04-09 16:43:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:43:05 - End Time 2025-04-09 16:43:05 [2025-04-09 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870842', 'tblTempUsageDetail_20' ) start [2025-04-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870842', 'tblTempUsageDetail_20' ) end [2025-04-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870842', 'tblTempVendorCDR_20' ) start [2025-04-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870842', 'tblTempVendorCDR_20' ) end [2025-04-09 16:43:20] Production.INFO: ProcessCDR(1,14870842,1,1,2) [2025-04-09 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870842', 'tblTempUsageDetail_20' ) start [2025-04-09 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870842', 'tblTempUsageDetail_20' ) end [2025-04-09 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:43:26] Production.INFO: ==21606== Releasing lock... [2025-04-09 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:43:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:44:06 [end_date_ymd] => 2025-04-09 16:44:06 [RateCDR] => 1 ) [2025-04-09 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-09 13:44:06' and `end` < '2025-04-09 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-09 16:44:20] Production.INFO: count ==4549 [2025-04-09 16:44:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:44:06 - End Time 2025-04-09 16:44:06 [2025-04-09 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870847', 'tblTempUsageDetail_20' ) start [2025-04-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870847', 'tblTempUsageDetail_20' ) end [2025-04-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870847', 'tblTempVendorCDR_20' ) start [2025-04-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870847', 'tblTempVendorCDR_20' ) end [2025-04-09 16:44:21] Production.INFO: ProcessCDR(1,14870847,1,1,2) [2025-04-09 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870847', 'tblTempUsageDetail_20' ) start [2025-04-09 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870847', 'tblTempUsageDetail_20' ) end [2025-04-09 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:44:27] Production.INFO: ==21680== Releasing lock... [2025-04-09 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:44:27] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:45:05 [end_date_ymd] => 2025-04-09 16:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:45:05' and `end` < '2025-04-09 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-09 16:45:18] Production.INFO: count ==4558 [2025-04-09 16:45:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:45:05 - End Time 2025-04-09 16:45:05 [2025-04-09 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870852', 'tblTempUsageDetail_20' ) start [2025-04-09 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870852', 'tblTempUsageDetail_20' ) end [2025-04-09 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870852', 'tblTempVendorCDR_20' ) start [2025-04-09 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870852', 'tblTempVendorCDR_20' ) end [2025-04-09 16:45:20] Production.INFO: ProcessCDR(1,14870852,1,1,2) [2025-04-09 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870852', 'tblTempUsageDetail_20' ) start [2025-04-09 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870852', 'tblTempUsageDetail_20' ) end [2025-04-09 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:45:26] Production.INFO: ==21751== Releasing lock... [2025-04-09 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:45:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:46:05 [end_date_ymd] => 2025-04-09 16:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:46:05' and `end` < '2025-04-09 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-09 16:46:19] Production.INFO: count ==4560 [2025-04-09 16:46:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:46:05 - End Time 2025-04-09 16:46:05 [2025-04-09 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870857', 'tblTempUsageDetail_20' ) start [2025-04-09 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870857', 'tblTempUsageDetail_20' ) end [2025-04-09 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870857', 'tblTempVendorCDR_20' ) start [2025-04-09 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870857', 'tblTempVendorCDR_20' ) end [2025-04-09 16:46:21] Production.INFO: ProcessCDR(1,14870857,1,1,2) [2025-04-09 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870857', 'tblTempUsageDetail_20' ) start [2025-04-09 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870857', 'tblTempUsageDetail_20' ) end [2025-04-09 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:46:26] Production.INFO: ==21825== Releasing lock... [2025-04-09 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:46:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-09 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:47:04 [end_date_ymd] => 2025-04-09 16:47:04 [RateCDR] => 1 ) [2025-04-09 16: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-09 13:47:04' and `end` < '2025-04-09 16: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-09 16:47:18] Production.INFO: count ==4559 [2025-04-09 16:47:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:47:04 - End Time 2025-04-09 16:47:04 [2025-04-09 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870862', 'tblTempUsageDetail_20' ) start [2025-04-09 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870862', 'tblTempUsageDetail_20' ) end [2025-04-09 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870862', 'tblTempVendorCDR_20' ) start [2025-04-09 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870862', 'tblTempVendorCDR_20' ) end [2025-04-09 16:47:20] Production.INFO: ProcessCDR(1,14870862,1,1,2) [2025-04-09 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870862', 'tblTempUsageDetail_20' ) start [2025-04-09 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870862', 'tblTempUsageDetail_20' ) end [2025-04-09 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:47:25] Production.INFO: ==21904== Releasing lock... [2025-04-09 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:47:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:48:05 [end_date_ymd] => 2025-04-09 16:48:05 [RateCDR] => 1 ) [2025-04-09 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:48:05' and `end` < '2025-04-09 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:48:19] Production.INFO: count ==4553 [2025-04-09 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:48:05 - End Time 2025-04-09 16:48:05 [2025-04-09 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870867', 'tblTempUsageDetail_20' ) start [2025-04-09 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870867', 'tblTempUsageDetail_20' ) end [2025-04-09 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870867', 'tblTempVendorCDR_20' ) start [2025-04-09 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870867', 'tblTempVendorCDR_20' ) end [2025-04-09 16:48:21] Production.INFO: ProcessCDR(1,14870867,1,1,2) [2025-04-09 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870867', 'tblTempUsageDetail_20' ) start [2025-04-09 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870867', 'tblTempUsageDetail_20' ) end [2025-04-09 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:48:25] Production.INFO: ==21983== Releasing lock... [2025-04-09 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:48:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:49:05 [end_date_ymd] => 2025-04-09 16:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:49:05' and `end` < '2025-04-09 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-09 16:49:19] Production.INFO: count ==4532 [2025-04-09 16:49:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:49:05 - End Time 2025-04-09 16:49:05 [2025-04-09 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870872', 'tblTempUsageDetail_20' ) start [2025-04-09 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870872', 'tblTempUsageDetail_20' ) end [2025-04-09 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870872', 'tblTempVendorCDR_20' ) start [2025-04-09 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870872', 'tblTempVendorCDR_20' ) end [2025-04-09 16:49:21] Production.INFO: ProcessCDR(1,14870872,1,1,2) [2025-04-09 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870872', 'tblTempUsageDetail_20' ) start [2025-04-09 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870872', 'tblTempUsageDetail_20' ) end [2025-04-09 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:49:26] Production.INFO: ==22064== Releasing lock... [2025-04-09 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:49:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:50:06 [end_date_ymd] => 2025-04-09 16:50:06 [RateCDR] => 1 ) [2025-04-09 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:50:06' and `end` < '2025-04-09 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:50:20] Production.INFO: count ==4528 [2025-04-09 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-09 13:50:06 - End Time 2025-04-09 16:50:06 [2025-04-09 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870878', 'tblTempUsageDetail_20' ) start [2025-04-09 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870878', 'tblTempUsageDetail_20' ) end [2025-04-09 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870878', 'tblTempVendorCDR_20' ) start [2025-04-09 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870878', 'tblTempVendorCDR_20' ) end [2025-04-09 16:50:22] Production.INFO: ProcessCDR(1,14870878,1,1,2) [2025-04-09 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870878', 'tblTempUsageDetail_20' ) start [2025-04-09 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870878', 'tblTempUsageDetail_20' ) end [2025-04-09 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:50:27] Production.INFO: ==22149== Releasing lock... [2025-04-09 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:50:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:51:05 [end_date_ymd] => 2025-04-09 16:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 13:51:05' and `end` < '2025-04-09 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-09 16:51:19] Production.INFO: count ==4556 [2025-04-09 16:51:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:51:05 - End Time 2025-04-09 16:51:05 [2025-04-09 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870883', 'tblTempUsageDetail_20' ) start [2025-04-09 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870883', 'tblTempUsageDetail_20' ) end [2025-04-09 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870883', 'tblTempVendorCDR_20' ) start [2025-04-09 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870883', 'tblTempVendorCDR_20' ) end [2025-04-09 16:51:20] Production.INFO: ProcessCDR(1,14870883,1,1,2) [2025-04-09 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870883', 'tblTempUsageDetail_20' ) start [2025-04-09 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870883', 'tblTempUsageDetail_20' ) end [2025-04-09 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:51:26] Production.INFO: ==22235== Releasing lock... [2025-04-09 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:51:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:52:05 [end_date_ymd] => 2025-04-09 16:52:05 [RateCDR] => 1 ) [2025-04-09 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:52:05' and `end` < '2025-04-09 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:52:19] Production.INFO: count ==4557 [2025-04-09 16:52:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:52:05 - End Time 2025-04-09 16:52:05 [2025-04-09 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870888', 'tblTempUsageDetail_20' ) start [2025-04-09 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870888', 'tblTempUsageDetail_20' ) end [2025-04-09 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870888', 'tblTempVendorCDR_20' ) start [2025-04-09 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870888', 'tblTempVendorCDR_20' ) end [2025-04-09 16:52:21] Production.INFO: ProcessCDR(1,14870888,1,1,2) [2025-04-09 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870888', 'tblTempUsageDetail_20' ) start [2025-04-09 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870888', 'tblTempUsageDetail_20' ) end [2025-04-09 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:52:26] Production.INFO: ==22318== Releasing lock... [2025-04-09 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:52:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:53:04 [end_date_ymd] => 2025-04-09 16:53:04 [RateCDR] => 1 ) [2025-04-09 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:53:04' and `end` < '2025-04-09 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:53:18] Production.INFO: count ==4557 [2025-04-09 16:53:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:53:04 - End Time 2025-04-09 16:53:04 [2025-04-09 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870893', 'tblTempUsageDetail_20' ) start [2025-04-09 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870893', 'tblTempUsageDetail_20' ) end [2025-04-09 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870893', 'tblTempVendorCDR_20' ) start [2025-04-09 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870893', 'tblTempVendorCDR_20' ) end [2025-04-09 16:53:20] Production.INFO: ProcessCDR(1,14870893,1,1,2) [2025-04-09 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870893', 'tblTempUsageDetail_20' ) start [2025-04-09 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870893', 'tblTempUsageDetail_20' ) end [2025-04-09 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:53:25] Production.INFO: ==22401== Releasing lock... [2025-04-09 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:53:25] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:54:05 [end_date_ymd] => 2025-04-09 16:54:05 [RateCDR] => 1 ) [2025-04-09 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:54:05' and `end` < '2025-04-09 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:54:19] Production.INFO: count ==4552 [2025-04-09 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:54:05 - End Time 2025-04-09 16:54:05 [2025-04-09 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870898', 'tblTempUsageDetail_20' ) start [2025-04-09 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870898', 'tblTempUsageDetail_20' ) end [2025-04-09 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870898', 'tblTempVendorCDR_20' ) start [2025-04-09 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870898', 'tblTempVendorCDR_20' ) end [2025-04-09 16:54:21] Production.INFO: ProcessCDR(1,14870898,1,1,2) [2025-04-09 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870898', 'tblTempUsageDetail_20' ) start [2025-04-09 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870898', 'tblTempUsageDetail_20' ) end [2025-04-09 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:54:26] Production.INFO: ==22486== Releasing lock... [2025-04-09 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:54:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:55:05 [end_date_ymd] => 2025-04-09 16:55:05 [RateCDR] => 1 ) [2025-04-09 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:55:05' and `end` < '2025-04-09 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:55:19] Production.INFO: count ==4537 [2025-04-09 16:55:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:55:05 - End Time 2025-04-09 16:55:05 [2025-04-09 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870903', 'tblTempUsageDetail_20' ) start [2025-04-09 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870903', 'tblTempUsageDetail_20' ) end [2025-04-09 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870903', 'tblTempVendorCDR_20' ) start [2025-04-09 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870903', 'tblTempVendorCDR_20' ) end [2025-04-09 16:55:21] Production.INFO: ProcessCDR(1,14870903,1,1,2) [2025-04-09 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870903', 'tblTempUsageDetail_20' ) start [2025-04-09 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870903', 'tblTempUsageDetail_20' ) end [2025-04-09 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:55:26] Production.INFO: ==22567== Releasing lock... [2025-04-09 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:55:26] Production.INFO: 62 MB #Memory Used# [2025-04-09 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:56:05 [end_date_ymd] => 2025-04-09 16:56:05 [RateCDR] => 1 ) [2025-04-09 16: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 13:56:05' and `end` < '2025-04-09 16: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-09 16:56:19] Production.INFO: count ==4524 [2025-04-09 16:56:20] Production.ERROR: pbx CDR StartTime 2025-04-09 13:56:05 - End Time 2025-04-09 16:56:05 [2025-04-09 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870908', 'tblTempUsageDetail_20' ) start [2025-04-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870908', 'tblTempUsageDetail_20' ) end [2025-04-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870908', 'tblTempVendorCDR_20' ) start [2025-04-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870908', 'tblTempVendorCDR_20' ) end [2025-04-09 16:56:21] Production.INFO: ProcessCDR(1,14870908,1,1,2) [2025-04-09 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870908', 'tblTempUsageDetail_20' ) start [2025-04-09 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870908', 'tblTempUsageDetail_20' ) end [2025-04-09 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:56:26] Production.INFO: ==22645== Releasing lock... [2025-04-09 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:56:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:57:06 [end_date_ymd] => 2025-04-09 16:57:06 [RateCDR] => 1 ) [2025-04-09 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-09 13:57:06' and `end` < '2025-04-09 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-09 16:57:20] Production.INFO: count ==4508 [2025-04-09 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:57:06 - End Time 2025-04-09 16:57:06 [2025-04-09 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870913', 'tblTempUsageDetail_20' ) start [2025-04-09 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870913', 'tblTempUsageDetail_20' ) end [2025-04-09 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870913', 'tblTempVendorCDR_20' ) start [2025-04-09 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870913', 'tblTempVendorCDR_20' ) end [2025-04-09 16:57:22] Production.INFO: ProcessCDR(1,14870913,1,1,2) [2025-04-09 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870913', 'tblTempUsageDetail_20' ) start [2025-04-09 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870913', 'tblTempUsageDetail_20' ) end [2025-04-09 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:57:27] Production.INFO: ==22726== Releasing lock... [2025-04-09 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:57:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:58:05 [end_date_ymd] => 2025-04-09 16:58:05 [RateCDR] => 1 ) [2025-04-09 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:58:05' and `end` < '2025-04-09 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:58:19] Production.INFO: count ==4508 [2025-04-09 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:58:05 - End Time 2025-04-09 16:58:05 [2025-04-09 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870918', 'tblTempUsageDetail_20' ) start [2025-04-09 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870918', 'tblTempUsageDetail_20' ) end [2025-04-09 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870918', 'tblTempVendorCDR_20' ) start [2025-04-09 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870918', 'tblTempVendorCDR_20' ) end [2025-04-09 16:58:21] Production.INFO: ProcessCDR(1,14870918,1,1,2) [2025-04-09 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870918', 'tblTempUsageDetail_20' ) start [2025-04-09 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870918', 'tblTempUsageDetail_20' ) end [2025-04-09 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:58:26] Production.INFO: ==22857== Releasing lock... [2025-04-09 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:58:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 13:59:05 [end_date_ymd] => 2025-04-09 16:59:05 [RateCDR] => 1 ) [2025-04-09 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 13:59:05' and `end` < '2025-04-09 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 16:59:19] Production.INFO: count ==4516 [2025-04-09 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-09 13:59:05 - End Time 2025-04-09 16:59:05 [2025-04-09 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870923', 'tblTempUsageDetail_20' ) start [2025-04-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870923', 'tblTempUsageDetail_20' ) end [2025-04-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870923', 'tblTempVendorCDR_20' ) start [2025-04-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870923', 'tblTempVendorCDR_20' ) end [2025-04-09 16:59:21] Production.INFO: ProcessCDR(1,14870923,1,1,2) [2025-04-09 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870923', 'tblTempUsageDetail_20' ) start [2025-04-09 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870923', 'tblTempUsageDetail_20' ) end [2025-04-09 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 16:59:27] Production.INFO: ==22966== Releasing lock... [2025-04-09 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 16:59:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:00:05 [end_date_ymd] => 2025-04-09 17:00:05 [RateCDR] => 1 ) [2025-04-09 17: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 14:00:05' and `end` < '2025-04-09 17: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-09 17:00:19] Production.INFO: count ==4503 [2025-04-09 17:00:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:00:05 - End Time 2025-04-09 17:00:05 [2025-04-09 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870929', 'tblTempUsageDetail_20' ) start [2025-04-09 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870929', 'tblTempUsageDetail_20' ) end [2025-04-09 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870929', 'tblTempVendorCDR_20' ) start [2025-04-09 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870929', 'tblTempVendorCDR_20' ) end [2025-04-09 17:00:21] Production.INFO: ProcessCDR(1,14870929,1,1,2) [2025-04-09 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870929', 'tblTempUsageDetail_20' ) start [2025-04-09 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870929', 'tblTempUsageDetail_20' ) end [2025-04-09 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:00:26] Production.INFO: ==23093== Releasing lock... [2025-04-09 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:00:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:01:05 [end_date_ymd] => 2025-04-09 17:01:05 [RateCDR] => 1 ) [2025-04-09 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:01:05' and `end` < '2025-04-09 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:01:19] Production.INFO: count ==4510 [2025-04-09 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:01:05 - End Time 2025-04-09 17:01:05 [2025-04-09 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870934', 'tblTempUsageDetail_20' ) start [2025-04-09 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870934', 'tblTempUsageDetail_20' ) end [2025-04-09 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870934', 'tblTempVendorCDR_20' ) start [2025-04-09 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870934', 'tblTempVendorCDR_20' ) end [2025-04-09 17:01:21] Production.INFO: ProcessCDR(1,14870934,1,1,2) [2025-04-09 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870934', 'tblTempUsageDetail_20' ) start [2025-04-09 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870934', 'tblTempUsageDetail_20' ) end [2025-04-09 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:01:26] Production.INFO: ==23190== Releasing lock... [2025-04-09 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:01:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:02:05 [end_date_ymd] => 2025-04-09 17:02:05 [RateCDR] => 1 ) [2025-04-09 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:02:05' and `end` < '2025-04-09 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:02:19] Production.INFO: count ==4513 [2025-04-09 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:02:05 - End Time 2025-04-09 17:02:05 [2025-04-09 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870939', 'tblTempUsageDetail_20' ) start [2025-04-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870939', 'tblTempUsageDetail_20' ) end [2025-04-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870939', 'tblTempVendorCDR_20' ) start [2025-04-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870939', 'tblTempVendorCDR_20' ) end [2025-04-09 17:02:21] Production.INFO: ProcessCDR(1,14870939,1,1,2) [2025-04-09 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870939', 'tblTempUsageDetail_20' ) start [2025-04-09 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870939', 'tblTempUsageDetail_20' ) end [2025-04-09 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:02:26] Production.INFO: ==23271== Releasing lock... [2025-04-09 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:02:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-09 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:03:05 [end_date_ymd] => 2025-04-09 17:03:05 [RateCDR] => 1 ) [2025-04-09 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:03:05' and `end` < '2025-04-09 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:03:19] Production.INFO: count ==4488 [2025-04-09 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:03:05 - End Time 2025-04-09 17:03:05 [2025-04-09 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870944', 'tblTempUsageDetail_20' ) start [2025-04-09 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870944', 'tblTempUsageDetail_20' ) end [2025-04-09 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870944', 'tblTempVendorCDR_20' ) start [2025-04-09 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870944', 'tblTempVendorCDR_20' ) end [2025-04-09 17:03:21] Production.INFO: ProcessCDR(1,14870944,1,1,2) [2025-04-09 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870944', 'tblTempUsageDetail_20' ) start [2025-04-09 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870944', 'tblTempUsageDetail_20' ) end [2025-04-09 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:03:26] Production.INFO: ==23350== Releasing lock... [2025-04-09 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:03:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:04:04 [end_date_ymd] => 2025-04-09 17:04:04 [RateCDR] => 1 ) [2025-04-09 17:04: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 14:04:04' and `end` < '2025-04-09 17:04: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-09 17:04:19] Production.INFO: count ==4483 [2025-04-09 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:04:04 - End Time 2025-04-09 17:04:04 [2025-04-09 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870949', 'tblTempUsageDetail_20' ) start [2025-04-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870949', 'tblTempUsageDetail_20' ) end [2025-04-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870949', 'tblTempVendorCDR_20' ) start [2025-04-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870949', 'tblTempVendorCDR_20' ) end [2025-04-09 17:04:21] Production.INFO: ProcessCDR(1,14870949,1,1,2) [2025-04-09 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870949', 'tblTempUsageDetail_20' ) start [2025-04-09 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870949', 'tblTempUsageDetail_20' ) end [2025-04-09 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:04:26] Production.INFO: ==23432== Releasing lock... [2025-04-09 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:04:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:05:05 [end_date_ymd] => 2025-04-09 17:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:05:05' and `end` < '2025-04-09 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-09 17:05:19] Production.INFO: count ==4489 [2025-04-09 17:05:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:05:05 - End Time 2025-04-09 17:05:05 [2025-04-09 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870954', 'tblTempUsageDetail_20' ) start [2025-04-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870954', 'tblTempUsageDetail_20' ) end [2025-04-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870954', 'tblTempVendorCDR_20' ) start [2025-04-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870954', 'tblTempVendorCDR_20' ) end [2025-04-09 17:05:20] Production.INFO: ProcessCDR(1,14870954,1,1,2) [2025-04-09 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870954', 'tblTempUsageDetail_20' ) start [2025-04-09 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870954', 'tblTempUsageDetail_20' ) end [2025-04-09 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:05:25] Production.INFO: ==23513== Releasing lock... [2025-04-09 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:05:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:06:06 [end_date_ymd] => 2025-04-09 17:06:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:06:06' and `end` < '2025-04-09 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-09 17:06:19] Production.INFO: count ==4494 [2025-04-09 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:06:06 - End Time 2025-04-09 17:06:06 [2025-04-09 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870959', 'tblTempUsageDetail_20' ) start [2025-04-09 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870959', 'tblTempUsageDetail_20' ) end [2025-04-09 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870959', 'tblTempVendorCDR_20' ) start [2025-04-09 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870959', 'tblTempVendorCDR_20' ) end [2025-04-09 17:06:21] Production.INFO: ProcessCDR(1,14870959,1,1,2) [2025-04-09 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870959', 'tblTempUsageDetail_20' ) start [2025-04-09 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870959', 'tblTempUsageDetail_20' ) end [2025-04-09 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:06:26] Production.INFO: ==23596== Releasing lock... [2025-04-09 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:06:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:07:05 [end_date_ymd] => 2025-04-09 17:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:07:05' and `end` < '2025-04-09 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-09 17:07:19] Production.INFO: count ==4490 [2025-04-09 17:07:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:07:05 - End Time 2025-04-09 17:07:05 [2025-04-09 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870964', 'tblTempUsageDetail_20' ) start [2025-04-09 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870964', 'tblTempUsageDetail_20' ) end [2025-04-09 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870964', 'tblTempVendorCDR_20' ) start [2025-04-09 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870964', 'tblTempVendorCDR_20' ) end [2025-04-09 17:07:21] Production.INFO: ProcessCDR(1,14870964,1,1,2) [2025-04-09 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870964', 'tblTempUsageDetail_20' ) start [2025-04-09 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870964', 'tblTempUsageDetail_20' ) end [2025-04-09 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:07:24] Production.INFO: ==23677== Releasing lock... [2025-04-09 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:07:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:08:05 [end_date_ymd] => 2025-04-09 17:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:08:05' and `end` < '2025-04-09 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-09 17:08:19] Production.INFO: count ==4463 [2025-04-09 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:08:05 - End Time 2025-04-09 17:08:05 [2025-04-09 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870969', 'tblTempUsageDetail_20' ) start [2025-04-09 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870969', 'tblTempUsageDetail_20' ) end [2025-04-09 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870969', 'tblTempVendorCDR_20' ) start [2025-04-09 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870969', 'tblTempVendorCDR_20' ) end [2025-04-09 17:08:21] Production.INFO: ProcessCDR(1,14870969,1,1,2) [2025-04-09 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870969', 'tblTempUsageDetail_20' ) start [2025-04-09 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870969', 'tblTempUsageDetail_20' ) end [2025-04-09 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:08:26] Production.INFO: ==23762== Releasing lock... [2025-04-09 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:08:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-09 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:09:05 [end_date_ymd] => 2025-04-09 17:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:09:05' and `end` < '2025-04-09 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-09 17:09:19] Production.INFO: count ==4457 [2025-04-09 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:09:05 - End Time 2025-04-09 17:09:05 [2025-04-09 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870974', 'tblTempUsageDetail_20' ) start [2025-04-09 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870974', 'tblTempUsageDetail_20' ) end [2025-04-09 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870974', 'tblTempVendorCDR_20' ) start [2025-04-09 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870974', 'tblTempVendorCDR_20' ) end [2025-04-09 17:09:21] Production.INFO: ProcessCDR(1,14870974,1,1,2) [2025-04-09 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870974', 'tblTempUsageDetail_20' ) start [2025-04-09 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870974', 'tblTempUsageDetail_20' ) end [2025-04-09 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:09:26] Production.INFO: ==23852== Releasing lock... [2025-04-09 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:09:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:10:06 [end_date_ymd] => 2025-04-09 17:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:10:06' and `end` < '2025-04-09 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-09 17:10:20] Production.INFO: count ==4438 [2025-04-09 17:10:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:10:06 - End Time 2025-04-09 17:10:06 [2025-04-09 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870979', 'tblTempUsageDetail_20' ) start [2025-04-09 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870979', 'tblTempUsageDetail_20' ) end [2025-04-09 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870979', 'tblTempVendorCDR_20' ) start [2025-04-09 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870979', 'tblTempVendorCDR_20' ) end [2025-04-09 17:10:21] Production.INFO: ProcessCDR(1,14870979,1,1,2) [2025-04-09 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870979', 'tblTempUsageDetail_20' ) start [2025-04-09 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870979', 'tblTempUsageDetail_20' ) end [2025-04-09 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:10:26] Production.INFO: ==23946== Releasing lock... [2025-04-09 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:10:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:11:05 [end_date_ymd] => 2025-04-09 17:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:11:05' and `end` < '2025-04-09 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-09 17:11:19] Production.INFO: count ==4425 [2025-04-09 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:11:05 - End Time 2025-04-09 17:11:05 [2025-04-09 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870985', 'tblTempUsageDetail_20' ) start [2025-04-09 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870985', 'tblTempUsageDetail_20' ) end [2025-04-09 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870985', 'tblTempVendorCDR_20' ) start [2025-04-09 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870985', 'tblTempVendorCDR_20' ) end [2025-04-09 17:11:21] Production.INFO: ProcessCDR(1,14870985,1,1,2) [2025-04-09 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870985', 'tblTempUsageDetail_20' ) start [2025-04-09 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870985', 'tblTempUsageDetail_20' ) end [2025-04-09 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:11:26] Production.INFO: ==24036== Releasing lock... [2025-04-09 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:11:26] Production.INFO: 61 MB #Memory Used# [2025-04-09 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:12:05 [end_date_ymd] => 2025-04-09 17:12:05 [RateCDR] => 1 ) [2025-04-09 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:12:05' and `end` < '2025-04-09 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:12:19] Production.INFO: count ==4430 [2025-04-09 17:12:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:12:05 - End Time 2025-04-09 17:12:05 [2025-04-09 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870990', 'tblTempUsageDetail_20' ) start [2025-04-09 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870990', 'tblTempUsageDetail_20' ) end [2025-04-09 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870990', 'tblTempVendorCDR_20' ) start [2025-04-09 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870990', 'tblTempVendorCDR_20' ) end [2025-04-09 17:12:21] Production.INFO: ProcessCDR(1,14870990,1,1,2) [2025-04-09 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870990', 'tblTempUsageDetail_20' ) start [2025-04-09 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870990', 'tblTempUsageDetail_20' ) end [2025-04-09 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:12:24] Production.INFO: ==24117== Releasing lock... [2025-04-09 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:12:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-09 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:13:05 [end_date_ymd] => 2025-04-09 17:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:13:05' and `end` < '2025-04-09 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-09 17:13:19] Production.INFO: count ==4425 [2025-04-09 17:13:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:13:05 - End Time 2025-04-09 17:13:05 [2025-04-09 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870995', 'tblTempUsageDetail_20' ) start [2025-04-09 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14870995', 'tblTempUsageDetail_20' ) end [2025-04-09 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870995', 'tblTempVendorCDR_20' ) start [2025-04-09 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14870995', 'tblTempVendorCDR_20' ) end [2025-04-09 17:13:20] Production.INFO: ProcessCDR(1,14870995,1,1,2) [2025-04-09 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14870995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14870995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14870995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14870995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870995', 'tblTempUsageDetail_20' ) start [2025-04-09 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14870995', 'tblTempUsageDetail_20' ) end [2025-04-09 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:13:25] Production.INFO: ==24237== Releasing lock... [2025-04-09 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:13:25] Production.INFO: 61 MB #Memory Used# [2025-04-09 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:14:05 [end_date_ymd] => 2025-04-09 17:14:05 [RateCDR] => 1 ) [2025-04-09 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:14:05' and `end` < '2025-04-09 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:14:20] Production.INFO: count ==4412 [2025-04-09 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-09 14:14:05 - End Time 2025-04-09 17:14:05 [2025-04-09 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871000', 'tblTempUsageDetail_20' ) start [2025-04-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871000', 'tblTempUsageDetail_20' ) end [2025-04-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871000', 'tblTempVendorCDR_20' ) start [2025-04-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871000', 'tblTempVendorCDR_20' ) end [2025-04-09 17:14:22] Production.INFO: ProcessCDR(1,14871000,1,1,2) [2025-04-09 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871000', 'tblTempUsageDetail_20' ) start [2025-04-09 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871000', 'tblTempUsageDetail_20' ) end [2025-04-09 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:14:27] Production.INFO: ==24319== Releasing lock... [2025-04-09 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:14:27] Production.INFO: 61 MB #Memory Used# [2025-04-09 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:15:04 [end_date_ymd] => 2025-04-09 17:15:04 [RateCDR] => 1 ) [2025-04-09 17: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 14:15:04' and `end` < '2025-04-09 17: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-09 17:15:18] Production.INFO: count ==4410 [2025-04-09 17:15:19] Production.ERROR: pbx CDR StartTime 2025-04-09 14:15:04 - End Time 2025-04-09 17:15:04 [2025-04-09 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871005', 'tblTempUsageDetail_20' ) start [2025-04-09 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871005', 'tblTempUsageDetail_20' ) end [2025-04-09 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871005', 'tblTempVendorCDR_20' ) start [2025-04-09 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871005', 'tblTempVendorCDR_20' ) end [2025-04-09 17:15:20] Production.INFO: ProcessCDR(1,14871005,1,1,2) [2025-04-09 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871005', 'tblTempUsageDetail_20' ) start [2025-04-09 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871005', 'tblTempUsageDetail_20' ) end [2025-04-09 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:15:25] Production.INFO: ==24398== Releasing lock... [2025-04-09 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:15:25] Production.INFO: 61 MB #Memory Used# [2025-04-09 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:16:05 [end_date_ymd] => 2025-04-09 17:16:05 [RateCDR] => 1 ) [2025-04-09 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:16:05' and `end` < '2025-04-09 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:16:19] Production.INFO: count ==4395 [2025-04-09 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:16:05 - End Time 2025-04-09 17:16:05 [2025-04-09 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871010', 'tblTempUsageDetail_20' ) start [2025-04-09 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871010', 'tblTempUsageDetail_20' ) end [2025-04-09 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871010', 'tblTempVendorCDR_20' ) start [2025-04-09 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871010', 'tblTempVendorCDR_20' ) end [2025-04-09 17:16:21] Production.INFO: ProcessCDR(1,14871010,1,1,2) [2025-04-09 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871010', 'tblTempUsageDetail_20' ) start [2025-04-09 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871010', 'tblTempUsageDetail_20' ) end [2025-04-09 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:16:26] Production.INFO: ==24482== Releasing lock... [2025-04-09 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:16:26] Production.INFO: 61 MB #Memory Used# [2025-04-09 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:17:05 [end_date_ymd] => 2025-04-09 17:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:17:05' and `end` < '2025-04-09 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-09 17:17:18] Production.INFO: count ==4381 [2025-04-09 17:17:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:17:05 - End Time 2025-04-09 17:17:05 [2025-04-09 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871015', 'tblTempUsageDetail_20' ) start [2025-04-09 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871015', 'tblTempUsageDetail_20' ) end [2025-04-09 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871015', 'tblTempVendorCDR_20' ) start [2025-04-09 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871015', 'tblTempVendorCDR_20' ) end [2025-04-09 17:17:20] Production.INFO: ProcessCDR(1,14871015,1,1,2) [2025-04-09 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871015', 'tblTempUsageDetail_20' ) start [2025-04-09 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871015', 'tblTempUsageDetail_20' ) end [2025-04-09 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:17:25] Production.INFO: ==24563== Releasing lock... [2025-04-09 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:17:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:18:04 [end_date_ymd] => 2025-04-09 17:18:04 [RateCDR] => 1 ) [2025-04-09 17: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-09 14:18:04' and `end` < '2025-04-09 17: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-09 17:18:18] Production.INFO: count ==4381 [2025-04-09 17:18:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:18:04 - End Time 2025-04-09 17:18:04 [2025-04-09 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871020', 'tblTempUsageDetail_20' ) start [2025-04-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871020', 'tblTempUsageDetail_20' ) end [2025-04-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871020', 'tblTempVendorCDR_20' ) start [2025-04-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871020', 'tblTempVendorCDR_20' ) end [2025-04-09 17:18:20] Production.INFO: ProcessCDR(1,14871020,1,1,2) [2025-04-09 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871020', 'tblTempUsageDetail_20' ) start [2025-04-09 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871020', 'tblTempUsageDetail_20' ) end [2025-04-09 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:18:25] Production.INFO: ==24652== Releasing lock... [2025-04-09 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:18:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:19:05 [end_date_ymd] => 2025-04-09 17:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:19:05' and `end` < '2025-04-09 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-09 17:19:19] Production.INFO: count ==4375 [2025-04-09 17:19:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:19:05 - End Time 2025-04-09 17:19:05 [2025-04-09 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871025', 'tblTempUsageDetail_20' ) start [2025-04-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871025', 'tblTempUsageDetail_20' ) end [2025-04-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871025', 'tblTempVendorCDR_20' ) start [2025-04-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871025', 'tblTempVendorCDR_20' ) end [2025-04-09 17:19:21] Production.INFO: ProcessCDR(1,14871025,1,1,2) [2025-04-09 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871025', 'tblTempUsageDetail_20' ) start [2025-04-09 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871025', 'tblTempUsageDetail_20' ) end [2025-04-09 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:19:26] Production.INFO: ==24733== Releasing lock... [2025-04-09 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:19:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:20:05 [end_date_ymd] => 2025-04-09 17:20:05 [RateCDR] => 1 ) [2025-04-09 17: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 14:20:05' and `end` < '2025-04-09 17: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-09 17:20:19] Production.INFO: count ==4374 [2025-04-09 17:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:20:05 - End Time 2025-04-09 17:20:05 [2025-04-09 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871031', 'tblTempUsageDetail_20' ) start [2025-04-09 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871031', 'tblTempUsageDetail_20' ) end [2025-04-09 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871031', 'tblTempVendorCDR_20' ) start [2025-04-09 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871031', 'tblTempVendorCDR_20' ) end [2025-04-09 17:20:21] Production.INFO: ProcessCDR(1,14871031,1,1,2) [2025-04-09 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871031', 'tblTempUsageDetail_20' ) start [2025-04-09 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871031', 'tblTempUsageDetail_20' ) end [2025-04-09 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:20:26] Production.INFO: ==24814== Releasing lock... [2025-04-09 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:20:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:21:05 [end_date_ymd] => 2025-04-09 17:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:21:05' and `end` < '2025-04-09 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-09 17:21:19] Production.INFO: count ==4362 [2025-04-09 17:21:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:21:05 - End Time 2025-04-09 17:21:05 [2025-04-09 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871036', 'tblTempUsageDetail_20' ) start [2025-04-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871036', 'tblTempUsageDetail_20' ) end [2025-04-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871036', 'tblTempVendorCDR_20' ) start [2025-04-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871036', 'tblTempVendorCDR_20' ) end [2025-04-09 17:21:20] Production.INFO: ProcessCDR(1,14871036,1,1,2) [2025-04-09 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871036', 'tblTempUsageDetail_20' ) start [2025-04-09 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871036', 'tblTempUsageDetail_20' ) end [2025-04-09 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:21:25] Production.INFO: ==24898== Releasing lock... [2025-04-09 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:21:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:22:05 [end_date_ymd] => 2025-04-09 17:22:05 [RateCDR] => 1 ) [2025-04-09 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:22:05' and `end` < '2025-04-09 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-09 17:22:19] Production.INFO: count ==4368 [2025-04-09 17:22:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:22:05 - End Time 2025-04-09 17:22:05 [2025-04-09 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871041', 'tblTempUsageDetail_20' ) start [2025-04-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871041', 'tblTempUsageDetail_20' ) end [2025-04-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871041', 'tblTempVendorCDR_20' ) start [2025-04-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871041', 'tblTempVendorCDR_20' ) end [2025-04-09 17:22:20] Production.INFO: ProcessCDR(1,14871041,1,1,2) [2025-04-09 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871041', 'tblTempUsageDetail_20' ) start [2025-04-09 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871041', 'tblTempUsageDetail_20' ) end [2025-04-09 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:22:25] Production.INFO: ==24979== Releasing lock... [2025-04-09 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:22:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:23:05 [end_date_ymd] => 2025-04-09 17:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:23:05' and `end` < '2025-04-09 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-09 17:23:19] Production.INFO: count ==4365 [2025-04-09 17:23:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:23:05 - End Time 2025-04-09 17:23:05 [2025-04-09 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871046', 'tblTempUsageDetail_20' ) start [2025-04-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871046', 'tblTempUsageDetail_20' ) end [2025-04-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871046', 'tblTempVendorCDR_20' ) start [2025-04-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871046', 'tblTempVendorCDR_20' ) end [2025-04-09 17:23:20] Production.INFO: ProcessCDR(1,14871046,1,1,2) [2025-04-09 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871046', 'tblTempUsageDetail_20' ) start [2025-04-09 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871046', 'tblTempUsageDetail_20' ) end [2025-04-09 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:23:25] Production.INFO: ==25063== Releasing lock... [2025-04-09 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:23:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:24:04 [end_date_ymd] => 2025-04-09 17:24:04 [RateCDR] => 1 ) [2025-04-09 17:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:24:04' and `end` < '2025-04-09 17:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:24:18] Production.INFO: count ==4364 [2025-04-09 17:24:19] Production.ERROR: pbx CDR StartTime 2025-04-09 14:24:04 - End Time 2025-04-09 17:24:04 [2025-04-09 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871051', 'tblTempUsageDetail_20' ) start [2025-04-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871051', 'tblTempUsageDetail_20' ) end [2025-04-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871051', 'tblTempVendorCDR_20' ) start [2025-04-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871051', 'tblTempVendorCDR_20' ) end [2025-04-09 17:24:20] Production.INFO: ProcessCDR(1,14871051,1,1,2) [2025-04-09 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871051', 'tblTempUsageDetail_20' ) start [2025-04-09 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871051', 'tblTempUsageDetail_20' ) end [2025-04-09 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:24:24] Production.INFO: ==25141== Releasing lock... [2025-04-09 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:24:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:25:05 [end_date_ymd] => 2025-04-09 17:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:25:05' and `end` < '2025-04-09 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-09 17:25:19] Production.INFO: count ==4359 [2025-04-09 17:25:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:25:05 - End Time 2025-04-09 17:25:05 [2025-04-09 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871056', 'tblTempUsageDetail_20' ) start [2025-04-09 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871056', 'tblTempUsageDetail_20' ) end [2025-04-09 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871056', 'tblTempVendorCDR_20' ) start [2025-04-09 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871056', 'tblTempVendorCDR_20' ) end [2025-04-09 17:25:20] Production.INFO: ProcessCDR(1,14871056,1,1,2) [2025-04-09 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871056', 'tblTempUsageDetail_20' ) start [2025-04-09 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871056', 'tblTempUsageDetail_20' ) end [2025-04-09 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:25:25] Production.INFO: ==25222== Releasing lock... [2025-04-09 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:25:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:26:06 [end_date_ymd] => 2025-04-09 17:26:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:26:06' and `end` < '2025-04-09 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-09 17:26:19] Production.INFO: count ==4351 [2025-04-09 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:26:06 - End Time 2025-04-09 17:26:06 [2025-04-09 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871061', 'tblTempUsageDetail_20' ) start [2025-04-09 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871061', 'tblTempUsageDetail_20' ) end [2025-04-09 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871061', 'tblTempVendorCDR_20' ) start [2025-04-09 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871061', 'tblTempVendorCDR_20' ) end [2025-04-09 17:26:21] Production.INFO: ProcessCDR(1,14871061,1,1,2) [2025-04-09 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871061', 'tblTempUsageDetail_20' ) start [2025-04-09 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871061', 'tblTempUsageDetail_20' ) end [2025-04-09 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:26:26] Production.INFO: ==25305== Releasing lock... [2025-04-09 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:26:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:27:05 [end_date_ymd] => 2025-04-09 17:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:27:05' and `end` < '2025-04-09 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-09 17:27:19] Production.INFO: count ==4362 [2025-04-09 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:27:05 - End Time 2025-04-09 17:27:05 [2025-04-09 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871066', 'tblTempUsageDetail_20' ) start [2025-04-09 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871066', 'tblTempUsageDetail_20' ) end [2025-04-09 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871066', 'tblTempVendorCDR_20' ) start [2025-04-09 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871066', 'tblTempVendorCDR_20' ) end [2025-04-09 17:27:21] Production.INFO: ProcessCDR(1,14871066,1,1,2) [2025-04-09 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871066', 'tblTempUsageDetail_20' ) start [2025-04-09 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871066', 'tblTempUsageDetail_20' ) end [2025-04-09 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:27:26] Production.INFO: ==25384== Releasing lock... [2025-04-09 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:27:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-09 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:28:05 [end_date_ymd] => 2025-04-09 17:28:05 [RateCDR] => 1 ) [2025-04-09 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:28:05' and `end` < '2025-04-09 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:28:19] Production.INFO: count ==4351 [2025-04-09 17:28:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:28:05 - End Time 2025-04-09 17:28:05 [2025-04-09 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871071', 'tblTempUsageDetail_20' ) start [2025-04-09 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871071', 'tblTempUsageDetail_20' ) end [2025-04-09 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871071', 'tblTempVendorCDR_20' ) start [2025-04-09 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871071', 'tblTempVendorCDR_20' ) end [2025-04-09 17:28:20] Production.INFO: ProcessCDR(1,14871071,1,1,2) [2025-04-09 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871071', 'tblTempUsageDetail_20' ) start [2025-04-09 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871071', 'tblTempUsageDetail_20' ) end [2025-04-09 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:28:26] Production.INFO: ==25471== Releasing lock... [2025-04-09 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:28:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:29:04 [end_date_ymd] => 2025-04-09 17:29:04 [RateCDR] => 1 ) [2025-04-09 17: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-09 14:29:04' and `end` < '2025-04-09 17: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-09 17:29:18] Production.INFO: count ==4352 [2025-04-09 17:29:19] Production.ERROR: pbx CDR StartTime 2025-04-09 14:29:04 - End Time 2025-04-09 17:29:04 [2025-04-09 17:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871076', 'tblTempUsageDetail_20' ) start [2025-04-09 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871076', 'tblTempUsageDetail_20' ) end [2025-04-09 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871076', 'tblTempVendorCDR_20' ) start [2025-04-09 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871076', 'tblTempVendorCDR_20' ) end [2025-04-09 17:29:20] Production.INFO: ProcessCDR(1,14871076,1,1,2) [2025-04-09 17:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871076', 'tblTempUsageDetail_20' ) start [2025-04-09 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871076', 'tblTempUsageDetail_20' ) end [2025-04-09 17:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:29:25] Production.INFO: ==25596== Releasing lock... [2025-04-09 17:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:29:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:30:07 [end_date_ymd] => 2025-04-09 17:30:07 [RateCDR] => 1 ) [2025-04-09 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-09 14:30:07' and `end` < '2025-04-09 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-09 17:30:20] Production.INFO: count ==4325 [2025-04-09 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-09 14:30:07 - End Time 2025-04-09 17:30:07 [2025-04-09 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871082', 'tblTempUsageDetail_20' ) start [2025-04-09 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871082', 'tblTempUsageDetail_20' ) end [2025-04-09 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871082', 'tblTempVendorCDR_20' ) start [2025-04-09 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871082', 'tblTempVendorCDR_20' ) end [2025-04-09 17:30:22] Production.INFO: ProcessCDR(1,14871082,1,1,2) [2025-04-09 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871082', 'tblTempUsageDetail_20' ) start [2025-04-09 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871082', 'tblTempUsageDetail_20' ) end [2025-04-09 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:30:27] Production.INFO: ==25685== Releasing lock... [2025-04-09 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:30:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-09 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:31:05 [end_date_ymd] => 2025-04-09 17:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:31:05' and `end` < '2025-04-09 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-09 17:31:18] Production.INFO: count ==4289 [2025-04-09 17:31:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:31:05 - End Time 2025-04-09 17:31:05 [2025-04-09 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871087', 'tblTempUsageDetail_20' ) start [2025-04-09 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871087', 'tblTempUsageDetail_20' ) end [2025-04-09 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871087', 'tblTempVendorCDR_20' ) start [2025-04-09 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871087', 'tblTempVendorCDR_20' ) end [2025-04-09 17:31:20] Production.INFO: ProcessCDR(1,14871087,1,1,2) [2025-04-09 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871087', 'tblTempUsageDetail_20' ) start [2025-04-09 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871087', 'tblTempUsageDetail_20' ) end [2025-04-09 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:31:25] Production.INFO: ==25768== Releasing lock... [2025-04-09 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:31:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:32:05 [end_date_ymd] => 2025-04-09 17:32:05 [RateCDR] => 1 ) [2025-04-09 17: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 14:32:05' and `end` < '2025-04-09 17: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-09 17:32:19] Production.INFO: count ==4285 [2025-04-09 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:32:05 - End Time 2025-04-09 17:32:05 [2025-04-09 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871092', 'tblTempUsageDetail_20' ) start [2025-04-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871092', 'tblTempUsageDetail_20' ) end [2025-04-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871092', 'tblTempVendorCDR_20' ) start [2025-04-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871092', 'tblTempVendorCDR_20' ) end [2025-04-09 17:32:20] Production.INFO: ProcessCDR(1,14871092,1,1,2) [2025-04-09 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871092', 'tblTempUsageDetail_20' ) start [2025-04-09 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871092', 'tblTempUsageDetail_20' ) end [2025-04-09 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:32:25] Production.INFO: ==25854== Releasing lock... [2025-04-09 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:32:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:33:05 [end_date_ymd] => 2025-04-09 17:33:05 [RateCDR] => 1 ) [2025-04-09 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:33:05' and `end` < '2025-04-09 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:33:18] Production.INFO: count ==4274 [2025-04-09 17:33:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:33:05 - End Time 2025-04-09 17:33:05 [2025-04-09 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871097', 'tblTempUsageDetail_20' ) start [2025-04-09 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871097', 'tblTempUsageDetail_20' ) end [2025-04-09 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871097', 'tblTempVendorCDR_20' ) start [2025-04-09 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871097', 'tblTempVendorCDR_20' ) end [2025-04-09 17:33:20] Production.INFO: ProcessCDR(1,14871097,1,1,2) [2025-04-09 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871097', 'tblTempUsageDetail_20' ) start [2025-04-09 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871097', 'tblTempUsageDetail_20' ) end [2025-04-09 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:33:25] Production.INFO: ==25934== Releasing lock... [2025-04-09 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:33:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:34:05 [end_date_ymd] => 2025-04-09 17:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:34:05' and `end` < '2025-04-09 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-09 17:34:19] Production.INFO: count ==4269 [2025-04-09 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:34:05 - End Time 2025-04-09 17:34:05 [2025-04-09 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871102', 'tblTempUsageDetail_20' ) start [2025-04-09 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871102', 'tblTempUsageDetail_20' ) end [2025-04-09 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871102', 'tblTempVendorCDR_20' ) start [2025-04-09 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871102', 'tblTempVendorCDR_20' ) end [2025-04-09 17:34:21] Production.INFO: ProcessCDR(1,14871102,1,1,2) [2025-04-09 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871102', 'tblTempUsageDetail_20' ) start [2025-04-09 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871102', 'tblTempUsageDetail_20' ) end [2025-04-09 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:34:26] Production.INFO: ==26015== Releasing lock... [2025-04-09 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:34:26] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:35:04 [end_date_ymd] => 2025-04-09 17:35:04 [RateCDR] => 1 ) [2025-04-09 17: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 14:35:04' and `end` < '2025-04-09 17: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-09 17:35:18] Production.INFO: count ==4275 [2025-04-09 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:35:04 - End Time 2025-04-09 17:35:04 [2025-04-09 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871107', 'tblTempUsageDetail_20' ) start [2025-04-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871107', 'tblTempUsageDetail_20' ) end [2025-04-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871107', 'tblTempVendorCDR_20' ) start [2025-04-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871107', 'tblTempVendorCDR_20' ) end [2025-04-09 17:35:20] Production.INFO: ProcessCDR(1,14871107,1,1,2) [2025-04-09 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871107', 'tblTempUsageDetail_20' ) start [2025-04-09 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871107', 'tblTempUsageDetail_20' ) end [2025-04-09 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:35:25] Production.INFO: ==26095== Releasing lock... [2025-04-09 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:35:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:36:05 [end_date_ymd] => 2025-04-09 17:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:36:05' and `end` < '2025-04-09 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-09 17:36:19] Production.INFO: count ==4330 [2025-04-09 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:36:05 - End Time 2025-04-09 17:36:05 [2025-04-09 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871112', 'tblTempUsageDetail_20' ) start [2025-04-09 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871112', 'tblTempUsageDetail_20' ) end [2025-04-09 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871112', 'tblTempVendorCDR_20' ) start [2025-04-09 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871112', 'tblTempVendorCDR_20' ) end [2025-04-09 17:36:21] Production.INFO: ProcessCDR(1,14871112,1,1,2) [2025-04-09 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871112', 'tblTempUsageDetail_20' ) start [2025-04-09 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871112', 'tblTempUsageDetail_20' ) end [2025-04-09 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:36:26] Production.INFO: ==26178== Releasing lock... [2025-04-09 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:36:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:37:05 [end_date_ymd] => 2025-04-09 17:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:37:05' and `end` < '2025-04-09 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-09 17:37:18] Production.INFO: count ==4329 [2025-04-09 17:37:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:37:05 - End Time 2025-04-09 17:37:05 [2025-04-09 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871117', 'tblTempUsageDetail_20' ) start [2025-04-09 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871117', 'tblTempUsageDetail_20' ) end [2025-04-09 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871117', 'tblTempVendorCDR_20' ) start [2025-04-09 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871117', 'tblTempVendorCDR_20' ) end [2025-04-09 17:37:20] Production.INFO: ProcessCDR(1,14871117,1,1,2) [2025-04-09 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871117', 'tblTempUsageDetail_20' ) start [2025-04-09 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871117', 'tblTempUsageDetail_20' ) end [2025-04-09 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:37:26] Production.INFO: ==26258== Releasing lock... [2025-04-09 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:37:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-09 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:38:05 [end_date_ymd] => 2025-04-09 17:38:05 [RateCDR] => 1 ) [2025-04-09 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:38:05' and `end` < '2025-04-09 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:38:19] Production.INFO: count ==4319 [2025-04-09 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:38:05 - End Time 2025-04-09 17:38:05 [2025-04-09 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871122', 'tblTempUsageDetail_20' ) start [2025-04-09 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871122', 'tblTempUsageDetail_20' ) end [2025-04-09 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871122', 'tblTempVendorCDR_20' ) start [2025-04-09 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871122', 'tblTempVendorCDR_20' ) end [2025-04-09 17:38:20] Production.INFO: ProcessCDR(1,14871122,1,1,2) [2025-04-09 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871122', 'tblTempUsageDetail_20' ) start [2025-04-09 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871122', 'tblTempUsageDetail_20' ) end [2025-04-09 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:38:25] Production.INFO: ==26346== Releasing lock... [2025-04-09 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:38:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-09 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:39:05 [end_date_ymd] => 2025-04-09 17:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:39:05' and `end` < '2025-04-09 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-09 17:39:19] Production.INFO: count ==4308 [2025-04-09 17:39:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:39:05 - End Time 2025-04-09 17:39:05 [2025-04-09 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871127', 'tblTempUsageDetail_20' ) start [2025-04-09 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871127', 'tblTempUsageDetail_20' ) end [2025-04-09 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871127', 'tblTempVendorCDR_20' ) start [2025-04-09 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871127', 'tblTempVendorCDR_20' ) end [2025-04-09 17:39:20] Production.INFO: ProcessCDR(1,14871127,1,1,2) [2025-04-09 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871127', 'tblTempUsageDetail_20' ) start [2025-04-09 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871127', 'tblTempUsageDetail_20' ) end [2025-04-09 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:39:26] Production.INFO: ==26430== Releasing lock... [2025-04-09 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:39:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-09 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:40:06 [end_date_ymd] => 2025-04-09 17:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:40:06' and `end` < '2025-04-09 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-09 17:40:20] Production.INFO: count ==4305 [2025-04-09 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-09 14:40:06 - End Time 2025-04-09 17:40:06 [2025-04-09 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871132', 'tblTempUsageDetail_20' ) start [2025-04-09 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871132', 'tblTempUsageDetail_20' ) end [2025-04-09 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871132', 'tblTempVendorCDR_20' ) start [2025-04-09 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871132', 'tblTempVendorCDR_20' ) end [2025-04-09 17:40:22] Production.INFO: ProcessCDR(1,14871132,1,1,2) [2025-04-09 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871132', 'tblTempUsageDetail_20' ) start [2025-04-09 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871132', 'tblTempUsageDetail_20' ) end [2025-04-09 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:40:27] Production.INFO: ==26514== Releasing lock... [2025-04-09 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:40:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-09 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:41:04 [end_date_ymd] => 2025-04-09 17:41:04 [RateCDR] => 1 ) [2025-04-09 17: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-09 14:41:04' and `end` < '2025-04-09 17: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-09 17:41:18] Production.INFO: count ==4272 [2025-04-09 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:41:04 - End Time 2025-04-09 17:41:04 [2025-04-09 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871138', 'tblTempUsageDetail_20' ) start [2025-04-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871138', 'tblTempUsageDetail_20' ) end [2025-04-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871138', 'tblTempVendorCDR_20' ) start [2025-04-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871138', 'tblTempVendorCDR_20' ) end [2025-04-09 17:41:20] Production.INFO: ProcessCDR(1,14871138,1,1,2) [2025-04-09 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871138', 'tblTempUsageDetail_20' ) start [2025-04-09 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871138', 'tblTempUsageDetail_20' ) end [2025-04-09 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:41:25] Production.INFO: ==26599== Releasing lock... [2025-04-09 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:41:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:42:05 [end_date_ymd] => 2025-04-09 17:42:05 [RateCDR] => 1 ) [2025-04-09 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:42:05' and `end` < '2025-04-09 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:42:18] Production.INFO: count ==4261 [2025-04-09 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:42:05 - End Time 2025-04-09 17:42:05 [2025-04-09 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871143', 'tblTempUsageDetail_20' ) start [2025-04-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871143', 'tblTempUsageDetail_20' ) end [2025-04-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871143', 'tblTempVendorCDR_20' ) start [2025-04-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871143', 'tblTempVendorCDR_20' ) end [2025-04-09 17:42:20] Production.INFO: ProcessCDR(1,14871143,1,1,2) [2025-04-09 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871143', 'tblTempUsageDetail_20' ) start [2025-04-09 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871143', 'tblTempUsageDetail_20' ) end [2025-04-09 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:42:25] Production.INFO: ==26680== Releasing lock... [2025-04-09 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:42:25] Production.INFO: 60 MB #Memory Used# [2025-04-09 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:43:05 [end_date_ymd] => 2025-04-09 17:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:43:05' and `end` < '2025-04-09 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-09 17:43:19] Production.INFO: count ==4252 [2025-04-09 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:43:05 - End Time 2025-04-09 17:43:05 [2025-04-09 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871148', 'tblTempUsageDetail_20' ) start [2025-04-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871148', 'tblTempUsageDetail_20' ) end [2025-04-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871148', 'tblTempVendorCDR_20' ) start [2025-04-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871148', 'tblTempVendorCDR_20' ) end [2025-04-09 17:43:21] Production.INFO: ProcessCDR(1,14871148,1,1,2) [2025-04-09 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871148', 'tblTempUsageDetail_20' ) start [2025-04-09 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871148', 'tblTempUsageDetail_20' ) end [2025-04-09 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:43:26] Production.INFO: ==26761== Releasing lock... [2025-04-09 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:43:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-09 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:44:05 [end_date_ymd] => 2025-04-09 17:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:44:05' and `end` < '2025-04-09 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-09 17:44:19] Production.INFO: count ==4231 [2025-04-09 17:44:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:44:05 - End Time 2025-04-09 17:44:05 [2025-04-09 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871153', 'tblTempUsageDetail_20' ) start [2025-04-09 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871153', 'tblTempUsageDetail_20' ) end [2025-04-09 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871153', 'tblTempVendorCDR_20' ) start [2025-04-09 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871153', 'tblTempVendorCDR_20' ) end [2025-04-09 17:44:20] Production.INFO: ProcessCDR(1,14871153,1,1,2) [2025-04-09 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871153', 'tblTempUsageDetail_20' ) start [2025-04-09 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871153', 'tblTempUsageDetail_20' ) end [2025-04-09 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:44:26] Production.INFO: ==26885== Releasing lock... [2025-04-09 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:44:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-09 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:45:06 [end_date_ymd] => 2025-04-09 17:45:06 [RateCDR] => 1 ) [2025-04-09 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:45:06' and `end` < '2025-04-09 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:45:19] Production.INFO: count ==4227 [2025-04-09 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:45:06 - End Time 2025-04-09 17:45:06 [2025-04-09 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871158', 'tblTempUsageDetail_20' ) start [2025-04-09 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871158', 'tblTempUsageDetail_20' ) end [2025-04-09 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871158', 'tblTempVendorCDR_20' ) start [2025-04-09 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871158', 'tblTempVendorCDR_20' ) end [2025-04-09 17:45:21] Production.INFO: ProcessCDR(1,14871158,1,1,2) [2025-04-09 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871158', 'tblTempUsageDetail_20' ) start [2025-04-09 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871158', 'tblTempUsageDetail_20' ) end [2025-04-09 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:45:26] Production.INFO: ==26968== Releasing lock... [2025-04-09 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:45:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-09 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:46:05 [end_date_ymd] => 2025-04-09 17:46:05 [RateCDR] => 1 ) [2025-04-09 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:46:05' and `end` < '2025-04-09 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:46:19] Production.INFO: count ==4207 [2025-04-09 17:46:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:46:05 - End Time 2025-04-09 17:46:05 [2025-04-09 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871163', 'tblTempUsageDetail_20' ) start [2025-04-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871163', 'tblTempUsageDetail_20' ) end [2025-04-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871163', 'tblTempVendorCDR_20' ) start [2025-04-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871163', 'tblTempVendorCDR_20' ) end [2025-04-09 17:46:20] Production.INFO: ProcessCDR(1,14871163,1,1,2) [2025-04-09 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871163', 'tblTempUsageDetail_20' ) start [2025-04-09 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871163', 'tblTempUsageDetail_20' ) end [2025-04-09 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:46:24] Production.INFO: ==27048== Releasing lock... [2025-04-09 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:46:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-09 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:47:05 [end_date_ymd] => 2025-04-09 17:47:05 [RateCDR] => 1 ) [2025-04-09 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:47:05' and `end` < '2025-04-09 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-09 17:47:19] Production.INFO: count ==4186 [2025-04-09 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:47:05 - End Time 2025-04-09 17:47:05 [2025-04-09 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871168', 'tblTempUsageDetail_20' ) start [2025-04-09 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871168', 'tblTempUsageDetail_20' ) end [2025-04-09 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871168', 'tblTempVendorCDR_20' ) start [2025-04-09 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871168', 'tblTempVendorCDR_20' ) end [2025-04-09 17:47:21] Production.INFO: ProcessCDR(1,14871168,1,1,2) [2025-04-09 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871168', 'tblTempUsageDetail_20' ) start [2025-04-09 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871168', 'tblTempUsageDetail_20' ) end [2025-04-09 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:47:26] Production.INFO: ==27130== Releasing lock... [2025-04-09 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:47:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:48:05 [end_date_ymd] => 2025-04-09 17:48:05 [RateCDR] => 1 ) [2025-04-09 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:48:05' and `end` < '2025-04-09 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:48:18] Production.INFO: count ==4177 [2025-04-09 17:48:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:48:05 - End Time 2025-04-09 17:48:05 [2025-04-09 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871173', 'tblTempUsageDetail_20' ) start [2025-04-09 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871173', 'tblTempUsageDetail_20' ) end [2025-04-09 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871173', 'tblTempVendorCDR_20' ) start [2025-04-09 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871173', 'tblTempVendorCDR_20' ) end [2025-04-09 17:48:20] Production.INFO: ProcessCDR(1,14871173,1,1,2) [2025-04-09 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871173', 'tblTempUsageDetail_20' ) start [2025-04-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871173', 'tblTempUsageDetail_20' ) end [2025-04-09 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:48:23] Production.INFO: ==27213== Releasing lock... [2025-04-09 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:48:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:49:05 [end_date_ymd] => 2025-04-09 17:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:49:05' and `end` < '2025-04-09 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-09 17:49:18] Production.INFO: count ==4177 [2025-04-09 17:49:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:49:05 - End Time 2025-04-09 17:49:05 [2025-04-09 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871178', 'tblTempUsageDetail_20' ) start [2025-04-09 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871178', 'tblTempUsageDetail_20' ) end [2025-04-09 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871178', 'tblTempVendorCDR_20' ) start [2025-04-09 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871178', 'tblTempVendorCDR_20' ) end [2025-04-09 17:49:20] Production.INFO: ProcessCDR(1,14871178,1,1,2) [2025-04-09 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871178', 'tblTempUsageDetail_20' ) start [2025-04-09 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871178', 'tblTempUsageDetail_20' ) end [2025-04-09 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:49:23] Production.INFO: ==27302== Releasing lock... [2025-04-09 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:49:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:50:05 [end_date_ymd] => 2025-04-09 17:50:05 [RateCDR] => 1 ) [2025-04-09 17: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-09 14:50:05' and `end` < '2025-04-09 17: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-09 17:50:19] Production.INFO: count ==4170 [2025-04-09 17:50:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:50:05 - End Time 2025-04-09 17:50:05 [2025-04-09 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871183', 'tblTempUsageDetail_20' ) start [2025-04-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871183', 'tblTempUsageDetail_20' ) end [2025-04-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871183', 'tblTempVendorCDR_20' ) start [2025-04-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871183', 'tblTempVendorCDR_20' ) end [2025-04-09 17:50:21] Production.INFO: ProcessCDR(1,14871183,1,1,2) [2025-04-09 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871183', 'tblTempUsageDetail_20' ) start [2025-04-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871183', 'tblTempUsageDetail_20' ) end [2025-04-09 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:50:24] Production.INFO: ==27389== Releasing lock... [2025-04-09 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:50:24] Production.INFO: 59.25 MB #Memory Used# [2025-04-09 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:51:05 [end_date_ymd] => 2025-04-09 17:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:51:05' and `end` < '2025-04-09 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-09 17:51:19] Production.INFO: count ==4125 [2025-04-09 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:51:05 - End Time 2025-04-09 17:51:05 [2025-04-09 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871189', 'tblTempUsageDetail_20' ) start [2025-04-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871189', 'tblTempUsageDetail_20' ) end [2025-04-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871189', 'tblTempVendorCDR_20' ) start [2025-04-09 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871189', 'tblTempVendorCDR_20' ) end [2025-04-09 17:51:21] Production.INFO: ProcessCDR(1,14871189,1,1,2) [2025-04-09 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871189', 'tblTempUsageDetail_20' ) start [2025-04-09 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871189', 'tblTempUsageDetail_20' ) end [2025-04-09 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:51:25] Production.INFO: ==27474== Releasing lock... [2025-04-09 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:51:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-09 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:52:05 [end_date_ymd] => 2025-04-09 17:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:52:05' and `end` < '2025-04-09 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-09 17:52:18] Production.INFO: count ==4135 [2025-04-09 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:52:05 - End Time 2025-04-09 17:52:05 [2025-04-09 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871194', 'tblTempUsageDetail_20' ) start [2025-04-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871194', 'tblTempUsageDetail_20' ) end [2025-04-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871194', 'tblTempVendorCDR_20' ) start [2025-04-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871194', 'tblTempVendorCDR_20' ) end [2025-04-09 17:52:20] Production.INFO: ProcessCDR(1,14871194,1,1,2) [2025-04-09 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871194', 'tblTempUsageDetail_20' ) start [2025-04-09 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871194', 'tblTempUsageDetail_20' ) end [2025-04-09 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:52:25] Production.INFO: ==27559== Releasing lock... [2025-04-09 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:52:25] Production.INFO: 59 MB #Memory Used# [2025-04-09 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:53:05 [end_date_ymd] => 2025-04-09 17:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:53:05' and `end` < '2025-04-09 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-09 17:53:19] Production.INFO: count ==4115 [2025-04-09 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:53:05 - End Time 2025-04-09 17:53:05 [2025-04-09 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871199', 'tblTempUsageDetail_20' ) start [2025-04-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871199', 'tblTempUsageDetail_20' ) end [2025-04-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871199', 'tblTempVendorCDR_20' ) start [2025-04-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871199', 'tblTempVendorCDR_20' ) end [2025-04-09 17:53:20] Production.INFO: ProcessCDR(1,14871199,1,1,2) [2025-04-09 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871199', 'tblTempUsageDetail_20' ) start [2025-04-09 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871199', 'tblTempUsageDetail_20' ) end [2025-04-09 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:53:25] Production.INFO: ==27650== Releasing lock... [2025-04-09 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:53:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-09 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:54:05 [end_date_ymd] => 2025-04-09 17:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:54:05' and `end` < '2025-04-09 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-09 17:54:19] Production.INFO: count ==4103 [2025-04-09 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:54:05 - End Time 2025-04-09 17:54:05 [2025-04-09 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871204', 'tblTempUsageDetail_20' ) start [2025-04-09 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871204', 'tblTempUsageDetail_20' ) end [2025-04-09 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871204', 'tblTempVendorCDR_20' ) start [2025-04-09 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871204', 'tblTempVendorCDR_20' ) end [2025-04-09 17:54:20] Production.INFO: ProcessCDR(1,14871204,1,1,2) [2025-04-09 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871204', 'tblTempUsageDetail_20' ) start [2025-04-09 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871204', 'tblTempUsageDetail_20' ) end [2025-04-09 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:54:25] Production.INFO: ==27742== Releasing lock... [2025-04-09 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-09 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:55:05 [end_date_ymd] => 2025-04-09 17:55:05 [RateCDR] => 1 ) [2025-04-09 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:55:05' and `end` < '2025-04-09 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 17:55:19] Production.INFO: count ==4083 [2025-04-09 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:55:05 - End Time 2025-04-09 17:55:05 [2025-04-09 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871209', 'tblTempUsageDetail_20' ) start [2025-04-09 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871209', 'tblTempUsageDetail_20' ) end [2025-04-09 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871209', 'tblTempVendorCDR_20' ) start [2025-04-09 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871209', 'tblTempVendorCDR_20' ) end [2025-04-09 17:55:20] Production.INFO: ProcessCDR(1,14871209,1,1,2) [2025-04-09 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871209', 'tblTempUsageDetail_20' ) start [2025-04-09 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871209', 'tblTempUsageDetail_20' ) end [2025-04-09 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:55:26] Production.INFO: ==27825== Releasing lock... [2025-04-09 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:55:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-09 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:56:06 [end_date_ymd] => 2025-04-09 17:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:56:06' and `end` < '2025-04-09 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-09 17:56:19] Production.INFO: count ==4080 [2025-04-09 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-09 14:56:06 - End Time 2025-04-09 17:56:06 [2025-04-09 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871214', 'tblTempUsageDetail_20' ) start [2025-04-09 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871214', 'tblTempUsageDetail_20' ) end [2025-04-09 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871214', 'tblTempVendorCDR_20' ) start [2025-04-09 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871214', 'tblTempVendorCDR_20' ) end [2025-04-09 17:56:21] Production.INFO: ProcessCDR(1,14871214,1,1,2) [2025-04-09 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871214', 'tblTempUsageDetail_20' ) start [2025-04-09 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871214', 'tblTempUsageDetail_20' ) end [2025-04-09 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:56:26] Production.INFO: ==27906== Releasing lock... [2025-04-09 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:56:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-09 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:57:05 [end_date_ymd] => 2025-04-09 17:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 14:57:05' and `end` < '2025-04-09 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-09 17:57:18] Production.INFO: count ==4069 [2025-04-09 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:57:05 - End Time 2025-04-09 17:57:05 [2025-04-09 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871219', 'tblTempUsageDetail_20' ) start [2025-04-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871219', 'tblTempUsageDetail_20' ) end [2025-04-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871219', 'tblTempVendorCDR_20' ) start [2025-04-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871219', 'tblTempVendorCDR_20' ) end [2025-04-09 17:57:20] Production.INFO: ProcessCDR(1,14871219,1,1,2) [2025-04-09 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871219', 'tblTempUsageDetail_20' ) start [2025-04-09 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871219', 'tblTempUsageDetail_20' ) end [2025-04-09 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:57:25] Production.INFO: ==27988== Releasing lock... [2025-04-09 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:57:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-09 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:58:06 [end_date_ymd] => 2025-04-09 17:58:06 [RateCDR] => 1 ) [2025-04-09 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-09 14:58:06' and `end` < '2025-04-09 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-09 17:58:19] Production.INFO: count ==4055 [2025-04-09 17:58:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:58:06 - End Time 2025-04-09 17:58:06 [2025-04-09 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871224', 'tblTempUsageDetail_20' ) start [2025-04-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871224', 'tblTempUsageDetail_20' ) end [2025-04-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871224', 'tblTempVendorCDR_20' ) start [2025-04-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871224', 'tblTempVendorCDR_20' ) end [2025-04-09 17:58:21] Production.INFO: ProcessCDR(1,14871224,1,1,2) [2025-04-09 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871224', 'tblTempUsageDetail_20' ) start [2025-04-09 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871224', 'tblTempUsageDetail_20' ) end [2025-04-09 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:58:25] Production.INFO: ==28070== Releasing lock... [2025-04-09 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:58:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-09 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 14:59:05 [end_date_ymd] => 2025-04-09 17:59:05 [RateCDR] => 1 ) [2025-04-09 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 14:59:05' and `end` < '2025-04-09 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-09 17:59:18] Production.INFO: count ==4034 [2025-04-09 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-09 14:59:05 - End Time 2025-04-09 17:59:05 [2025-04-09 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871229', 'tblTempUsageDetail_20' ) start [2025-04-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871229', 'tblTempUsageDetail_20' ) end [2025-04-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871229', 'tblTempVendorCDR_20' ) start [2025-04-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871229', 'tblTempVendorCDR_20' ) end [2025-04-09 17:59:20] Production.INFO: ProcessCDR(1,14871229,1,1,2) [2025-04-09 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871229', 'tblTempUsageDetail_20' ) start [2025-04-09 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871229', 'tblTempUsageDetail_20' ) end [2025-04-09 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 17:59:25] Production.INFO: ==28153== Releasing lock... [2025-04-09 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 17:59:25] Production.INFO: 58 MB #Memory Used# [2025-04-09 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:00:07 [end_date_ymd] => 2025-04-09 18:00:07 [RateCDR] => 1 ) [2025-04-09 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-09 15:00:07' and `end` < '2025-04-09 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-09 18:00:20] Production.INFO: count ==4026 [2025-04-09 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-09 15:00:07 - End Time 2025-04-09 18:00:07 [2025-04-09 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871235', 'tblTempUsageDetail_20' ) start [2025-04-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871235', 'tblTempUsageDetail_20' ) end [2025-04-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871235', 'tblTempVendorCDR_20' ) start [2025-04-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871235', 'tblTempVendorCDR_20' ) end [2025-04-09 18:00:22] Production.INFO: ProcessCDR(1,14871235,1,1,2) [2025-04-09 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871235', 'tblTempUsageDetail_20' ) start [2025-04-09 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871235', 'tblTempUsageDetail_20' ) end [2025-04-09 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:00:28] Production.INFO: ==28279== Releasing lock... [2025-04-09 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:00:28] Production.INFO: 58 MB #Memory Used# [2025-04-09 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:01:05 [end_date_ymd] => 2025-04-09 18:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:01:05' and `end` < '2025-04-09 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-09 18:01:19] Production.INFO: count ==3978 [2025-04-09 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:01:05 - End Time 2025-04-09 18:01:05 [2025-04-09 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871240', 'tblTempUsageDetail_20' ) start [2025-04-09 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871240', 'tblTempUsageDetail_20' ) end [2025-04-09 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871240', 'tblTempVendorCDR_20' ) start [2025-04-09 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871240', 'tblTempVendorCDR_20' ) end [2025-04-09 18:01:20] Production.INFO: ProcessCDR(1,14871240,1,1,2) [2025-04-09 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871240', 'tblTempUsageDetail_20' ) start [2025-04-09 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871240', 'tblTempUsageDetail_20' ) end [2025-04-09 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:01:24] Production.INFO: ==28377== Releasing lock... [2025-04-09 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:01:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:02:06 [end_date_ymd] => 2025-04-09 18:02:06 [RateCDR] => 1 ) [2025-04-09 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:02:06' and `end` < '2025-04-09 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:02:19] Production.INFO: count ==3980 [2025-04-09 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:02:06 - End Time 2025-04-09 18:02:06 [2025-04-09 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871245', 'tblTempUsageDetail_20' ) start [2025-04-09 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871245', 'tblTempUsageDetail_20' ) end [2025-04-09 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871245', 'tblTempVendorCDR_20' ) start [2025-04-09 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871245', 'tblTempVendorCDR_20' ) end [2025-04-09 18:02:21] Production.INFO: ProcessCDR(1,14871245,1,1,2) [2025-04-09 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871245', 'tblTempUsageDetail_20' ) start [2025-04-09 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871245', 'tblTempUsageDetail_20' ) end [2025-04-09 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:02:26] Production.INFO: ==28461== Releasing lock... [2025-04-09 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:02:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:03:05 [end_date_ymd] => 2025-04-09 18:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:03:05' and `end` < '2025-04-09 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-09 18:03:19] Production.INFO: count ==3985 [2025-04-09 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:03:05 - End Time 2025-04-09 18:03:05 [2025-04-09 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871250', 'tblTempUsageDetail_20' ) start [2025-04-09 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871250', 'tblTempUsageDetail_20' ) end [2025-04-09 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871250', 'tblTempVendorCDR_20' ) start [2025-04-09 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871250', 'tblTempVendorCDR_20' ) end [2025-04-09 18:03:20] Production.INFO: ProcessCDR(1,14871250,1,1,2) [2025-04-09 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871250', 'tblTempUsageDetail_20' ) start [2025-04-09 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871250', 'tblTempUsageDetail_20' ) end [2025-04-09 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:03:25] Production.INFO: ==28543== Releasing lock... [2025-04-09 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:03:25] Production.INFO: 58 MB #Memory Used# [2025-04-09 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:04:06 [end_date_ymd] => 2025-04-09 18:04:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:04:06' and `end` < '2025-04-09 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-09 18:04:19] Production.INFO: count ==3975 [2025-04-09 18:04:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:04:06 - End Time 2025-04-09 18:04:06 [2025-04-09 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871255', 'tblTempUsageDetail_20' ) start [2025-04-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871255', 'tblTempUsageDetail_20' ) end [2025-04-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871255', 'tblTempVendorCDR_20' ) start [2025-04-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871255', 'tblTempVendorCDR_20' ) end [2025-04-09 18:04:20] Production.INFO: ProcessCDR(1,14871255,1,1,2) [2025-04-09 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871255', 'tblTempUsageDetail_20' ) start [2025-04-09 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871255', 'tblTempUsageDetail_20' ) end [2025-04-09 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:04:25] Production.INFO: ==28628== Releasing lock... [2025-04-09 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:04:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:05:05 [end_date_ymd] => 2025-04-09 18:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:05:05' and `end` < '2025-04-09 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-09 18:05:18] Production.INFO: count ==3959 [2025-04-09 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:05:05 - End Time 2025-04-09 18:05:05 [2025-04-09 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871260', 'tblTempUsageDetail_20' ) start [2025-04-09 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871260', 'tblTempUsageDetail_20' ) end [2025-04-09 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871260', 'tblTempVendorCDR_20' ) start [2025-04-09 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871260', 'tblTempVendorCDR_20' ) end [2025-04-09 18:05:19] Production.INFO: ProcessCDR(1,14871260,1,1,2) [2025-04-09 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871260', 'tblTempUsageDetail_20' ) start [2025-04-09 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871260', 'tblTempUsageDetail_20' ) end [2025-04-09 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:05:23] Production.INFO: ==28711== Releasing lock... [2025-04-09 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:05:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-09 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:06:05 [end_date_ymd] => 2025-04-09 18:06:05 [RateCDR] => 1 ) [2025-04-09 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:06:05' and `end` < '2025-04-09 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:06:19] Production.INFO: count ==3949 [2025-04-09 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:06:05 - End Time 2025-04-09 18:06:05 [2025-04-09 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871265', 'tblTempUsageDetail_20' ) start [2025-04-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871265', 'tblTempUsageDetail_20' ) end [2025-04-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871265', 'tblTempVendorCDR_20' ) start [2025-04-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871265', 'tblTempVendorCDR_20' ) end [2025-04-09 18:06:20] Production.INFO: ProcessCDR(1,14871265,1,1,2) [2025-04-09 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871265', 'tblTempUsageDetail_20' ) start [2025-04-09 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871265', 'tblTempUsageDetail_20' ) end [2025-04-09 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:06:23] Production.INFO: ==28793== Releasing lock... [2025-04-09 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:06:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:07:06 [end_date_ymd] => 2025-04-09 18:07:06 [RateCDR] => 1 ) [2025-04-09 18:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:07:06' and `end` < '2025-04-09 18:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:07:19] Production.INFO: count ==3929 [2025-04-09 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:07:06 - End Time 2025-04-09 18:07:06 [2025-04-09 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871270', 'tblTempUsageDetail_20' ) start [2025-04-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871270', 'tblTempUsageDetail_20' ) end [2025-04-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871270', 'tblTempVendorCDR_20' ) start [2025-04-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871270', 'tblTempVendorCDR_20' ) end [2025-04-09 18:07:21] Production.INFO: ProcessCDR(1,14871270,1,1,2) [2025-04-09 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871270', 'tblTempUsageDetail_20' ) start [2025-04-09 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871270', 'tblTempUsageDetail_20' ) end [2025-04-09 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:07:25] Production.INFO: ==28875== Releasing lock... [2025-04-09 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:07:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-09 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:08:05 [end_date_ymd] => 2025-04-09 18:08:05 [RateCDR] => 1 ) [2025-04-09 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:08:05' and `end` < '2025-04-09 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:08:18] Production.INFO: count ==3922 [2025-04-09 18:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:08:05 - End Time 2025-04-09 18:08:05 [2025-04-09 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871275', 'tblTempUsageDetail_20' ) start [2025-04-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871275', 'tblTempUsageDetail_20' ) end [2025-04-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871275', 'tblTempVendorCDR_20' ) start [2025-04-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871275', 'tblTempVendorCDR_20' ) end [2025-04-09 18:08:20] Production.INFO: ProcessCDR(1,14871275,1,1,2) [2025-04-09 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871275', 'tblTempUsageDetail_20' ) start [2025-04-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871275', 'tblTempUsageDetail_20' ) end [2025-04-09 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:08:23] Production.INFO: ==28964== Releasing lock... [2025-04-09 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:08:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-09 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:09:05 [end_date_ymd] => 2025-04-09 18:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:09:05' and `end` < '2025-04-09 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-09 18:09:19] Production.INFO: count ==3921 [2025-04-09 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:09:05 - End Time 2025-04-09 18:09:05 [2025-04-09 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871280', 'tblTempUsageDetail_20' ) start [2025-04-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871280', 'tblTempUsageDetail_20' ) end [2025-04-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871280', 'tblTempVendorCDR_20' ) start [2025-04-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871280', 'tblTempVendorCDR_20' ) end [2025-04-09 18:09:20] Production.INFO: ProcessCDR(1,14871280,1,1,2) [2025-04-09 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871280', 'tblTempUsageDetail_20' ) start [2025-04-09 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871280', 'tblTempUsageDetail_20' ) end [2025-04-09 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:09:25] Production.INFO: ==29051== Releasing lock... [2025-04-09 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:09:25] Production.INFO: 58 MB #Memory Used# [2025-04-09 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:10:06 [end_date_ymd] => 2025-04-09 18:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:10:06' and `end` < '2025-04-09 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-09 18:10:20] Production.INFO: count ==3910 [2025-04-09 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:10:06 - End Time 2025-04-09 18:10:06 [2025-04-09 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871286', 'tblTempUsageDetail_20' ) start [2025-04-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871286', 'tblTempUsageDetail_20' ) end [2025-04-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871286', 'tblTempVendorCDR_20' ) start [2025-04-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871286', 'tblTempVendorCDR_20' ) end [2025-04-09 18:10:21] Production.INFO: ProcessCDR(1,14871286,1,1,2) [2025-04-09 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871286', 'tblTempUsageDetail_20' ) start [2025-04-09 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871286', 'tblTempUsageDetail_20' ) end [2025-04-09 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:10:24] Production.INFO: ==29141== Releasing lock... [2025-04-09 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-09 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:11:05 [end_date_ymd] => 2025-04-09 18:11:05 [RateCDR] => 1 ) [2025-04-09 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:11:05' and `end` < '2025-04-09 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:11:19] Production.INFO: count ==3864 [2025-04-09 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:11:05 - End Time 2025-04-09 18:11:05 [2025-04-09 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871291', 'tblTempUsageDetail_20' ) start [2025-04-09 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871291', 'tblTempUsageDetail_20' ) end [2025-04-09 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871291', 'tblTempVendorCDR_20' ) start [2025-04-09 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871291', 'tblTempVendorCDR_20' ) end [2025-04-09 18:11:20] Production.INFO: ProcessCDR(1,14871291,1,1,2) [2025-04-09 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871291', 'tblTempUsageDetail_20' ) start [2025-04-09 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871291', 'tblTempUsageDetail_20' ) end [2025-04-09 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:11:25] Production.INFO: ==29232== Releasing lock... [2025-04-09 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:11:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-09 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:12:05 [end_date_ymd] => 2025-04-09 18:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:12:05' and `end` < '2025-04-09 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-09 18:12:18] Production.INFO: count ==3851 [2025-04-09 18:12:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:12:05 - End Time 2025-04-09 18:12:05 [2025-04-09 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871296', 'tblTempUsageDetail_20' ) start [2025-04-09 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871296', 'tblTempUsageDetail_20' ) end [2025-04-09 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871296', 'tblTempVendorCDR_20' ) start [2025-04-09 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871296', 'tblTempVendorCDR_20' ) end [2025-04-09 18:12:20] Production.INFO: ProcessCDR(1,14871296,1,1,2) [2025-04-09 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871296', 'tblTempUsageDetail_20' ) start [2025-04-09 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871296', 'tblTempUsageDetail_20' ) end [2025-04-09 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:12:23] Production.INFO: ==29314== Releasing lock... [2025-04-09 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:12:23] Production.INFO: 57 MB #Memory Used# [2025-04-09 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:13:05 [end_date_ymd] => 2025-04-09 18:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:13:05' and `end` < '2025-04-09 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-09 18:13:19] Production.INFO: count ==3846 [2025-04-09 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:13:05 - End Time 2025-04-09 18:13:05 [2025-04-09 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871301', 'tblTempUsageDetail_20' ) start [2025-04-09 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871301', 'tblTempUsageDetail_20' ) end [2025-04-09 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871301', 'tblTempVendorCDR_20' ) start [2025-04-09 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871301', 'tblTempVendorCDR_20' ) end [2025-04-09 18:13:20] Production.INFO: ProcessCDR(1,14871301,1,1,2) [2025-04-09 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871301', 'tblTempUsageDetail_20' ) start [2025-04-09 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871301', 'tblTempUsageDetail_20' ) end [2025-04-09 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:13:24] Production.INFO: ==29397== Releasing lock... [2025-04-09 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:13:24] Production.INFO: 57 MB #Memory Used# [2025-04-09 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:14:05 [end_date_ymd] => 2025-04-09 18:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:14:05' and `end` < '2025-04-09 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-09 18:14:18] Production.INFO: count ==3830 [2025-04-09 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:14:05 - End Time 2025-04-09 18:14:05 [2025-04-09 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871306', 'tblTempUsageDetail_20' ) start [2025-04-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871306', 'tblTempUsageDetail_20' ) end [2025-04-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871306', 'tblTempVendorCDR_20' ) start [2025-04-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871306', 'tblTempVendorCDR_20' ) end [2025-04-09 18:14:19] Production.INFO: ProcessCDR(1,14871306,1,1,2) [2025-04-09 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871306', 'tblTempUsageDetail_20' ) start [2025-04-09 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871306', 'tblTempUsageDetail_20' ) end [2025-04-09 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:14:24] Production.INFO: ==29482== Releasing lock... [2025-04-09 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:14:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-09 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:15:06 [end_date_ymd] => 2025-04-09 18:15:06 [RateCDR] => 1 ) [2025-04-09 18: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-09 15:15:06' and `end` < '2025-04-09 18: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-09 18:15:19] Production.INFO: count ==3825 [2025-04-09 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:15:06 - End Time 2025-04-09 18:15:06 [2025-04-09 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871311', 'tblTempUsageDetail_20' ) start [2025-04-09 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871311', 'tblTempUsageDetail_20' ) end [2025-04-09 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871311', 'tblTempVendorCDR_20' ) start [2025-04-09 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871311', 'tblTempVendorCDR_20' ) end [2025-04-09 18:15:21] Production.INFO: ProcessCDR(1,14871311,1,1,2) [2025-04-09 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871311', 'tblTempUsageDetail_20' ) start [2025-04-09 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871311', 'tblTempUsageDetail_20' ) end [2025-04-09 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:15:26] Production.INFO: ==29607== Releasing lock... [2025-04-09 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:15:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-09 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:16:06 [end_date_ymd] => 2025-04-09 18:16:06 [RateCDR] => 1 ) [2025-04-09 18: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-09 15:16:06' and `end` < '2025-04-09 18: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-09 18:16:19] Production.INFO: count ==3811 [2025-04-09 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:16:06 - End Time 2025-04-09 18:16:06 [2025-04-09 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871316', 'tblTempUsageDetail_20' ) start [2025-04-09 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871316', 'tblTempUsageDetail_20' ) end [2025-04-09 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871316', 'tblTempVendorCDR_20' ) start [2025-04-09 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871316', 'tblTempVendorCDR_20' ) end [2025-04-09 18:16:21] Production.INFO: ProcessCDR(1,14871316,1,1,2) [2025-04-09 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871316', 'tblTempUsageDetail_20' ) start [2025-04-09 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871316', 'tblTempUsageDetail_20' ) end [2025-04-09 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:16:26] Production.INFO: ==29695== Releasing lock... [2025-04-09 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:16:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-09 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:17:05 [end_date_ymd] => 2025-04-09 18:17:05 [RateCDR] => 1 ) [2025-04-09 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:17:05' and `end` < '2025-04-09 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:17:19] Production.INFO: count ==3805 [2025-04-09 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:17:05 - End Time 2025-04-09 18:17:05 [2025-04-09 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871321', 'tblTempUsageDetail_20' ) start [2025-04-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871321', 'tblTempUsageDetail_20' ) end [2025-04-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871321', 'tblTempVendorCDR_20' ) start [2025-04-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871321', 'tblTempVendorCDR_20' ) end [2025-04-09 18:17:20] Production.INFO: ProcessCDR(1,14871321,1,1,2) [2025-04-09 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871321', 'tblTempUsageDetail_20' ) start [2025-04-09 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871321', 'tblTempUsageDetail_20' ) end [2025-04-09 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:17:23] Production.INFO: ==29778== Releasing lock... [2025-04-09 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:17:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-09 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:18:05 [end_date_ymd] => 2025-04-09 18:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:18:05' and `end` < '2025-04-09 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-09 18:18:19] Production.INFO: count ==3795 [2025-04-09 18:18:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:18:05 - End Time 2025-04-09 18:18:05 [2025-04-09 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871326', 'tblTempUsageDetail_20' ) start [2025-04-09 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871326', 'tblTempUsageDetail_20' ) end [2025-04-09 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871326', 'tblTempVendorCDR_20' ) start [2025-04-09 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871326', 'tblTempVendorCDR_20' ) end [2025-04-09 18:18:20] Production.INFO: ProcessCDR(1,14871326,1,1,2) [2025-04-09 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871326', 'tblTempUsageDetail_20' ) start [2025-04-09 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871326', 'tblTempUsageDetail_20' ) end [2025-04-09 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:18:25] Production.INFO: ==29858== Releasing lock... [2025-04-09 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:18:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:19:05 [end_date_ymd] => 2025-04-09 18:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:19:05' and `end` < '2025-04-09 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-09 18:19:18] Production.INFO: count ==3781 [2025-04-09 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:19:05 - End Time 2025-04-09 18:19:05 [2025-04-09 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871331', 'tblTempUsageDetail_20' ) start [2025-04-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871331', 'tblTempUsageDetail_20' ) end [2025-04-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871331', 'tblTempVendorCDR_20' ) start [2025-04-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871331', 'tblTempVendorCDR_20' ) end [2025-04-09 18:19:20] Production.INFO: ProcessCDR(1,14871331,1,1,2) [2025-04-09 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871331', 'tblTempUsageDetail_20' ) start [2025-04-09 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871331', 'tblTempUsageDetail_20' ) end [2025-04-09 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:19:23] Production.INFO: ==29943== Releasing lock... [2025-04-09 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:19:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:20:06 [end_date_ymd] => 2025-04-09 18:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:20:06' and `end` < '2025-04-09 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-09 18:20:20] Production.INFO: count ==3769 [2025-04-09 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:20:06 - End Time 2025-04-09 18:20:06 [2025-04-09 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871336', 'tblTempUsageDetail_20' ) start [2025-04-09 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871336', 'tblTempUsageDetail_20' ) end [2025-04-09 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871336', 'tblTempVendorCDR_20' ) start [2025-04-09 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871336', 'tblTempVendorCDR_20' ) end [2025-04-09 18:20:21] Production.INFO: ProcessCDR(1,14871336,1,1,2) [2025-04-09 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871336', 'tblTempUsageDetail_20' ) start [2025-04-09 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871336', 'tblTempUsageDetail_20' ) end [2025-04-09 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:20:26] Production.INFO: ==30035== Releasing lock... [2025-04-09 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:20:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-09 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:21:05 [end_date_ymd] => 2025-04-09 18:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:21:05' and `end` < '2025-04-09 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-09 18:21:18] Production.INFO: count ==3651 [2025-04-09 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:21:05 - End Time 2025-04-09 18:21:05 [2025-04-09 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871342', 'tblTempUsageDetail_20' ) start [2025-04-09 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871342', 'tblTempUsageDetail_20' ) end [2025-04-09 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871342', 'tblTempVendorCDR_20' ) start [2025-04-09 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871342', 'tblTempVendorCDR_20' ) end [2025-04-09 18:21:19] Production.INFO: ProcessCDR(1,14871342,1,1,2) [2025-04-09 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871342', 'tblTempUsageDetail_20' ) start [2025-04-09 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871342', 'tblTempUsageDetail_20' ) end [2025-04-09 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:21:23] Production.INFO: ==30118== Releasing lock... [2025-04-09 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:21:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-09 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:22:05 [end_date_ymd] => 2025-04-09 18:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:22:05' and `end` < '2025-04-09 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-09 18:22:19] Production.INFO: count ==3627 [2025-04-09 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:22:05 - End Time 2025-04-09 18:22:05 [2025-04-09 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871347', 'tblTempUsageDetail_20' ) start [2025-04-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871347', 'tblTempUsageDetail_20' ) end [2025-04-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871347', 'tblTempVendorCDR_20' ) start [2025-04-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871347', 'tblTempVendorCDR_20' ) end [2025-04-09 18:22:20] Production.INFO: ProcessCDR(1,14871347,1,1,2) [2025-04-09 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871347', 'tblTempUsageDetail_20' ) start [2025-04-09 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871347', 'tblTempUsageDetail_20' ) end [2025-04-09 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:22:24] Production.INFO: ==30202== Releasing lock... [2025-04-09 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:22:24] Production.INFO: 55 MB #Memory Used# [2025-04-09 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:23:05 [end_date_ymd] => 2025-04-09 18:23:05 [RateCDR] => 1 ) [2025-04-09 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:23:05' and `end` < '2025-04-09 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:23:18] Production.INFO: count ==3607 [2025-04-09 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:23:05 - End Time 2025-04-09 18:23:05 [2025-04-09 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871352', 'tblTempUsageDetail_20' ) start [2025-04-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871352', 'tblTempUsageDetail_20' ) end [2025-04-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871352', 'tblTempVendorCDR_20' ) start [2025-04-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871352', 'tblTempVendorCDR_20' ) end [2025-04-09 18:23:20] Production.INFO: ProcessCDR(1,14871352,1,1,2) [2025-04-09 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871352', 'tblTempUsageDetail_20' ) start [2025-04-09 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871352', 'tblTempUsageDetail_20' ) end [2025-04-09 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:23:23] Production.INFO: ==30293== Releasing lock... [2025-04-09 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:23:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-09 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:24:05 [end_date_ymd] => 2025-04-09 18:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:24:05' and `end` < '2025-04-09 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-09 18:24:19] Production.INFO: count ==3601 [2025-04-09 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:24:05 - End Time 2025-04-09 18:24:05 [2025-04-09 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871357', 'tblTempUsageDetail_20' ) start [2025-04-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871357', 'tblTempUsageDetail_20' ) end [2025-04-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871357', 'tblTempVendorCDR_20' ) start [2025-04-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871357', 'tblTempVendorCDR_20' ) end [2025-04-09 18:24:20] Production.INFO: ProcessCDR(1,14871357,1,1,2) [2025-04-09 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871357', 'tblTempUsageDetail_20' ) start [2025-04-09 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871357', 'tblTempUsageDetail_20' ) end [2025-04-09 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:24:25] Production.INFO: ==30382== Releasing lock... [2025-04-09 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:24:25] Production.INFO: 55 MB #Memory Used# [2025-04-09 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:25:04 [end_date_ymd] => 2025-04-09 18:25:04 [RateCDR] => 1 ) [2025-04-09 18: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-04-09 15:25:04' and `end` < '2025-04-09 18: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-04-09 18:25:18] Production.INFO: count ==3595 [2025-04-09 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:25:04 - End Time 2025-04-09 18:25:04 [2025-04-09 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871362', 'tblTempUsageDetail_20' ) start [2025-04-09 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871362', 'tblTempUsageDetail_20' ) end [2025-04-09 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871362', 'tblTempVendorCDR_20' ) start [2025-04-09 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871362', 'tblTempVendorCDR_20' ) end [2025-04-09 18:25:19] Production.INFO: ProcessCDR(1,14871362,1,1,2) [2025-04-09 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:25:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:25:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871362', 'tblTempUsageDetail_20' ) start [2025-04-09 18:25:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871362', 'tblTempUsageDetail_20' ) end [2025-04-09 18:25:47] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:25:47] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:25:47] Production.INFO: ==30475== Releasing lock... [2025-04-09 18:25:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:25:47] Production.INFO: 55 MB #Memory Used# [2025-04-09 18:26:28] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:26:28 [end_date_ymd] => 2025-04-09 18:26:28 [RateCDR] => 1 ) [2025-04-09 18:26:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:26:28' and `end` < '2025-04-09 18:26:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:26:41] Production.INFO: count ==3588 [2025-04-09 18:27:32] Production.ERROR: pbx CDR StartTime 2025-04-09 15:26:28 - End Time 2025-04-09 18:26:28 [2025-04-09 18:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871367', 'tblTempUsageDetail_20' ) start [2025-04-09 18:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871367', 'tblTempUsageDetail_20' ) end [2025-04-09 18:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871367', 'tblTempVendorCDR_20' ) start [2025-04-09 18:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871367', 'tblTempVendorCDR_20' ) end [2025-04-09 18:27:37] Production.INFO: ProcessCDR(1,14871367,1,1,2) [2025-04-09 18:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:27:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:27:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:28:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:28:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871367', 'tblTempUsageDetail_20' ) start [2025-04-09 18:28:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871367', 'tblTempUsageDetail_20' ) end [2025-04-09 18:28:17] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:28:17] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:28:18] Production.INFO: ==30568== Releasing lock... [2025-04-09 18:28:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:28:18] Production.INFO: 54.75 MB #Memory Used# [2025-04-09 18:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:29:22 [end_date_ymd] => 2025-04-09 18:29:22 [RateCDR] => 1 ) [2025-04-09 18:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 15:29:22' and `end` < '2025-04-09 18:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:29:36] Production.INFO: count ==3548 [2025-04-09 18:29:55] Production.ERROR: pbx CDR StartTime 2025-04-09 15:29:22 - End Time 2025-04-09 18:29:22 [2025-04-09 18:29:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:29:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871378', 'tblTempUsageDetail_20' ) start [2025-04-09 18:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871378', 'tblTempUsageDetail_20' ) end [2025-04-09 18:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871378', 'tblTempVendorCDR_20' ) start [2025-04-09 18:30:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871378', 'tblTempVendorCDR_20' ) end [2025-04-09 18:30:00] Production.INFO: ProcessCDR(1,14871378,1,1,2) [2025-04-09 18:30:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:30:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:30:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871378', 'tblTempUsageDetail_20' ) start [2025-04-09 18:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871378', 'tblTempUsageDetail_20' ) end [2025-04-09 18:30:38] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:30:38] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:30:40] Production.INFO: ==30844== Releasing lock... [2025-04-09 18:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:30:40] Production.INFO: 54.5 MB #Memory Used# [2025-04-09 18:31:14] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:31:14 [end_date_ymd] => 2025-04-09 18:31:14 [RateCDR] => 1 ) [2025-04-09 18:31:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 15:31:14' and `end` < '2025-04-09 18:31:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:31:27] Production.INFO: count ==3462 [2025-04-09 18:31:28] Production.ERROR: pbx CDR StartTime 2025-04-09 15:31:14 - End Time 2025-04-09 18:31:14 [2025-04-09 18:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871387', 'tblTempUsageDetail_20' ) start [2025-04-09 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871387', 'tblTempUsageDetail_20' ) end [2025-04-09 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871387', 'tblTempVendorCDR_20' ) start [2025-04-09 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871387', 'tblTempVendorCDR_20' ) end [2025-04-09 18:31:29] Production.INFO: ProcessCDR(1,14871387,1,1,2) [2025-04-09 18:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871387', 'tblTempUsageDetail_20' ) start [2025-04-09 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871387', 'tblTempUsageDetail_20' ) end [2025-04-09 18:31:34] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:31:34] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:31:34] Production.INFO: ==31041== Releasing lock... [2025-04-09 18:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:31:34] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:32:05 [end_date_ymd] => 2025-04-09 18:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:32:05' and `end` < '2025-04-09 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-09 18:32:19] Production.INFO: count ==3437 [2025-04-09 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:32:05 - End Time 2025-04-09 18:32:05 [2025-04-09 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871392', 'tblTempUsageDetail_20' ) start [2025-04-09 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871392', 'tblTempUsageDetail_20' ) end [2025-04-09 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871392', 'tblTempVendorCDR_20' ) start [2025-04-09 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871392', 'tblTempVendorCDR_20' ) end [2025-04-09 18:32:20] Production.INFO: ProcessCDR(1,14871392,1,1,2) [2025-04-09 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871392', 'tblTempUsageDetail_20' ) start [2025-04-09 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871392', 'tblTempUsageDetail_20' ) end [2025-04-09 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:32:23] Production.INFO: ==31120== Releasing lock... [2025-04-09 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:32:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-09 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:33:05 [end_date_ymd] => 2025-04-09 18:33:05 [RateCDR] => 1 ) [2025-04-09 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:33:05' and `end` < '2025-04-09 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:33:18] Production.INFO: count ==3426 [2025-04-09 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:33:05 - End Time 2025-04-09 18:33:05 [2025-04-09 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871397', 'tblTempUsageDetail_20' ) start [2025-04-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871397', 'tblTempUsageDetail_20' ) end [2025-04-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871397', 'tblTempVendorCDR_20' ) start [2025-04-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871397', 'tblTempVendorCDR_20' ) end [2025-04-09 18:33:20] Production.INFO: ProcessCDR(1,14871397,1,1,2) [2025-04-09 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871397', 'tblTempUsageDetail_20' ) start [2025-04-09 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871397', 'tblTempUsageDetail_20' ) end [2025-04-09 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:33:25] Production.INFO: ==31194== Releasing lock... [2025-04-09 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:33:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-09 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:34:05 [end_date_ymd] => 2025-04-09 18:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:34:05' and `end` < '2025-04-09 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-09 18:34:18] Production.INFO: count ==3411 [2025-04-09 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:34:05 - End Time 2025-04-09 18:34:05 [2025-04-09 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871402', 'tblTempUsageDetail_20' ) start [2025-04-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871402', 'tblTempUsageDetail_20' ) end [2025-04-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871402', 'tblTempVendorCDR_20' ) start [2025-04-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871402', 'tblTempVendorCDR_20' ) end [2025-04-09 18:34:19] Production.INFO: ProcessCDR(1,14871402,1,1,2) [2025-04-09 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871402', 'tblTempUsageDetail_20' ) start [2025-04-09 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871402', 'tblTempUsageDetail_20' ) end [2025-04-09 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:34:23] Production.INFO: ==31267== Releasing lock... [2025-04-09 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:34:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-09 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:35:05 [end_date_ymd] => 2025-04-09 18:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:35:05' and `end` < '2025-04-09 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-09 18:35:19] Production.INFO: count ==3401 [2025-04-09 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:35:05 - End Time 2025-04-09 18:35:05 [2025-04-09 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871407', 'tblTempUsageDetail_20' ) start [2025-04-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871407', 'tblTempUsageDetail_20' ) end [2025-04-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871407', 'tblTempVendorCDR_20' ) start [2025-04-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871407', 'tblTempVendorCDR_20' ) end [2025-04-09 18:35:20] Production.INFO: ProcessCDR(1,14871407,1,1,2) [2025-04-09 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871407', 'tblTempUsageDetail_20' ) start [2025-04-09 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871407', 'tblTempUsageDetail_20' ) end [2025-04-09 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:35:23] Production.INFO: ==31339== Releasing lock... [2025-04-09 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:35:23] Production.INFO: 54.25 MB #Memory Used# [2025-04-09 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:36:05 [end_date_ymd] => 2025-04-09 18:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:36:05' and `end` < '2025-04-09 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-09 18:36:18] Production.INFO: count ==3390 [2025-04-09 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:36:05 - End Time 2025-04-09 18:36:05 [2025-04-09 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871412', 'tblTempUsageDetail_20' ) start [2025-04-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871412', 'tblTempUsageDetail_20' ) end [2025-04-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871412', 'tblTempVendorCDR_20' ) start [2025-04-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871412', 'tblTempVendorCDR_20' ) end [2025-04-09 18:36:19] Production.INFO: ProcessCDR(1,14871412,1,1,2) [2025-04-09 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871412', 'tblTempUsageDetail_20' ) start [2025-04-09 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871412', 'tblTempUsageDetail_20' ) end [2025-04-09 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:36:25] Production.INFO: ==31411== Releasing lock... [2025-04-09 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:36:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-09 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:37:05 [end_date_ymd] => 2025-04-09 18:37:05 [RateCDR] => 1 ) [2025-04-09 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:37:05' and `end` < '2025-04-09 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:37:19] Production.INFO: count ==3371 [2025-04-09 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:37:05 - End Time 2025-04-09 18:37:05 [2025-04-09 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871417', 'tblTempUsageDetail_20' ) start [2025-04-09 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871417', 'tblTempUsageDetail_20' ) end [2025-04-09 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871417', 'tblTempVendorCDR_20' ) start [2025-04-09 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871417', 'tblTempVendorCDR_20' ) end [2025-04-09 18:37:20] Production.INFO: ProcessCDR(1,14871417,1,1,2) [2025-04-09 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871417', 'tblTempUsageDetail_20' ) start [2025-04-09 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871417', 'tblTempUsageDetail_20' ) end [2025-04-09 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:37:25] Production.INFO: ==31487== Releasing lock... [2025-04-09 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:37:25] Production.INFO: 54 MB #Memory Used# [2025-04-09 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:38:06 [end_date_ymd] => 2025-04-09 18:38:06 [RateCDR] => 1 ) [2025-04-09 18: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 15:38:06' and `end` < '2025-04-09 18: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-09 18:38:19] Production.INFO: count ==3365 [2025-04-09 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:38:06 - End Time 2025-04-09 18:38:06 [2025-04-09 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871422', 'tblTempUsageDetail_20' ) start [2025-04-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871422', 'tblTempUsageDetail_20' ) end [2025-04-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871422', 'tblTempVendorCDR_20' ) start [2025-04-09 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871422', 'tblTempVendorCDR_20' ) end [2025-04-09 18:38:21] Production.INFO: ProcessCDR(1,14871422,1,1,2) [2025-04-09 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871422', 'tblTempUsageDetail_20' ) start [2025-04-09 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871422', 'tblTempUsageDetail_20' ) end [2025-04-09 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:38:26] Production.INFO: ==31563== Releasing lock... [2025-04-09 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:38:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-09 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:39:05 [end_date_ymd] => 2025-04-09 18:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:39:05' and `end` < '2025-04-09 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-09 18:39:19] Production.INFO: count ==3353 [2025-04-09 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:39:05 - End Time 2025-04-09 18:39:05 [2025-04-09 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871427', 'tblTempUsageDetail_20' ) start [2025-04-09 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871427', 'tblTempUsageDetail_20' ) end [2025-04-09 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871427', 'tblTempVendorCDR_20' ) start [2025-04-09 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871427', 'tblTempVendorCDR_20' ) end [2025-04-09 18:39:20] Production.INFO: ProcessCDR(1,14871427,1,1,2) [2025-04-09 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871427', 'tblTempUsageDetail_20' ) start [2025-04-09 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871427', 'tblTempUsageDetail_20' ) end [2025-04-09 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:39:23] Production.INFO: ==31637== Releasing lock... [2025-04-09 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:39:23] Production.INFO: 53 MB #Memory Used# [2025-04-09 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:40:06 [end_date_ymd] => 2025-04-09 18:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:40:06' and `end` < '2025-04-09 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-09 18:40:19] Production.INFO: count ==3341 [2025-04-09 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:40:06 - End Time 2025-04-09 18:40:06 [2025-04-09 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871433', 'tblTempUsageDetail_20' ) start [2025-04-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871433', 'tblTempUsageDetail_20' ) end [2025-04-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871433', 'tblTempVendorCDR_20' ) start [2025-04-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871433', 'tblTempVendorCDR_20' ) end [2025-04-09 18:40:20] Production.INFO: ProcessCDR(1,14871433,1,1,2) [2025-04-09 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871433', 'tblTempUsageDetail_20' ) start [2025-04-09 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871433', 'tblTempUsageDetail_20' ) end [2025-04-09 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:40:26] Production.INFO: ==31710== Releasing lock... [2025-04-09 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:40:26] Production.INFO: 53 MB #Memory Used# [2025-04-09 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:41:05 [end_date_ymd] => 2025-04-09 18:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:41:05' and `end` < '2025-04-09 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-09 18:41:18] Production.INFO: count ==3275 [2025-04-09 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:41:05 - End Time 2025-04-09 18:41:05 [2025-04-09 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871438', 'tblTempUsageDetail_20' ) start [2025-04-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871438', 'tblTempUsageDetail_20' ) end [2025-04-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871438', 'tblTempVendorCDR_20' ) start [2025-04-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871438', 'tblTempVendorCDR_20' ) end [2025-04-09 18:41:19] Production.INFO: ProcessCDR(1,14871438,1,1,2) [2025-04-09 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871438', 'tblTempUsageDetail_20' ) start [2025-04-09 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871438', 'tblTempUsageDetail_20' ) end [2025-04-09 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:41:24] Production.INFO: ==31785== Releasing lock... [2025-04-09 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:41:24] Production.INFO: 53.5 MB #Memory Used# [2025-04-09 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:42:05 [end_date_ymd] => 2025-04-09 18:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:42:05' and `end` < '2025-04-09 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-09 18:42:19] Production.INFO: count ==3243 [2025-04-09 18:42:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:42:05 - End Time 2025-04-09 18:42:05 [2025-04-09 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871443', 'tblTempUsageDetail_20' ) start [2025-04-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871443', 'tblTempUsageDetail_20' ) end [2025-04-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871443', 'tblTempVendorCDR_20' ) start [2025-04-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871443', 'tblTempVendorCDR_20' ) end [2025-04-09 18:42:19] Production.INFO: ProcessCDR(1,14871443,1,1,2) [2025-04-09 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871443', 'tblTempUsageDetail_20' ) start [2025-04-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871443', 'tblTempUsageDetail_20' ) end [2025-04-09 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:42:23] Production.INFO: ==31854== Releasing lock... [2025-04-09 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:42:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-09 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:43:05 [end_date_ymd] => 2025-04-09 18:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:43:05' and `end` < '2025-04-09 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-09 18:43:18] Production.INFO: count ==3235 [2025-04-09 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:43:05 - End Time 2025-04-09 18:43:05 [2025-04-09 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871448', 'tblTempUsageDetail_20' ) start [2025-04-09 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871448', 'tblTempUsageDetail_20' ) end [2025-04-09 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871448', 'tblTempVendorCDR_20' ) start [2025-04-09 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871448', 'tblTempVendorCDR_20' ) end [2025-04-09 18:43:19] Production.INFO: ProcessCDR(1,14871448,1,1,2) [2025-04-09 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871448', 'tblTempUsageDetail_20' ) start [2025-04-09 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871448', 'tblTempUsageDetail_20' ) end [2025-04-09 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:43:25] Production.INFO: ==31923== Releasing lock... [2025-04-09 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:43:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-09 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:44:05 [end_date_ymd] => 2025-04-09 18:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:44:05' and `end` < '2025-04-09 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-09 18:44:19] Production.INFO: count ==3233 [2025-04-09 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:44:05 - End Time 2025-04-09 18:44:05 [2025-04-09 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871453', 'tblTempUsageDetail_20' ) start [2025-04-09 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871453', 'tblTempUsageDetail_20' ) end [2025-04-09 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871453', 'tblTempVendorCDR_20' ) start [2025-04-09 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871453', 'tblTempVendorCDR_20' ) end [2025-04-09 18:44:20] Production.INFO: ProcessCDR(1,14871453,1,1,2) [2025-04-09 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871453', 'tblTempUsageDetail_20' ) start [2025-04-09 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871453', 'tblTempUsageDetail_20' ) end [2025-04-09 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:44:25] Production.INFO: ==32000== Releasing lock... [2025-04-09 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:44:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-09 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:45:05 [end_date_ymd] => 2025-04-09 18:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:45:05' and `end` < '2025-04-09 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-09 18:45:18] Production.INFO: count ==3222 [2025-04-09 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:45:05 - End Time 2025-04-09 18:45:05 [2025-04-09 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871458', 'tblTempUsageDetail_20' ) start [2025-04-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871458', 'tblTempUsageDetail_20' ) end [2025-04-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871458', 'tblTempVendorCDR_20' ) start [2025-04-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871458', 'tblTempVendorCDR_20' ) end [2025-04-09 18:45:19] Production.INFO: ProcessCDR(1,14871458,1,1,2) [2025-04-09 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871458', 'tblTempUsageDetail_20' ) start [2025-04-09 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871458', 'tblTempUsageDetail_20' ) end [2025-04-09 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:45:23] Production.INFO: ==32073== Releasing lock... [2025-04-09 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:45:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-09 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:46:05 [end_date_ymd] => 2025-04-09 18:46:05 [RateCDR] => 1 ) [2025-04-09 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:46:05' and `end` < '2025-04-09 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:46:19] Production.INFO: count ==3217 [2025-04-09 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:46:05 - End Time 2025-04-09 18:46:05 [2025-04-09 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871463', 'tblTempUsageDetail_20' ) start [2025-04-09 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871463', 'tblTempUsageDetail_20' ) end [2025-04-09 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871463', 'tblTempVendorCDR_20' ) start [2025-04-09 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871463', 'tblTempVendorCDR_20' ) end [2025-04-09 18:46:20] Production.INFO: ProcessCDR(1,14871463,1,1,2) [2025-04-09 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871463', 'tblTempUsageDetail_20' ) start [2025-04-09 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871463', 'tblTempUsageDetail_20' ) end [2025-04-09 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:46:23] Production.INFO: ==32183== Releasing lock... [2025-04-09 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:46:23] Production.INFO: 52 MB #Memory Used# [2025-04-09 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:47:06 [end_date_ymd] => 2025-04-09 18:47:06 [RateCDR] => 1 ) [2025-04-09 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:47:06' and `end` < '2025-04-09 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:47:19] Production.INFO: count ==3203 [2025-04-09 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:47:06 - End Time 2025-04-09 18:47:06 [2025-04-09 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871468', 'tblTempUsageDetail_20' ) start [2025-04-09 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871468', 'tblTempUsageDetail_20' ) end [2025-04-09 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871468', 'tblTempVendorCDR_20' ) start [2025-04-09 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871468', 'tblTempVendorCDR_20' ) end [2025-04-09 18:47:20] Production.INFO: ProcessCDR(1,14871468,1,1,2) [2025-04-09 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871468', 'tblTempUsageDetail_20' ) start [2025-04-09 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871468', 'tblTempUsageDetail_20' ) end [2025-04-09 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:47:25] Production.INFO: ==32261== Releasing lock... [2025-04-09 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:47:25] Production.INFO: 52 MB #Memory Used# [2025-04-09 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:48:05 [end_date_ymd] => 2025-04-09 18:48:05 [RateCDR] => 1 ) [2025-04-09 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:48:05' and `end` < '2025-04-09 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:48:19] Production.INFO: count ==3186 [2025-04-09 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:48:05 - End Time 2025-04-09 18:48:05 [2025-04-09 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871473', 'tblTempUsageDetail_20' ) start [2025-04-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871473', 'tblTempUsageDetail_20' ) end [2025-04-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871473', 'tblTempVendorCDR_20' ) start [2025-04-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871473', 'tblTempVendorCDR_20' ) end [2025-04-09 18:48:20] Production.INFO: ProcessCDR(1,14871473,1,1,2) [2025-04-09 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871473', 'tblTempUsageDetail_20' ) start [2025-04-09 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871473', 'tblTempUsageDetail_20' ) end [2025-04-09 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:48:25] Production.INFO: ==32331== Releasing lock... [2025-04-09 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:48:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-09 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:49:05 [end_date_ymd] => 2025-04-09 18:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:49:05' and `end` < '2025-04-09 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-09 18:49:19] Production.INFO: count ==3176 [2025-04-09 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:49:05 - End Time 2025-04-09 18:49:05 [2025-04-09 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871478', 'tblTempUsageDetail_20' ) start [2025-04-09 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871478', 'tblTempUsageDetail_20' ) end [2025-04-09 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871478', 'tblTempVendorCDR_20' ) start [2025-04-09 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871478', 'tblTempVendorCDR_20' ) end [2025-04-09 18:49:20] Production.INFO: ProcessCDR(1,14871478,1,1,2) [2025-04-09 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871478', 'tblTempUsageDetail_20' ) start [2025-04-09 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871478', 'tblTempUsageDetail_20' ) end [2025-04-09 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:49:25] Production.INFO: ==32406== Releasing lock... [2025-04-09 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:49:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-09 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:50:06 [end_date_ymd] => 2025-04-09 18:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:50:06' and `end` < '2025-04-09 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-09 18:50:20] Production.INFO: count ==3163 [2025-04-09 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-09 15:50:06 - End Time 2025-04-09 18:50:06 [2025-04-09 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871484', 'tblTempUsageDetail_20' ) start [2025-04-09 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871484', 'tblTempUsageDetail_20' ) end [2025-04-09 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871484', 'tblTempVendorCDR_20' ) start [2025-04-09 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871484', 'tblTempVendorCDR_20' ) end [2025-04-09 18:50:21] Production.INFO: ProcessCDR(1,14871484,1,1,2) [2025-04-09 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871484', 'tblTempUsageDetail_20' ) start [2025-04-09 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871484', 'tblTempUsageDetail_20' ) end [2025-04-09 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:50:24] Production.INFO: ==32483== Releasing lock... [2025-04-09 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:50:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-09 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:51:05 [end_date_ymd] => 2025-04-09 18:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:51:05' and `end` < '2025-04-09 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-09 18:51:19] Production.INFO: count ==3091 [2025-04-09 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:51:05 - End Time 2025-04-09 18:51:05 [2025-04-09 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871489', 'tblTempUsageDetail_20' ) start [2025-04-09 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871489', 'tblTempUsageDetail_20' ) end [2025-04-09 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871489', 'tblTempVendorCDR_20' ) start [2025-04-09 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871489', 'tblTempVendorCDR_20' ) end [2025-04-09 18:51:19] Production.INFO: ProcessCDR(1,14871489,1,1,2) [2025-04-09 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871489', 'tblTempUsageDetail_20' ) start [2025-04-09 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871489', 'tblTempUsageDetail_20' ) end [2025-04-09 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:51:25] Production.INFO: ==32557== Releasing lock... [2025-04-09 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:51:25] Production.INFO: 51 MB #Memory Used# [2025-04-09 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:52:05 [end_date_ymd] => 2025-04-09 18:52:05 [RateCDR] => 1 ) [2025-04-09 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:52:05' and `end` < '2025-04-09 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:52:18] Production.INFO: count ==3079 [2025-04-09 18:52:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:52:05 - End Time 2025-04-09 18:52:05 [2025-04-09 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871494', 'tblTempUsageDetail_20' ) start [2025-04-09 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871494', 'tblTempUsageDetail_20' ) end [2025-04-09 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871494', 'tblTempVendorCDR_20' ) start [2025-04-09 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871494', 'tblTempVendorCDR_20' ) end [2025-04-09 18:52:19] Production.INFO: ProcessCDR(1,14871494,1,1,2) [2025-04-09 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871494', 'tblTempUsageDetail_20' ) start [2025-04-09 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871494', 'tblTempUsageDetail_20' ) end [2025-04-09 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:52:23] Production.INFO: ==32631== Releasing lock... [2025-04-09 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:52:23] Production.INFO: 51 MB #Memory Used# [2025-04-09 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:53:05 [end_date_ymd] => 2025-04-09 18:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:53:05' and `end` < '2025-04-09 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-09 18:53:18] Production.INFO: count ==3069 [2025-04-09 18:53:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:53:05 - End Time 2025-04-09 18:53:05 [2025-04-09 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871499', 'tblTempUsageDetail_20' ) start [2025-04-09 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871499', 'tblTempUsageDetail_20' ) end [2025-04-09 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871499', 'tblTempVendorCDR_20' ) start [2025-04-09 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871499', 'tblTempVendorCDR_20' ) end [2025-04-09 18:53:19] Production.INFO: ProcessCDR(1,14871499,1,1,2) [2025-04-09 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871499', 'tblTempUsageDetail_20' ) start [2025-04-09 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871499', 'tblTempUsageDetail_20' ) end [2025-04-09 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:53:23] Production.INFO: ==32705== Releasing lock... [2025-04-09 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:53:23] Production.INFO: 51 MB #Memory Used# [2025-04-09 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:54:05 [end_date_ymd] => 2025-04-09 18:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:54:05' and `end` < '2025-04-09 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-09 18:54:19] Production.INFO: count ==3067 [2025-04-09 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:54:05 - End Time 2025-04-09 18:54:05 [2025-04-09 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871504', 'tblTempUsageDetail_20' ) start [2025-04-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871504', 'tblTempUsageDetail_20' ) end [2025-04-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871504', 'tblTempVendorCDR_20' ) start [2025-04-09 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871504', 'tblTempVendorCDR_20' ) end [2025-04-09 18:54:20] Production.INFO: ProcessCDR(1,14871504,1,1,2) [2025-04-09 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871504', 'tblTempUsageDetail_20' ) start [2025-04-09 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871504', 'tblTempUsageDetail_20' ) end [2025-04-09 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:54:23] Production.INFO: ==316== Releasing lock... [2025-04-09 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:54:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:55:06 [end_date_ymd] => 2025-04-09 18:55:06 [RateCDR] => 1 ) [2025-04-09 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-09 15:55:06' and `end` < '2025-04-09 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-09 18:55:20] Production.INFO: count ==3069 [2025-04-09 18:55:21] Production.ERROR: pbx CDR StartTime 2025-04-09 15:55:06 - End Time 2025-04-09 18:55:06 [2025-04-09 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871509', 'tblTempUsageDetail_20' ) start [2025-04-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871509', 'tblTempUsageDetail_20' ) end [2025-04-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871509', 'tblTempVendorCDR_20' ) start [2025-04-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871509', 'tblTempVendorCDR_20' ) end [2025-04-09 18:55:21] Production.INFO: ProcessCDR(1,14871509,1,1,2) [2025-04-09 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871509', 'tblTempUsageDetail_20' ) start [2025-04-09 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871509', 'tblTempUsageDetail_20' ) end [2025-04-09 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:55:24] Production.INFO: ==399== Releasing lock... [2025-04-09 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:55:24] Production.INFO: 51 MB #Memory Used# [2025-04-09 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:56:05 [end_date_ymd] => 2025-04-09 18:56:05 [RateCDR] => 1 ) [2025-04-09 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:56:05' and `end` < '2025-04-09 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:56:18] Production.INFO: count ==3066 [2025-04-09 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:56:05 - End Time 2025-04-09 18:56:05 [2025-04-09 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871514', 'tblTempUsageDetail_20' ) start [2025-04-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871514', 'tblTempUsageDetail_20' ) end [2025-04-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871514', 'tblTempVendorCDR_20' ) start [2025-04-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871514', 'tblTempVendorCDR_20' ) end [2025-04-09 18:56:19] Production.INFO: ProcessCDR(1,14871514,1,1,2) [2025-04-09 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871514', 'tblTempUsageDetail_20' ) start [2025-04-09 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871514', 'tblTempUsageDetail_20' ) end [2025-04-09 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:56:24] Production.INFO: ==474== Releasing lock... [2025-04-09 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:56:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:57:05 [end_date_ymd] => 2025-04-09 18:57:05 [RateCDR] => 1 ) [2025-04-09 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 15:57:05' and `end` < '2025-04-09 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 18:57:18] Production.INFO: count ==3063 [2025-04-09 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:57:05 - End Time 2025-04-09 18:57:05 [2025-04-09 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871519', 'tblTempUsageDetail_20' ) start [2025-04-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871519', 'tblTempUsageDetail_20' ) end [2025-04-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871519', 'tblTempVendorCDR_20' ) start [2025-04-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871519', 'tblTempVendorCDR_20' ) end [2025-04-09 18:57:19] Production.INFO: ProcessCDR(1,14871519,1,1,2) [2025-04-09 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871519', 'tblTempUsageDetail_20' ) start [2025-04-09 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871519', 'tblTempUsageDetail_20' ) end [2025-04-09 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:57:25] Production.INFO: ==547== Releasing lock... [2025-04-09 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:57:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:58:05 [end_date_ymd] => 2025-04-09 18:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:58:05' and `end` < '2025-04-09 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-09 18:58:19] Production.INFO: count ==3067 [2025-04-09 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:58:05 - End Time 2025-04-09 18:58:05 [2025-04-09 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871524', 'tblTempUsageDetail_20' ) start [2025-04-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871524', 'tblTempUsageDetail_20' ) end [2025-04-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871524', 'tblTempVendorCDR_20' ) start [2025-04-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871524', 'tblTempVendorCDR_20' ) end [2025-04-09 18:58:19] Production.INFO: ProcessCDR(1,14871524,1,1,2) [2025-04-09 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871524', 'tblTempUsageDetail_20' ) start [2025-04-09 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871524', 'tblTempUsageDetail_20' ) end [2025-04-09 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:58:24] Production.INFO: ==629== Releasing lock... [2025-04-09 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:58:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 15:59:05 [end_date_ymd] => 2025-04-09 18:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 15:59:05' and `end` < '2025-04-09 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-09 18:59:19] Production.INFO: count ==3060 [2025-04-09 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-09 15:59:05 - End Time 2025-04-09 18:59:05 [2025-04-09 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871529', 'tblTempUsageDetail_20' ) start [2025-04-09 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871529', 'tblTempUsageDetail_20' ) end [2025-04-09 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871529', 'tblTempVendorCDR_20' ) start [2025-04-09 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871529', 'tblTempVendorCDR_20' ) end [2025-04-09 18:59:20] Production.INFO: ProcessCDR(1,14871529,1,1,2) [2025-04-09 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871529', 'tblTempUsageDetail_20' ) start [2025-04-09 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871529', 'tblTempUsageDetail_20' ) end [2025-04-09 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 18:59:23] Production.INFO: ==726== Releasing lock... [2025-04-09 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 18:59:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:00:05 [end_date_ymd] => 2025-04-09 19:00:05 [RateCDR] => 1 ) [2025-04-09 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:00:05' and `end` < '2025-04-09 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:00:19] Production.INFO: count ==3036 [2025-04-09 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:00:05 - End Time 2025-04-09 19:00:05 [2025-04-09 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871535', 'tblTempUsageDetail_20' ) start [2025-04-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871535', 'tblTempUsageDetail_20' ) end [2025-04-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871535', 'tblTempVendorCDR_20' ) start [2025-04-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871535', 'tblTempVendorCDR_20' ) end [2025-04-09 19:00:20] Production.INFO: ProcessCDR(1,14871535,1,1,2) [2025-04-09 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871535', 'tblTempUsageDetail_20' ) start [2025-04-09 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871535', 'tblTempUsageDetail_20' ) end [2025-04-09 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:00:25] Production.INFO: ==803== Releasing lock... [2025-04-09 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:00:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-09 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:01:06 [end_date_ymd] => 2025-04-09 19:01:06 [RateCDR] => 1 ) [2025-04-09 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:01:06' and `end` < '2025-04-09 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:01:19] Production.INFO: count ==2976 [2025-04-09 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:01:06 - End Time 2025-04-09 19:01:06 [2025-04-09 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871540', 'tblTempUsageDetail_20' ) start [2025-04-09 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871540', 'tblTempUsageDetail_20' ) end [2025-04-09 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871540', 'tblTempVendorCDR_20' ) start [2025-04-09 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871540', 'tblTempVendorCDR_20' ) end [2025-04-09 19:01:20] Production.INFO: ProcessCDR(1,14871540,1,1,2) [2025-04-09 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871540', 'tblTempUsageDetail_20' ) start [2025-04-09 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871540', 'tblTempUsageDetail_20' ) end [2025-04-09 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:01:25] Production.INFO: ==968== Releasing lock... [2025-04-09 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:01:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-09 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:02:05 [end_date_ymd] => 2025-04-09 19:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:02:05' and `end` < '2025-04-09 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-09 19:02:19] Production.INFO: count ==2952 [2025-04-09 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:02:05 - End Time 2025-04-09 19:02:05 [2025-04-09 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871545', 'tblTempUsageDetail_20' ) start [2025-04-09 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871545', 'tblTempUsageDetail_20' ) end [2025-04-09 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871545', 'tblTempVendorCDR_20' ) start [2025-04-09 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871545', 'tblTempVendorCDR_20' ) end [2025-04-09 19:02:20] Production.INFO: ProcessCDR(1,14871545,1,1,2) [2025-04-09 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871545', 'tblTempUsageDetail_20' ) start [2025-04-09 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871545', 'tblTempUsageDetail_20' ) end [2025-04-09 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:02:24] Production.INFO: ==1077== Releasing lock... [2025-04-09 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:02:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-09 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:03:06 [end_date_ymd] => 2025-04-09 19:03:06 [RateCDR] => 1 ) [2025-04-09 19: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-09 16:03:06' and `end` < '2025-04-09 19: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-09 19:03:20] Production.INFO: count ==2926 [2025-04-09 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:03:06 - End Time 2025-04-09 19:03:06 [2025-04-09 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871550', 'tblTempUsageDetail_20' ) start [2025-04-09 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871550', 'tblTempUsageDetail_20' ) end [2025-04-09 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871550', 'tblTempVendorCDR_20' ) start [2025-04-09 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871550', 'tblTempVendorCDR_20' ) end [2025-04-09 19:03:21] Production.INFO: ProcessCDR(1,14871550,1,1,2) [2025-04-09 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871550', 'tblTempUsageDetail_20' ) start [2025-04-09 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871550', 'tblTempUsageDetail_20' ) end [2025-04-09 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:03:26] Production.INFO: ==1150== Releasing lock... [2025-04-09 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:03:26] Production.INFO: 50 MB #Memory Used# [2025-04-09 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:04:05 [end_date_ymd] => 2025-04-09 19:04:05 [RateCDR] => 1 ) [2025-04-09 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:04:05' and `end` < '2025-04-09 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:04:19] Production.INFO: count ==2917 [2025-04-09 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:04:05 - End Time 2025-04-09 19:04:05 [2025-04-09 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871555', 'tblTempUsageDetail_20' ) start [2025-04-09 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871555', 'tblTempUsageDetail_20' ) end [2025-04-09 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871555', 'tblTempVendorCDR_20' ) start [2025-04-09 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871555', 'tblTempVendorCDR_20' ) end [2025-04-09 19:04:20] Production.INFO: ProcessCDR(1,14871555,1,1,2) [2025-04-09 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871555', 'tblTempUsageDetail_20' ) start [2025-04-09 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871555', 'tblTempUsageDetail_20' ) end [2025-04-09 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:04:26] Production.INFO: ==1224== Releasing lock... [2025-04-09 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:04:26] Production.INFO: 50 MB #Memory Used# [2025-04-09 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:05:06 [end_date_ymd] => 2025-04-09 19:05:06 [RateCDR] => 1 ) [2025-04-09 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:05:06' and `end` < '2025-04-09 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:05:19] Production.INFO: count ==2904 [2025-04-09 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:05:06 - End Time 2025-04-09 19:05:06 [2025-04-09 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871560', 'tblTempUsageDetail_20' ) start [2025-04-09 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871560', 'tblTempUsageDetail_20' ) end [2025-04-09 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871560', 'tblTempVendorCDR_20' ) start [2025-04-09 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871560', 'tblTempVendorCDR_20' ) end [2025-04-09 19:05:20] Production.INFO: ProcessCDR(1,14871560,1,1,2) [2025-04-09 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871560', 'tblTempUsageDetail_20' ) start [2025-04-09 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871560', 'tblTempUsageDetail_20' ) end [2025-04-09 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:05:26] Production.INFO: ==1385== Releasing lock... [2025-04-09 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:05:26] Production.INFO: 50 MB #Memory Used# [2025-04-09 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:06:06 [end_date_ymd] => 2025-04-09 19:06:06 [RateCDR] => 1 ) [2025-04-09 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:06:06' and `end` < '2025-04-09 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:06:20] Production.INFO: count ==2891 [2025-04-09 19:06:21] Production.ERROR: pbx CDR StartTime 2025-04-09 16:06:06 - End Time 2025-04-09 19:06:06 [2025-04-09 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871565', 'tblTempUsageDetail_20' ) start [2025-04-09 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871565', 'tblTempUsageDetail_20' ) end [2025-04-09 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871565', 'tblTempVendorCDR_20' ) start [2025-04-09 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871565', 'tblTempVendorCDR_20' ) end [2025-04-09 19:06:21] Production.INFO: ProcessCDR(1,14871565,1,1,2) [2025-04-09 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871565', 'tblTempUsageDetail_20' ) start [2025-04-09 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871565', 'tblTempUsageDetail_20' ) end [2025-04-09 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:06:25] Production.INFO: ==1454== Releasing lock... [2025-04-09 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:06:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-09 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:07:05 [end_date_ymd] => 2025-04-09 19:07:05 [RateCDR] => 1 ) [2025-04-09 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:07:05' and `end` < '2025-04-09 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:07:18] Production.INFO: count ==2882 [2025-04-09 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:07:05 - End Time 2025-04-09 19:07:05 [2025-04-09 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871570', 'tblTempUsageDetail_20' ) start [2025-04-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871570', 'tblTempUsageDetail_20' ) end [2025-04-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871570', 'tblTempVendorCDR_20' ) start [2025-04-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871570', 'tblTempVendorCDR_20' ) end [2025-04-09 19:07:19] Production.INFO: ProcessCDR(1,14871570,1,1,2) [2025-04-09 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871570', 'tblTempUsageDetail_20' ) start [2025-04-09 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871570', 'tblTempUsageDetail_20' ) end [2025-04-09 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:07:23] Production.INFO: ==1566== Releasing lock... [2025-04-09 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:07:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-09 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:08:06 [end_date_ymd] => 2025-04-09 19:08:06 [RateCDR] => 1 ) [2025-04-09 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:08:06' and `end` < '2025-04-09 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:08:19] Production.INFO: count ==2876 [2025-04-09 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:08:06 - End Time 2025-04-09 19:08:06 [2025-04-09 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871575', 'tblTempUsageDetail_20' ) start [2025-04-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871575', 'tblTempUsageDetail_20' ) end [2025-04-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871575', 'tblTempVendorCDR_20' ) start [2025-04-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871575', 'tblTempVendorCDR_20' ) end [2025-04-09 19:08:20] Production.INFO: ProcessCDR(1,14871575,1,1,2) [2025-04-09 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871575', 'tblTempUsageDetail_20' ) start [2025-04-09 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871575', 'tblTempUsageDetail_20' ) end [2025-04-09 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:08:26] Production.INFO: ==1724== Releasing lock... [2025-04-09 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:08:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-09 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:09:05 [end_date_ymd] => 2025-04-09 19:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:09:05' and `end` < '2025-04-09 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-09 19:09:18] Production.INFO: count ==2869 [2025-04-09 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:09:05 - End Time 2025-04-09 19:09:05 [2025-04-09 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871580', 'tblTempUsageDetail_20' ) start [2025-04-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871580', 'tblTempUsageDetail_20' ) end [2025-04-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871580', 'tblTempVendorCDR_20' ) start [2025-04-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871580', 'tblTempVendorCDR_20' ) end [2025-04-09 19:09:19] Production.INFO: ProcessCDR(1,14871580,1,1,2) [2025-04-09 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871580', 'tblTempUsageDetail_20' ) start [2025-04-09 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871580', 'tblTempUsageDetail_20' ) end [2025-04-09 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:09:25] Production.INFO: ==1793== Releasing lock... [2025-04-09 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:09:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-09 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:10:06 [end_date_ymd] => 2025-04-09 19:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 16:10:06' and `end` < '2025-04-09 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-09 19:10:20] Production.INFO: count ==2864 [2025-04-09 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:10:06 - End Time 2025-04-09 19:10:06 [2025-04-09 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871586', 'tblTempUsageDetail_20' ) start [2025-04-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871586', 'tblTempUsageDetail_20' ) end [2025-04-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871586', 'tblTempVendorCDR_20' ) start [2025-04-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871586', 'tblTempVendorCDR_20' ) end [2025-04-09 19:10:20] Production.INFO: ProcessCDR(1,14871586,1,1,2) [2025-04-09 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871586', 'tblTempUsageDetail_20' ) start [2025-04-09 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871586', 'tblTempUsageDetail_20' ) end [2025-04-09 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:10:26] Production.INFO: ==1869== Releasing lock... [2025-04-09 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:10:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-09 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:11:05 [end_date_ymd] => 2025-04-09 19:11:05 [RateCDR] => 1 ) [2025-04-09 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:11:05' and `end` < '2025-04-09 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-09 19:11:19] Production.INFO: count ==2758 [2025-04-09 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:11:05 - End Time 2025-04-09 19:11:05 [2025-04-09 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871591', 'tblTempUsageDetail_20' ) start [2025-04-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871591', 'tblTempUsageDetail_20' ) end [2025-04-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871591', 'tblTempVendorCDR_20' ) start [2025-04-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871591', 'tblTempVendorCDR_20' ) end [2025-04-09 19:11:20] Production.INFO: ProcessCDR(1,14871591,1,1,2) [2025-04-09 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871591', 'tblTempUsageDetail_20' ) start [2025-04-09 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871591', 'tblTempUsageDetail_20' ) end [2025-04-09 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:11:24] Production.INFO: ==1943== Releasing lock... [2025-04-09 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:11:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-09 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:12:05 [end_date_ymd] => 2025-04-09 19:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:12:05' and `end` < '2025-04-09 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-09 19:12:19] Production.INFO: count ==2729 [2025-04-09 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:12:05 - End Time 2025-04-09 19:12:05 [2025-04-09 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871596', 'tblTempUsageDetail_20' ) start [2025-04-09 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871596', 'tblTempUsageDetail_20' ) end [2025-04-09 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871596', 'tblTempVendorCDR_20' ) start [2025-04-09 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871596', 'tblTempVendorCDR_20' ) end [2025-04-09 19:12:20] Production.INFO: ProcessCDR(1,14871596,1,1,2) [2025-04-09 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871596', 'tblTempUsageDetail_20' ) start [2025-04-09 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871596', 'tblTempUsageDetail_20' ) end [2025-04-09 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:12:26] Production.INFO: ==2093== Releasing lock... [2025-04-09 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:12:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-09 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:13:05 [end_date_ymd] => 2025-04-09 19:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:13:05' and `end` < '2025-04-09 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-09 19:13:18] Production.INFO: count ==2717 [2025-04-09 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:13:05 - End Time 2025-04-09 19:13:05 [2025-04-09 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871601', 'tblTempUsageDetail_20' ) start [2025-04-09 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871601', 'tblTempUsageDetail_20' ) end [2025-04-09 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871601', 'tblTempVendorCDR_20' ) start [2025-04-09 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871601', 'tblTempVendorCDR_20' ) end [2025-04-09 19:13:19] Production.INFO: ProcessCDR(1,14871601,1,1,2) [2025-04-09 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871601', 'tblTempUsageDetail_20' ) start [2025-04-09 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871601', 'tblTempUsageDetail_20' ) end [2025-04-09 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:13:23] Production.INFO: ==2164== Releasing lock... [2025-04-09 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:13:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-09 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:14:06 [end_date_ymd] => 2025-04-09 19:14:06 [RateCDR] => 1 ) [2025-04-09 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:14:06' and `end` < '2025-04-09 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:14:19] Production.INFO: count ==2701 [2025-04-09 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:14:06 - End Time 2025-04-09 19:14:06 [2025-04-09 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871606', 'tblTempUsageDetail_20' ) start [2025-04-09 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871606', 'tblTempUsageDetail_20' ) end [2025-04-09 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871606', 'tblTempVendorCDR_20' ) start [2025-04-09 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871606', 'tblTempVendorCDR_20' ) end [2025-04-09 19:14:20] Production.INFO: ProcessCDR(1,14871606,1,1,2) [2025-04-09 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871606', 'tblTempUsageDetail_20' ) start [2025-04-09 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871606', 'tblTempUsageDetail_20' ) end [2025-04-09 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:14:25] Production.INFO: ==2236== Releasing lock... [2025-04-09 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:14:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:15:05 [end_date_ymd] => 2025-04-09 19:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:15:05' and `end` < '2025-04-09 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-09 19:15:18] Production.INFO: count ==2696 [2025-04-09 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:15:05 - End Time 2025-04-09 19:15:05 [2025-04-09 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871611', 'tblTempUsageDetail_20' ) start [2025-04-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871611', 'tblTempUsageDetail_20' ) end [2025-04-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871611', 'tblTempVendorCDR_20' ) start [2025-04-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871611', 'tblTempVendorCDR_20' ) end [2025-04-09 19:15:19] Production.INFO: ProcessCDR(1,14871611,1,1,2) [2025-04-09 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871611', 'tblTempUsageDetail_20' ) start [2025-04-09 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871611', 'tblTempUsageDetail_20' ) end [2025-04-09 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:15:23] Production.INFO: ==2385== Releasing lock... [2025-04-09 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:15:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:16:06 [end_date_ymd] => 2025-04-09 19:16:06 [RateCDR] => 1 ) [2025-04-09 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-09 16:16:06' and `end` < '2025-04-09 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-09 19:16:19] Production.INFO: count ==2692 [2025-04-09 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:16:06 - End Time 2025-04-09 19:16:06 [2025-04-09 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871616', 'tblTempUsageDetail_20' ) start [2025-04-09 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871616', 'tblTempUsageDetail_20' ) end [2025-04-09 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871616', 'tblTempVendorCDR_20' ) start [2025-04-09 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871616', 'tblTempVendorCDR_20' ) end [2025-04-09 19:16:20] Production.INFO: ProcessCDR(1,14871616,1,1,2) [2025-04-09 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871616', 'tblTempUsageDetail_20' ) start [2025-04-09 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871616', 'tblTempUsageDetail_20' ) end [2025-04-09 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:16:24] Production.INFO: ==2457== Releasing lock... [2025-04-09 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:16:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:17:05 [end_date_ymd] => 2025-04-09 19:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:17:05' and `end` < '2025-04-09 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-09 19:17:19] Production.INFO: count ==2689 [2025-04-09 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:17:05 - End Time 2025-04-09 19:17:05 [2025-04-09 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871621', 'tblTempUsageDetail_20' ) start [2025-04-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871621', 'tblTempUsageDetail_20' ) end [2025-04-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871621', 'tblTempVendorCDR_20' ) start [2025-04-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871621', 'tblTempVendorCDR_20' ) end [2025-04-09 19:17:20] Production.INFO: ProcessCDR(1,14871621,1,1,2) [2025-04-09 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871621', 'tblTempUsageDetail_20' ) start [2025-04-09 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871621', 'tblTempUsageDetail_20' ) end [2025-04-09 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:17:23] Production.INFO: ==2566== Releasing lock... [2025-04-09 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:17:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-09 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:18:06 [end_date_ymd] => 2025-04-09 19:18:06 [RateCDR] => 1 ) [2025-04-09 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:18:06' and `end` < '2025-04-09 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:18:19] Production.INFO: count ==2678 [2025-04-09 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:18:06 - End Time 2025-04-09 19:18:06 [2025-04-09 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871626', 'tblTempUsageDetail_20' ) start [2025-04-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871626', 'tblTempUsageDetail_20' ) end [2025-04-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871626', 'tblTempVendorCDR_20' ) start [2025-04-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871626', 'tblTempVendorCDR_20' ) end [2025-04-09 19:18:20] Production.INFO: ProcessCDR(1,14871626,1,1,2) [2025-04-09 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871626', 'tblTempUsageDetail_20' ) start [2025-04-09 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871626', 'tblTempUsageDetail_20' ) end [2025-04-09 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:18:24] Production.INFO: ==2643== Releasing lock... [2025-04-09 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:18:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-09 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:19:05 [end_date_ymd] => 2025-04-09 19:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:19:05' and `end` < '2025-04-09 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-09 19:19:19] Production.INFO: count ==2669 [2025-04-09 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:19:05 - End Time 2025-04-09 19:19:05 [2025-04-09 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871631', 'tblTempUsageDetail_20' ) start [2025-04-09 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871631', 'tblTempUsageDetail_20' ) end [2025-04-09 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871631', 'tblTempVendorCDR_20' ) start [2025-04-09 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871631', 'tblTempVendorCDR_20' ) end [2025-04-09 19:19:19] Production.INFO: ProcessCDR(1,14871631,1,1,2) [2025-04-09 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871631', 'tblTempUsageDetail_20' ) start [2025-04-09 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871631', 'tblTempUsageDetail_20' ) end [2025-04-09 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:19:25] Production.INFO: ==2714== Releasing lock... [2025-04-09 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:19:25] Production.INFO: 48 MB #Memory Used# [2025-04-09 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:20:07 [end_date_ymd] => 2025-04-09 19:20:07 [RateCDR] => 1 ) [2025-04-09 19:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:20:07' and `end` < '2025-04-09 19:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:20:20] Production.INFO: count ==2663 [2025-04-09 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-09 16:20:07 - End Time 2025-04-09 19:20:07 [2025-04-09 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871636', 'tblTempUsageDetail_20' ) start [2025-04-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871636', 'tblTempUsageDetail_20' ) end [2025-04-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871636', 'tblTempVendorCDR_20' ) start [2025-04-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871636', 'tblTempVendorCDR_20' ) end [2025-04-09 19:20:21] Production.INFO: ProcessCDR(1,14871636,1,1,2) [2025-04-09 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871636', 'tblTempUsageDetail_20' ) start [2025-04-09 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871636', 'tblTempUsageDetail_20' ) end [2025-04-09 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:20:26] Production.INFO: ==2785== Releasing lock... [2025-04-09 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:20:26] Production.INFO: 48 MB #Memory Used# [2025-04-09 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:21:06 [end_date_ymd] => 2025-04-09 19:21:06 [RateCDR] => 1 ) [2025-04-09 19: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-09 16:21:06' and `end` < '2025-04-09 19: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-09 19:21:20] Production.INFO: count ==2602 [2025-04-09 19:21:21] Production.ERROR: pbx CDR StartTime 2025-04-09 16:21:06 - End Time 2025-04-09 19:21:06 [2025-04-09 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871642', 'tblTempUsageDetail_20' ) start [2025-04-09 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871642', 'tblTempUsageDetail_20' ) end [2025-04-09 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871642', 'tblTempVendorCDR_20' ) start [2025-04-09 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871642', 'tblTempVendorCDR_20' ) end [2025-04-09 19:21:21] Production.INFO: ProcessCDR(1,14871642,1,1,2) [2025-04-09 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871642', 'tblTempUsageDetail_20' ) start [2025-04-09 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871642', 'tblTempUsageDetail_20' ) end [2025-04-09 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:21:24] Production.INFO: ==2857== Releasing lock... [2025-04-09 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:21:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:22:05 [end_date_ymd] => 2025-04-09 19:22:05 [RateCDR] => 1 ) [2025-04-09 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:22:05' and `end` < '2025-04-09 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:22:19] Production.INFO: count ==2600 [2025-04-09 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:22:05 - End Time 2025-04-09 19:22:05 [2025-04-09 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871647', 'tblTempUsageDetail_20' ) start [2025-04-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871647', 'tblTempUsageDetail_20' ) end [2025-04-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871647', 'tblTempVendorCDR_20' ) start [2025-04-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871647', 'tblTempVendorCDR_20' ) end [2025-04-09 19:22:19] Production.INFO: ProcessCDR(1,14871647,1,1,2) [2025-04-09 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871647', 'tblTempUsageDetail_20' ) start [2025-04-09 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871647', 'tblTempUsageDetail_20' ) end [2025-04-09 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:22:25] Production.INFO: ==2927== Releasing lock... [2025-04-09 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:22:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:23:05 [end_date_ymd] => 2025-04-09 19:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:23:05' and `end` < '2025-04-09 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-09 19:23:19] Production.INFO: count ==2596 [2025-04-09 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:23:05 - End Time 2025-04-09 19:23:05 [2025-04-09 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871652', 'tblTempUsageDetail_20' ) start [2025-04-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871652', 'tblTempUsageDetail_20' ) end [2025-04-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871652', 'tblTempVendorCDR_20' ) start [2025-04-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871652', 'tblTempVendorCDR_20' ) end [2025-04-09 19:23:19] Production.INFO: ProcessCDR(1,14871652,1,1,2) [2025-04-09 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871652', 'tblTempUsageDetail_20' ) start [2025-04-09 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871652', 'tblTempUsageDetail_20' ) end [2025-04-09 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:23:23] Production.INFO: ==2998== Releasing lock... [2025-04-09 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:23:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:24:06 [end_date_ymd] => 2025-04-09 19:24:06 [RateCDR] => 1 ) [2025-04-09 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:24:06' and `end` < '2025-04-09 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:24:19] Production.INFO: count ==2580 [2025-04-09 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:24:06 - End Time 2025-04-09 19:24:06 [2025-04-09 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871657', 'tblTempUsageDetail_20' ) start [2025-04-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871657', 'tblTempUsageDetail_20' ) end [2025-04-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871657', 'tblTempVendorCDR_20' ) start [2025-04-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871657', 'tblTempVendorCDR_20' ) end [2025-04-09 19:24:20] Production.INFO: ProcessCDR(1,14871657,1,1,2) [2025-04-09 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871657', 'tblTempUsageDetail_20' ) start [2025-04-09 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871657', 'tblTempUsageDetail_20' ) end [2025-04-09 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:24:24] Production.INFO: ==3068== Releasing lock... [2025-04-09 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:24:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:25:06 [end_date_ymd] => 2025-04-09 19:25:06 [RateCDR] => 1 ) [2025-04-09 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-04-09 16:25:06' and `end` < '2025-04-09 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-04-09 19:25:19] Production.INFO: count ==2568 [2025-04-09 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:25:06 - End Time 2025-04-09 19:25:06 [2025-04-09 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871662', 'tblTempUsageDetail_20' ) start [2025-04-09 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871662', 'tblTempUsageDetail_20' ) end [2025-04-09 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871662', 'tblTempVendorCDR_20' ) start [2025-04-09 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871662', 'tblTempVendorCDR_20' ) end [2025-04-09 19:25:20] Production.INFO: ProcessCDR(1,14871662,1,1,2) [2025-04-09 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871662', 'tblTempUsageDetail_20' ) start [2025-04-09 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871662', 'tblTempUsageDetail_20' ) end [2025-04-09 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:25:24] Production.INFO: ==3140== Releasing lock... [2025-04-09 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:25:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:26:05 [end_date_ymd] => 2025-04-09 19:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:26:05' and `end` < '2025-04-09 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-09 19:26:19] Production.INFO: count ==2560 [2025-04-09 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:26:05 - End Time 2025-04-09 19:26:05 [2025-04-09 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871667', 'tblTempUsageDetail_20' ) start [2025-04-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871667', 'tblTempUsageDetail_20' ) end [2025-04-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871667', 'tblTempVendorCDR_20' ) start [2025-04-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871667', 'tblTempVendorCDR_20' ) end [2025-04-09 19:26:20] Production.INFO: ProcessCDR(1,14871667,1,1,2) [2025-04-09 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871667', 'tblTempUsageDetail_20' ) start [2025-04-09 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871667', 'tblTempUsageDetail_20' ) end [2025-04-09 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:26:25] Production.INFO: ==3217== Releasing lock... [2025-04-09 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:26:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-09 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:27:05 [end_date_ymd] => 2025-04-09 19:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:27:05' and `end` < '2025-04-09 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-09 19:27:18] Production.INFO: count ==2555 [2025-04-09 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:27:05 - End Time 2025-04-09 19:27:05 [2025-04-09 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871672', 'tblTempUsageDetail_20' ) start [2025-04-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871672', 'tblTempUsageDetail_20' ) end [2025-04-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871672', 'tblTempVendorCDR_20' ) start [2025-04-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871672', 'tblTempVendorCDR_20' ) end [2025-04-09 19:27:19] Production.INFO: ProcessCDR(1,14871672,1,1,2) [2025-04-09 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871672', 'tblTempUsageDetail_20' ) start [2025-04-09 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871672', 'tblTempUsageDetail_20' ) end [2025-04-09 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:27:25] Production.INFO: ==3289== Releasing lock... [2025-04-09 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:27:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-09 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:28:05 [end_date_ymd] => 2025-04-09 19:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:28:05' and `end` < '2025-04-09 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-09 19:28:18] Production.INFO: count ==2548 [2025-04-09 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:28:05 - End Time 2025-04-09 19:28:05 [2025-04-09 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871677', 'tblTempUsageDetail_20' ) start [2025-04-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871677', 'tblTempUsageDetail_20' ) end [2025-04-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871677', 'tblTempVendorCDR_20' ) start [2025-04-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871677', 'tblTempVendorCDR_20' ) end [2025-04-09 19:28:19] Production.INFO: ProcessCDR(1,14871677,1,1,2) [2025-04-09 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871677', 'tblTempUsageDetail_20' ) start [2025-04-09 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871677', 'tblTempUsageDetail_20' ) end [2025-04-09 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:28:24] Production.INFO: ==3360== Releasing lock... [2025-04-09 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:28:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-09 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:29:05 [end_date_ymd] => 2025-04-09 19:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:29:05' and `end` < '2025-04-09 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-09 19:29:19] Production.INFO: count ==2539 [2025-04-09 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:29:05 - End Time 2025-04-09 19:29:05 [2025-04-09 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871682', 'tblTempUsageDetail_20' ) start [2025-04-09 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871682', 'tblTempUsageDetail_20' ) end [2025-04-09 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871682', 'tblTempVendorCDR_20' ) start [2025-04-09 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871682', 'tblTempVendorCDR_20' ) end [2025-04-09 19:29:19] Production.INFO: ProcessCDR(1,14871682,1,1,2) [2025-04-09 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871682', 'tblTempUsageDetail_20' ) start [2025-04-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871682', 'tblTempUsageDetail_20' ) end [2025-04-09 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:29:23] Production.INFO: ==3430== Releasing lock... [2025-04-09 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:29:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-09 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:30:05 [end_date_ymd] => 2025-04-09 19:30:05 [RateCDR] => 1 ) [2025-04-09 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:30:05' and `end` < '2025-04-09 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:30:18] Production.INFO: count ==2527 [2025-04-09 19:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:30:05 - End Time 2025-04-09 19:30:05 [2025-04-09 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871687', 'tblTempUsageDetail_20' ) start [2025-04-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871687', 'tblTempUsageDetail_20' ) end [2025-04-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871687', 'tblTempVendorCDR_20' ) start [2025-04-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871687', 'tblTempVendorCDR_20' ) end [2025-04-09 19:30:19] Production.INFO: ProcessCDR(1,14871687,1,1,2) [2025-04-09 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871687', 'tblTempUsageDetail_20' ) start [2025-04-09 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871687', 'tblTempUsageDetail_20' ) end [2025-04-09 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:30:24] Production.INFO: ==3506== Releasing lock... [2025-04-09 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:30:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-09 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:31:06 [end_date_ymd] => 2025-04-09 19:31:06 [RateCDR] => 1 ) [2025-04-09 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:31:06' and `end` < '2025-04-09 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:31:19] Production.INFO: count ==2435 [2025-04-09 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:31:06 - End Time 2025-04-09 19:31:06 [2025-04-09 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871693', 'tblTempUsageDetail_20' ) start [2025-04-09 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871693', 'tblTempUsageDetail_20' ) end [2025-04-09 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871693', 'tblTempVendorCDR_20' ) start [2025-04-09 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871693', 'tblTempVendorCDR_20' ) end [2025-04-09 19:31:19] Production.INFO: ProcessCDR(1,14871693,1,1,2) [2025-04-09 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871693', 'tblTempUsageDetail_20' ) start [2025-04-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871693', 'tblTempUsageDetail_20' ) end [2025-04-09 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:31:24] Production.INFO: ==3579== Releasing lock... [2025-04-09 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:31:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:32:05 [end_date_ymd] => 2025-04-09 19:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:32:05' and `end` < '2025-04-09 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-09 19:32:18] Production.INFO: count ==2428 [2025-04-09 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:32:05 - End Time 2025-04-09 19:32:05 [2025-04-09 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871698', 'tblTempUsageDetail_20' ) start [2025-04-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871698', 'tblTempUsageDetail_20' ) end [2025-04-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871698', 'tblTempVendorCDR_20' ) start [2025-04-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871698', 'tblTempVendorCDR_20' ) end [2025-04-09 19:32:19] Production.INFO: ProcessCDR(1,14871698,1,1,2) [2025-04-09 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871698', 'tblTempUsageDetail_20' ) start [2025-04-09 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871698', 'tblTempUsageDetail_20' ) end [2025-04-09 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:32:22] Production.INFO: ==3654== Releasing lock... [2025-04-09 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:32:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-09 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:33:05 [end_date_ymd] => 2025-04-09 19:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:33:05' and `end` < '2025-04-09 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-09 19:33:18] Production.INFO: count ==2422 [2025-04-09 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:33:05 - End Time 2025-04-09 19:33:05 [2025-04-09 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871703', 'tblTempUsageDetail_20' ) start [2025-04-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871703', 'tblTempUsageDetail_20' ) end [2025-04-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871703', 'tblTempVendorCDR_20' ) start [2025-04-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871703', 'tblTempVendorCDR_20' ) end [2025-04-09 19:33:19] Production.INFO: ProcessCDR(1,14871703,1,1,2) [2025-04-09 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871703', 'tblTempUsageDetail_20' ) start [2025-04-09 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871703', 'tblTempUsageDetail_20' ) end [2025-04-09 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:33:23] Production.INFO: ==3760== Releasing lock... [2025-04-09 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:33:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-09 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:34:05 [end_date_ymd] => 2025-04-09 19:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:34:05' and `end` < '2025-04-09 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-09 19:34:18] Production.INFO: count ==2420 [2025-04-09 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:34:05 - End Time 2025-04-09 19:34:05 [2025-04-09 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871708', 'tblTempUsageDetail_20' ) start [2025-04-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871708', 'tblTempUsageDetail_20' ) end [2025-04-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871708', 'tblTempVendorCDR_20' ) start [2025-04-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871708', 'tblTempVendorCDR_20' ) end [2025-04-09 19:34:19] Production.INFO: ProcessCDR(1,14871708,1,1,2) [2025-04-09 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871708', 'tblTempUsageDetail_20' ) start [2025-04-09 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871708', 'tblTempUsageDetail_20' ) end [2025-04-09 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:34:24] Production.INFO: ==3846== Releasing lock... [2025-04-09 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:34:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-09 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:35:05 [end_date_ymd] => 2025-04-09 19:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:35:05' and `end` < '2025-04-09 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-09 19:35:18] Production.INFO: count ==2407 [2025-04-09 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:35:05 - End Time 2025-04-09 19:35:05 [2025-04-09 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871713', 'tblTempUsageDetail_20' ) start [2025-04-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871713', 'tblTempUsageDetail_20' ) end [2025-04-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871713', 'tblTempVendorCDR_20' ) start [2025-04-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871713', 'tblTempVendorCDR_20' ) end [2025-04-09 19:35:19] Production.INFO: ProcessCDR(1,14871713,1,1,2) [2025-04-09 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871713', 'tblTempUsageDetail_20' ) start [2025-04-09 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871713', 'tblTempUsageDetail_20' ) end [2025-04-09 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:35:22] Production.INFO: ==3935== Releasing lock... [2025-04-09 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:35:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-09 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:36:05 [end_date_ymd] => 2025-04-09 19:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:36:05' and `end` < '2025-04-09 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-09 19:36:18] Production.INFO: count ==2384 [2025-04-09 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:36:05 - End Time 2025-04-09 19:36:05 [2025-04-09 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871718', 'tblTempUsageDetail_20' ) start [2025-04-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871718', 'tblTempUsageDetail_20' ) end [2025-04-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871718', 'tblTempVendorCDR_20' ) start [2025-04-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871718', 'tblTempVendorCDR_20' ) end [2025-04-09 19:36:19] Production.INFO: ProcessCDR(1,14871718,1,1,2) [2025-04-09 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871718', 'tblTempUsageDetail_20' ) start [2025-04-09 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871718', 'tblTempUsageDetail_20' ) end [2025-04-09 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:36:22] Production.INFO: ==4021== Releasing lock... [2025-04-09 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:36:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:37:06 [end_date_ymd] => 2025-04-09 19:37:06 [RateCDR] => 1 ) [2025-04-09 19: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-09 16:37:06' and `end` < '2025-04-09 19: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-09 19:37:19] Production.INFO: count ==2374 [2025-04-09 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:37:06 - End Time 2025-04-09 19:37:06 [2025-04-09 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871723', 'tblTempUsageDetail_20' ) start [2025-04-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871723', 'tblTempUsageDetail_20' ) end [2025-04-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871723', 'tblTempVendorCDR_20' ) start [2025-04-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871723', 'tblTempVendorCDR_20' ) end [2025-04-09 19:37:19] Production.INFO: ProcessCDR(1,14871723,1,1,2) [2025-04-09 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871723', 'tblTempUsageDetail_20' ) start [2025-04-09 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871723', 'tblTempUsageDetail_20' ) end [2025-04-09 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:37:23] Production.INFO: ==4117== Releasing lock... [2025-04-09 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:37:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:38:05 [end_date_ymd] => 2025-04-09 19:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:38:05' and `end` < '2025-04-09 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-09 19:38:18] Production.INFO: count ==2370 [2025-04-09 19:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 16:38:05 - End Time 2025-04-09 19:38:05 [2025-04-09 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871728', 'tblTempUsageDetail_20' ) start [2025-04-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871728', 'tblTempUsageDetail_20' ) end [2025-04-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871728', 'tblTempVendorCDR_20' ) start [2025-04-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871728', 'tblTempVendorCDR_20' ) end [2025-04-09 19:38:18] Production.INFO: ProcessCDR(1,14871728,1,1,2) [2025-04-09 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871728', 'tblTempUsageDetail_20' ) start [2025-04-09 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871728', 'tblTempUsageDetail_20' ) end [2025-04-09 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:38:24] Production.INFO: ==4204== Releasing lock... [2025-04-09 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:38:24] Production.INFO: 46 MB #Memory Used# [2025-04-09 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:39:05 [end_date_ymd] => 2025-04-09 19:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:39:05' and `end` < '2025-04-09 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-09 19:39:18] Production.INFO: count ==2366 [2025-04-09 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:39:05 - End Time 2025-04-09 19:39:05 [2025-04-09 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871733', 'tblTempUsageDetail_20' ) start [2025-04-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871733', 'tblTempUsageDetail_20' ) end [2025-04-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871733', 'tblTempVendorCDR_20' ) start [2025-04-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871733', 'tblTempVendorCDR_20' ) end [2025-04-09 19:39:19] Production.INFO: ProcessCDR(1,14871733,1,1,2) [2025-04-09 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871733', 'tblTempUsageDetail_20' ) start [2025-04-09 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871733', 'tblTempUsageDetail_20' ) end [2025-04-09 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:39:24] Production.INFO: ==4290== Releasing lock... [2025-04-09 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:39:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:40:06 [end_date_ymd] => 2025-04-09 19:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 16:40:06' and `end` < '2025-04-09 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-09 19:40:19] Production.INFO: count ==2340 [2025-04-09 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:40:06 - End Time 2025-04-09 19:40:06 [2025-04-09 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871739', 'tblTempUsageDetail_20' ) start [2025-04-09 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871739', 'tblTempUsageDetail_20' ) end [2025-04-09 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871739', 'tblTempVendorCDR_20' ) start [2025-04-09 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871739', 'tblTempVendorCDR_20' ) end [2025-04-09 19:40:20] Production.INFO: ProcessCDR(1,14871739,1,1,2) [2025-04-09 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871739', 'tblTempUsageDetail_20' ) start [2025-04-09 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871739', 'tblTempUsageDetail_20' ) end [2025-04-09 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:40:23] Production.INFO: ==4381== Releasing lock... [2025-04-09 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:40:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-09 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:41:05 [end_date_ymd] => 2025-04-09 19:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:41:05' and `end` < '2025-04-09 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-09 19:41:18] Production.INFO: count ==2275 [2025-04-09 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:41:05 - End Time 2025-04-09 19:41:05 [2025-04-09 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871744', 'tblTempUsageDetail_20' ) start [2025-04-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871744', 'tblTempUsageDetail_20' ) end [2025-04-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871744', 'tblTempVendorCDR_20' ) start [2025-04-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871744', 'tblTempVendorCDR_20' ) end [2025-04-09 19:41:19] Production.INFO: ProcessCDR(1,14871744,1,1,2) [2025-04-09 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871744', 'tblTempUsageDetail_20' ) start [2025-04-09 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871744', 'tblTempUsageDetail_20' ) end [2025-04-09 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:41:24] Production.INFO: ==4472== Releasing lock... [2025-04-09 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:41:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-09 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:42:06 [end_date_ymd] => 2025-04-09 19:42:06 [RateCDR] => 1 ) [2025-04-09 19: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-09 16:42:06' and `end` < '2025-04-09 19: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-09 19:42:19] Production.INFO: count ==2259 [2025-04-09 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:42:06 - End Time 2025-04-09 19:42:06 [2025-04-09 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871749', 'tblTempUsageDetail_20' ) start [2025-04-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871749', 'tblTempUsageDetail_20' ) end [2025-04-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871749', 'tblTempVendorCDR_20' ) start [2025-04-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871749', 'tblTempVendorCDR_20' ) end [2025-04-09 19:42:19] Production.INFO: ProcessCDR(1,14871749,1,1,2) [2025-04-09 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871749', 'tblTempUsageDetail_20' ) start [2025-04-09 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871749', 'tblTempUsageDetail_20' ) end [2025-04-09 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:42:24] Production.INFO: ==4559== Releasing lock... [2025-04-09 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:42:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-09 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:43:05 [end_date_ymd] => 2025-04-09 19:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:43:05' and `end` < '2025-04-09 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-09 19:43:18] Production.INFO: count ==2258 [2025-04-09 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:43:05 - End Time 2025-04-09 19:43:05 [2025-04-09 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871754', 'tblTempUsageDetail_20' ) start [2025-04-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871754', 'tblTempUsageDetail_20' ) end [2025-04-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871754', 'tblTempVendorCDR_20' ) start [2025-04-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871754', 'tblTempVendorCDR_20' ) end [2025-04-09 19:43:19] Production.INFO: ProcessCDR(1,14871754,1,1,2) [2025-04-09 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871754', 'tblTempUsageDetail_20' ) start [2025-04-09 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871754', 'tblTempUsageDetail_20' ) end [2025-04-09 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:43:22] Production.INFO: ==4657== Releasing lock... [2025-04-09 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:43:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-09 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:44:05 [end_date_ymd] => 2025-04-09 19:44:05 [RateCDR] => 1 ) [2025-04-09 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:44:05' and `end` < '2025-04-09 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:44:18] Production.INFO: count ==2243 [2025-04-09 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:44:05 - End Time 2025-04-09 19:44:05 [2025-04-09 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871759', 'tblTempUsageDetail_20' ) start [2025-04-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871759', 'tblTempUsageDetail_20' ) end [2025-04-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871759', 'tblTempVendorCDR_20' ) start [2025-04-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871759', 'tblTempVendorCDR_20' ) end [2025-04-09 19:44:19] Production.INFO: ProcessCDR(1,14871759,1,1,2) [2025-04-09 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871759', 'tblTempUsageDetail_20' ) start [2025-04-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871759', 'tblTempUsageDetail_20' ) end [2025-04-09 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:44:22] Production.INFO: ==4749== Releasing lock... [2025-04-09 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:44:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-09 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:45:05 [end_date_ymd] => 2025-04-09 19:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:45:05' and `end` < '2025-04-09 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-09 19:45:19] Production.INFO: count ==2223 [2025-04-09 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:45:05 - End Time 2025-04-09 19:45:05 [2025-04-09 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871764', 'tblTempUsageDetail_20' ) start [2025-04-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871764', 'tblTempUsageDetail_20' ) end [2025-04-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871764', 'tblTempVendorCDR_20' ) start [2025-04-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871764', 'tblTempVendorCDR_20' ) end [2025-04-09 19:45:19] Production.INFO: ProcessCDR(1,14871764,1,1,2) [2025-04-09 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871764', 'tblTempUsageDetail_20' ) start [2025-04-09 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871764', 'tblTempUsageDetail_20' ) end [2025-04-09 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:45:24] Production.INFO: ==4842== Releasing lock... [2025-04-09 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:45:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-09 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:46:05 [end_date_ymd] => 2025-04-09 19:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:46:05' and `end` < '2025-04-09 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-09 19:46:18] Production.INFO: count ==2214 [2025-04-09 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:46:05 - End Time 2025-04-09 19:46:05 [2025-04-09 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871769', 'tblTempUsageDetail_20' ) start [2025-04-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871769', 'tblTempUsageDetail_20' ) end [2025-04-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871769', 'tblTempVendorCDR_20' ) start [2025-04-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871769', 'tblTempVendorCDR_20' ) end [2025-04-09 19:46:19] Production.INFO: ProcessCDR(1,14871769,1,1,2) [2025-04-09 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871769', 'tblTempUsageDetail_20' ) start [2025-04-09 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871769', 'tblTempUsageDetail_20' ) end [2025-04-09 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:46:23] Production.INFO: ==4934== Releasing lock... [2025-04-09 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:46:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-09 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:47:05 [end_date_ymd] => 2025-04-09 19:47:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:47:05' and `end` < '2025-04-09 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-09 19:47:18] Production.INFO: count ==2199 [2025-04-09 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:47:05 - End Time 2025-04-09 19:47:05 [2025-04-09 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871774', 'tblTempUsageDetail_20' ) start [2025-04-09 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871774', 'tblTempUsageDetail_20' ) end [2025-04-09 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871774', 'tblTempVendorCDR_20' ) start [2025-04-09 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871774', 'tblTempVendorCDR_20' ) end [2025-04-09 19:47:19] Production.INFO: ProcessCDR(1,14871774,1,1,2) [2025-04-09 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871774', 'tblTempUsageDetail_20' ) start [2025-04-09 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871774', 'tblTempUsageDetail_20' ) end [2025-04-09 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:47:22] Production.INFO: ==5026== Releasing lock... [2025-04-09 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-09 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:48:05 [end_date_ymd] => 2025-04-09 19:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:48:05' and `end` < '2025-04-09 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-09 19:48:18] Production.INFO: count ==2196 [2025-04-09 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:48:05 - End Time 2025-04-09 19:48:05 [2025-04-09 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871779', 'tblTempUsageDetail_20' ) start [2025-04-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871779', 'tblTempUsageDetail_20' ) end [2025-04-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871779', 'tblTempVendorCDR_20' ) start [2025-04-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871779', 'tblTempVendorCDR_20' ) end [2025-04-09 19:48:19] Production.INFO: ProcessCDR(1,14871779,1,1,2) [2025-04-09 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871779', 'tblTempUsageDetail_20' ) start [2025-04-09 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871779', 'tblTempUsageDetail_20' ) end [2025-04-09 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:48:24] Production.INFO: ==5211== Releasing lock... [2025-04-09 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:48:24] Production.INFO: 45 MB #Memory Used# [2025-04-09 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:49:05 [end_date_ymd] => 2025-04-09 19:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:49:05' and `end` < '2025-04-09 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-09 19:49:18] Production.INFO: count ==2188 [2025-04-09 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:49:05 - End Time 2025-04-09 19:49:05 [2025-04-09 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871784', 'tblTempUsageDetail_20' ) start [2025-04-09 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871784', 'tblTempUsageDetail_20' ) end [2025-04-09 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871784', 'tblTempVendorCDR_20' ) start [2025-04-09 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871784', 'tblTempVendorCDR_20' ) end [2025-04-09 19:49:19] Production.INFO: ProcessCDR(1,14871784,1,1,2) [2025-04-09 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871784', 'tblTempUsageDetail_20' ) start [2025-04-09 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871784', 'tblTempUsageDetail_20' ) end [2025-04-09 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:49:24] Production.INFO: ==5410== Releasing lock... [2025-04-09 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:49:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:50:05 [end_date_ymd] => 2025-04-09 19:50:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:50:05' and `end` < '2025-04-09 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:50:19] Production.INFO: count ==2183 [2025-04-09 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:50:05 - End Time 2025-04-09 19:50:05 [2025-04-09 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871790', 'tblTempUsageDetail_20' ) start [2025-04-09 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871790', 'tblTempUsageDetail_20' ) end [2025-04-09 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871790', 'tblTempVendorCDR_20' ) start [2025-04-09 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871790', 'tblTempVendorCDR_20' ) end [2025-04-09 19:50:19] Production.INFO: ProcessCDR(1,14871790,1,1,2) [2025-04-09 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871790', 'tblTempUsageDetail_20' ) start [2025-04-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871790', 'tblTempUsageDetail_20' ) end [2025-04-09 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:50:25] Production.INFO: ==5534== Releasing lock... [2025-04-09 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:50:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-09 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:51:04 [end_date_ymd] => 2025-04-09 19:51:04 [RateCDR] => 1 ) [2025-04-09 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 16:51:04' and `end` < '2025-04-09 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 19:51:17] Production.INFO: count ==2155 [2025-04-09 19:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 16:51:04 - End Time 2025-04-09 19:51:04 [2025-04-09 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871795', 'tblTempUsageDetail_20' ) start [2025-04-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871795', 'tblTempUsageDetail_20' ) end [2025-04-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871795', 'tblTempVendorCDR_20' ) start [2025-04-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871795', 'tblTempVendorCDR_20' ) end [2025-04-09 19:51:18] Production.INFO: ProcessCDR(1,14871795,1,1,2) [2025-04-09 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871795', 'tblTempUsageDetail_20' ) start [2025-04-09 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871795', 'tblTempUsageDetail_20' ) end [2025-04-09 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:51:23] Production.INFO: ==5717== Releasing lock... [2025-04-09 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:51:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-09 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:52:05 [end_date_ymd] => 2025-04-09 19:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:52:05' and `end` < '2025-04-09 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-09 19:52:18] Production.INFO: count ==2141 [2025-04-09 19:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 16:52:05 - End Time 2025-04-09 19:52:05 [2025-04-09 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871800', 'tblTempUsageDetail_20' ) start [2025-04-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871800', 'tblTempUsageDetail_20' ) end [2025-04-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871800', 'tblTempVendorCDR_20' ) start [2025-04-09 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871800', 'tblTempVendorCDR_20' ) end [2025-04-09 19:52:19] Production.INFO: ProcessCDR(1,14871800,1,1,2) [2025-04-09 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871800', 'tblTempUsageDetail_20' ) start [2025-04-09 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871800', 'tblTempUsageDetail_20' ) end [2025-04-09 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:52:22] Production.INFO: ==5807== Releasing lock... [2025-04-09 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:52:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-09 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:53:06 [end_date_ymd] => 2025-04-09 19:53:06 [RateCDR] => 1 ) [2025-04-09 19: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 16:53:06' and `end` < '2025-04-09 19: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-09 19:53:19] Production.INFO: count ==2127 [2025-04-09 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:53:06 - End Time 2025-04-09 19:53:06 [2025-04-09 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871805', 'tblTempUsageDetail_20' ) start [2025-04-09 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871805', 'tblTempUsageDetail_20' ) end [2025-04-09 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871805', 'tblTempVendorCDR_20' ) start [2025-04-09 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871805', 'tblTempVendorCDR_20' ) end [2025-04-09 19:53:19] Production.INFO: ProcessCDR(1,14871805,1,1,2) [2025-04-09 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871805', 'tblTempUsageDetail_20' ) start [2025-04-09 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871805', 'tblTempUsageDetail_20' ) end [2025-04-09 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:53:24] Production.INFO: ==5895== Releasing lock... [2025-04-09 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:53:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:54:05 [end_date_ymd] => 2025-04-09 19:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:54:05' and `end` < '2025-04-09 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-09 19:54:18] Production.INFO: count ==2126 [2025-04-09 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:54:05 - End Time 2025-04-09 19:54:05 [2025-04-09 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871810', 'tblTempUsageDetail_20' ) start [2025-04-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871810', 'tblTempUsageDetail_20' ) end [2025-04-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871810', 'tblTempVendorCDR_20' ) start [2025-04-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871810', 'tblTempVendorCDR_20' ) end [2025-04-09 19:54:19] Production.INFO: ProcessCDR(1,14871810,1,1,2) [2025-04-09 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871810', 'tblTempUsageDetail_20' ) start [2025-04-09 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871810', 'tblTempUsageDetail_20' ) end [2025-04-09 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:54:24] Production.INFO: ==5984== Releasing lock... [2025-04-09 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:54:24] Production.INFO: 44 MB #Memory Used# [2025-04-09 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:55:06 [end_date_ymd] => 2025-04-09 19:55:06 [RateCDR] => 1 ) [2025-04-09 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-09 16:55:06' and `end` < '2025-04-09 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-09 19:55:19] Production.INFO: count ==2116 [2025-04-09 19:55:20] Production.ERROR: pbx CDR StartTime 2025-04-09 16:55:06 - End Time 2025-04-09 19:55:06 [2025-04-09 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871815', 'tblTempUsageDetail_20' ) start [2025-04-09 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871815', 'tblTempUsageDetail_20' ) end [2025-04-09 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871815', 'tblTempVendorCDR_20' ) start [2025-04-09 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871815', 'tblTempVendorCDR_20' ) end [2025-04-09 19:55:20] Production.INFO: ProcessCDR(1,14871815,1,1,2) [2025-04-09 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871815', 'tblTempUsageDetail_20' ) start [2025-04-09 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871815', 'tblTempUsageDetail_20' ) end [2025-04-09 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:55:23] Production.INFO: ==6072== Releasing lock... [2025-04-09 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:55:23] Production.INFO: 44 MB #Memory Used# [2025-04-09 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:56:05 [end_date_ymd] => 2025-04-09 19:56:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:56:05' and `end` < '2025-04-09 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-09 19:56:19] Production.INFO: count ==2109 [2025-04-09 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:56:05 - End Time 2025-04-09 19:56:05 [2025-04-09 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871820', 'tblTempUsageDetail_20' ) start [2025-04-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871820', 'tblTempUsageDetail_20' ) end [2025-04-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871820', 'tblTempVendorCDR_20' ) start [2025-04-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871820', 'tblTempVendorCDR_20' ) end [2025-04-09 19:56:19] Production.INFO: ProcessCDR(1,14871820,1,1,2) [2025-04-09 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871820', 'tblTempUsageDetail_20' ) start [2025-04-09 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871820', 'tblTempUsageDetail_20' ) end [2025-04-09 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:56:24] Production.INFO: ==6162== Releasing lock... [2025-04-09 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:56:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:57:05 [end_date_ymd] => 2025-04-09 19:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:57:05' and `end` < '2025-04-09 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-09 19:57:18] Production.INFO: count ==2106 [2025-04-09 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:57:05 - End Time 2025-04-09 19:57:05 [2025-04-09 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871825', 'tblTempUsageDetail_20' ) start [2025-04-09 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871825', 'tblTempUsageDetail_20' ) end [2025-04-09 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871825', 'tblTempVendorCDR_20' ) start [2025-04-09 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871825', 'tblTempVendorCDR_20' ) end [2025-04-09 19:57:19] Production.INFO: ProcessCDR(1,14871825,1,1,2) [2025-04-09 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871825', 'tblTempUsageDetail_20' ) start [2025-04-09 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871825', 'tblTempUsageDetail_20' ) end [2025-04-09 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:57:24] Production.INFO: ==6251== Releasing lock... [2025-04-09 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:57:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-09 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:58:05 [end_date_ymd] => 2025-04-09 19:58:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:58:05' and `end` < '2025-04-09 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-09 19:58:18] Production.INFO: count ==2088 [2025-04-09 19:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 16:58:05 - End Time 2025-04-09 19:58:05 [2025-04-09 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871830', 'tblTempUsageDetail_20' ) start [2025-04-09 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871830', 'tblTempUsageDetail_20' ) end [2025-04-09 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871830', 'tblTempVendorCDR_20' ) start [2025-04-09 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871830', 'tblTempVendorCDR_20' ) end [2025-04-09 19:58:18] Production.INFO: ProcessCDR(1,14871830,1,1,2) [2025-04-09 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871830', 'tblTempUsageDetail_20' ) start [2025-04-09 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871830', 'tblTempUsageDetail_20' ) end [2025-04-09 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:58:23] Production.INFO: ==6339== Releasing lock... [2025-04-09 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:58:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-09 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 16:59:05 [end_date_ymd] => 2025-04-09 19:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 16:59:05' and `end` < '2025-04-09 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-09 19:59:18] Production.INFO: count ==2073 [2025-04-09 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-09 16:59:05 - End Time 2025-04-09 19:59:05 [2025-04-09 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871835', 'tblTempUsageDetail_20' ) start [2025-04-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871835', 'tblTempUsageDetail_20' ) end [2025-04-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871835', 'tblTempVendorCDR_20' ) start [2025-04-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871835', 'tblTempVendorCDR_20' ) end [2025-04-09 19:59:19] Production.INFO: ProcessCDR(1,14871835,1,1,2) [2025-04-09 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871835', 'tblTempUsageDetail_20' ) start [2025-04-09 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871835', 'tblTempUsageDetail_20' ) end [2025-04-09 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 19:59:24] Production.INFO: ==6429== Releasing lock... [2025-04-09 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 19:59:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-09 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:00:05 [end_date_ymd] => 2025-04-09 20:00:05 [RateCDR] => 1 ) [2025-04-09 20: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 17:00:05' and `end` < '2025-04-09 20: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-09 20:00:18] Production.INFO: count ==2055 [2025-04-09 20:00:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:00:05 - End Time 2025-04-09 20:00:05 [2025-04-09 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871840', 'tblTempUsageDetail_20' ) start [2025-04-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871840', 'tblTempUsageDetail_20' ) end [2025-04-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871840', 'tblTempVendorCDR_20' ) start [2025-04-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871840', 'tblTempVendorCDR_20' ) end [2025-04-09 20:00:19] Production.INFO: ProcessCDR(1,14871840,1,1,2) [2025-04-09 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871840', 'tblTempUsageDetail_20' ) start [2025-04-09 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871840', 'tblTempUsageDetail_20' ) end [2025-04-09 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:00:22] Production.INFO: ==6519== Releasing lock... [2025-04-09 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:00:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-09 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:01:05 [end_date_ymd] => 2025-04-09 20:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:01:05' and `end` < '2025-04-09 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-09 20:01:18] Production.INFO: count ==2005 [2025-04-09 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:01:05 - End Time 2025-04-09 20:01:05 [2025-04-09 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871846', 'tblTempUsageDetail_20' ) start [2025-04-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871846', 'tblTempUsageDetail_20' ) end [2025-04-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871846', 'tblTempVendorCDR_20' ) start [2025-04-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871846', 'tblTempVendorCDR_20' ) end [2025-04-09 20:01:19] Production.INFO: ProcessCDR(1,14871846,1,1,2) [2025-04-09 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871846', 'tblTempUsageDetail_20' ) start [2025-04-09 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871846', 'tblTempUsageDetail_20' ) end [2025-04-09 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:01:24] Production.INFO: ==6663== Releasing lock... [2025-04-09 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:01:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-09 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:02:05 [end_date_ymd] => 2025-04-09 20:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:02:05' and `end` < '2025-04-09 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-09 20:02:18] Production.INFO: count ==2001 [2025-04-09 20:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:02:05 - End Time 2025-04-09 20:02:05 [2025-04-09 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871851', 'tblTempUsageDetail_20' ) start [2025-04-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871851', 'tblTempUsageDetail_20' ) end [2025-04-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871851', 'tblTempVendorCDR_20' ) start [2025-04-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871851', 'tblTempVendorCDR_20' ) end [2025-04-09 20:02:18] Production.INFO: ProcessCDR(1,14871851,1,1,2) [2025-04-09 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871851', 'tblTempUsageDetail_20' ) start [2025-04-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871851', 'tblTempUsageDetail_20' ) end [2025-04-09 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:02:22] Production.INFO: ==6752== Releasing lock... [2025-04-09 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:02:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-09 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:03:05 [end_date_ymd] => 2025-04-09 20:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:03:05' and `end` < '2025-04-09 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-09 20:03:18] Production.INFO: count ==1984 [2025-04-09 20:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:03:05 - End Time 2025-04-09 20:03:05 [2025-04-09 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871856', 'tblTempUsageDetail_20' ) start [2025-04-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871856', 'tblTempUsageDetail_20' ) end [2025-04-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871856', 'tblTempVendorCDR_20' ) start [2025-04-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871856', 'tblTempVendorCDR_20' ) end [2025-04-09 20:03:18] Production.INFO: ProcessCDR(1,14871856,1,1,2) [2025-04-09 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871856', 'tblTempUsageDetail_20' ) start [2025-04-09 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871856', 'tblTempUsageDetail_20' ) end [2025-04-09 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:03:22] Production.INFO: ==6871== Releasing lock... [2025-04-09 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:03:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-09 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:04:05 [end_date_ymd] => 2025-04-09 20:04:05 [RateCDR] => 1 ) [2025-04-09 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:04:05' and `end` < '2025-04-09 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:04:19] Production.INFO: count ==1982 [2025-04-09 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:04:05 - End Time 2025-04-09 20:04:05 [2025-04-09 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871861', 'tblTempUsageDetail_20' ) start [2025-04-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871861', 'tblTempUsageDetail_20' ) end [2025-04-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871861', 'tblTempVendorCDR_20' ) start [2025-04-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871861', 'tblTempVendorCDR_20' ) end [2025-04-09 20:04:19] Production.INFO: ProcessCDR(1,14871861,1,1,2) [2025-04-09 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871861', 'tblTempUsageDetail_20' ) start [2025-04-09 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871861', 'tblTempUsageDetail_20' ) end [2025-04-09 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:04:24] Production.INFO: ==6945== Releasing lock... [2025-04-09 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:04:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:05:05 [end_date_ymd] => 2025-04-09 20:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:05:05' and `end` < '2025-04-09 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-09 20:05:18] Production.INFO: count ==1960 [2025-04-09 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:05:05 - End Time 2025-04-09 20:05:05 [2025-04-09 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871866', 'tblTempUsageDetail_20' ) start [2025-04-09 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871866', 'tblTempUsageDetail_20' ) end [2025-04-09 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871866', 'tblTempVendorCDR_20' ) start [2025-04-09 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871866', 'tblTempVendorCDR_20' ) end [2025-04-09 20:05:19] Production.INFO: ProcessCDR(1,14871866,1,1,2) [2025-04-09 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871866', 'tblTempUsageDetail_20' ) start [2025-04-09 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871866', 'tblTempUsageDetail_20' ) end [2025-04-09 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:05:24] Production.INFO: ==7019== Releasing lock... [2025-04-09 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:05:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:06:05 [end_date_ymd] => 2025-04-09 20:06:05 [RateCDR] => 1 ) [2025-04-09 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:06:05' and `end` < '2025-04-09 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:06:18] Production.INFO: count ==1967 [2025-04-09 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:06:05 - End Time 2025-04-09 20:06:05 [2025-04-09 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871871', 'tblTempUsageDetail_20' ) start [2025-04-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871871', 'tblTempUsageDetail_20' ) end [2025-04-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871871', 'tblTempVendorCDR_20' ) start [2025-04-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871871', 'tblTempVendorCDR_20' ) end [2025-04-09 20:06:19] Production.INFO: ProcessCDR(1,14871871,1,1,2) [2025-04-09 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871871', 'tblTempUsageDetail_20' ) start [2025-04-09 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871871', 'tblTempUsageDetail_20' ) end [2025-04-09 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:06:22] Production.INFO: ==7095== Releasing lock... [2025-04-09 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:06:22] Production.INFO: 43 MB #Memory Used# [2025-04-09 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:07:05 [end_date_ymd] => 2025-04-09 20:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:07:05' and `end` < '2025-04-09 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-09 20:07:18] Production.INFO: count ==1966 [2025-04-09 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:07:05 - End Time 2025-04-09 20:07:05 [2025-04-09 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871876', 'tblTempUsageDetail_20' ) start [2025-04-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871876', 'tblTempUsageDetail_20' ) end [2025-04-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871876', 'tblTempVendorCDR_20' ) start [2025-04-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871876', 'tblTempVendorCDR_20' ) end [2025-04-09 20:07:19] Production.INFO: ProcessCDR(1,14871876,1,1,2) [2025-04-09 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871876', 'tblTempUsageDetail_20' ) start [2025-04-09 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871876', 'tblTempUsageDetail_20' ) end [2025-04-09 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:07:22] Production.INFO: ==7172== Releasing lock... [2025-04-09 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:07:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-09 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:08:06 [end_date_ymd] => 2025-04-09 20:08:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:08:06' and `end` < '2025-04-09 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-09 20:08:19] Production.INFO: count ==1962 [2025-04-09 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:08:06 - End Time 2025-04-09 20:08:06 [2025-04-09 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871881', 'tblTempUsageDetail_20' ) start [2025-04-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871881', 'tblTempUsageDetail_20' ) end [2025-04-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871881', 'tblTempVendorCDR_20' ) start [2025-04-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871881', 'tblTempVendorCDR_20' ) end [2025-04-09 20:08:19] Production.INFO: ProcessCDR(1,14871881,1,1,2) [2025-04-09 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871881', 'tblTempUsageDetail_20' ) start [2025-04-09 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871881', 'tblTempUsageDetail_20' ) end [2025-04-09 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:08:24] Production.INFO: ==7245== Releasing lock... [2025-04-09 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:08:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:09:05 [end_date_ymd] => 2025-04-09 20:09:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:09:05' and `end` < '2025-04-09 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-09 20:09:18] Production.INFO: count ==1960 [2025-04-09 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:09:05 - End Time 2025-04-09 20:09:05 [2025-04-09 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871886', 'tblTempUsageDetail_20' ) start [2025-04-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871886', 'tblTempUsageDetail_20' ) end [2025-04-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871886', 'tblTempVendorCDR_20' ) start [2025-04-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871886', 'tblTempVendorCDR_20' ) end [2025-04-09 20:09:19] Production.INFO: ProcessCDR(1,14871886,1,1,2) [2025-04-09 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871886', 'tblTempUsageDetail_20' ) start [2025-04-09 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871886', 'tblTempUsageDetail_20' ) end [2025-04-09 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:09:24] Production.INFO: ==7316== Releasing lock... [2025-04-09 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:09:24] Production.INFO: 43 MB #Memory Used# [2025-04-09 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:10:06 [end_date_ymd] => 2025-04-09 20:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:10:06' and `end` < '2025-04-09 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-09 20:10:19] Production.INFO: count ==1950 [2025-04-09 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-09 17:10:06 - End Time 2025-04-09 20:10:06 [2025-04-09 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871892', 'tblTempUsageDetail_20' ) start [2025-04-09 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871892', 'tblTempUsageDetail_20' ) end [2025-04-09 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871892', 'tblTempVendorCDR_20' ) start [2025-04-09 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871892', 'tblTempVendorCDR_20' ) end [2025-04-09 20:10:20] Production.INFO: ProcessCDR(1,14871892,1,1,2) [2025-04-09 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871892', 'tblTempUsageDetail_20' ) start [2025-04-09 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871892', 'tblTempUsageDetail_20' ) end [2025-04-09 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:10:25] Production.INFO: ==7391== Releasing lock... [2025-04-09 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:10:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-09 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:11:05 [end_date_ymd] => 2025-04-09 20:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:11:05' and `end` < '2025-04-09 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-09 20:11:18] Production.INFO: count ==1908 [2025-04-09 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:11:05 - End Time 2025-04-09 20:11:05 [2025-04-09 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871897', 'tblTempUsageDetail_20' ) start [2025-04-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871897', 'tblTempUsageDetail_20' ) end [2025-04-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871897', 'tblTempVendorCDR_20' ) start [2025-04-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871897', 'tblTempVendorCDR_20' ) end [2025-04-09 20:11:18] Production.INFO: ProcessCDR(1,14871897,1,1,2) [2025-04-09 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871897', 'tblTempUsageDetail_20' ) start [2025-04-09 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871897', 'tblTempUsageDetail_20' ) end [2025-04-09 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:11:22] Production.INFO: ==7468== Releasing lock... [2025-04-09 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:11:22] Production.INFO: 42 MB #Memory Used# [2025-04-09 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:12:05 [end_date_ymd] => 2025-04-09 20:12:05 [RateCDR] => 1 ) [2025-04-09 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:12:05' and `end` < '2025-04-09 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:12:19] Production.INFO: count ==1906 [2025-04-09 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:12:05 - End Time 2025-04-09 20:12:05 [2025-04-09 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871902', 'tblTempUsageDetail_20' ) start [2025-04-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871902', 'tblTempUsageDetail_20' ) end [2025-04-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871902', 'tblTempVendorCDR_20' ) start [2025-04-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871902', 'tblTempVendorCDR_20' ) end [2025-04-09 20:12:19] Production.INFO: ProcessCDR(1,14871902,1,1,2) [2025-04-09 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871902', 'tblTempUsageDetail_20' ) start [2025-04-09 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871902', 'tblTempUsageDetail_20' ) end [2025-04-09 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:12:24] Production.INFO: ==7538== Releasing lock... [2025-04-09 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:12:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:13:05 [end_date_ymd] => 2025-04-09 20:13:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:13:05' and `end` < '2025-04-09 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-09 20:13:18] Production.INFO: count ==1902 [2025-04-09 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:13:05 - End Time 2025-04-09 20:13:05 [2025-04-09 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871907', 'tblTempUsageDetail_20' ) start [2025-04-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871907', 'tblTempUsageDetail_20' ) end [2025-04-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871907', 'tblTempVendorCDR_20' ) start [2025-04-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871907', 'tblTempVendorCDR_20' ) end [2025-04-09 20:13:18] Production.INFO: ProcessCDR(1,14871907,1,1,2) [2025-04-09 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871907', 'tblTempUsageDetail_20' ) start [2025-04-09 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871907', 'tblTempUsageDetail_20' ) end [2025-04-09 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:13:22] Production.INFO: ==7607== Releasing lock... [2025-04-09 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:13:22] Production.INFO: 42 MB #Memory Used# [2025-04-09 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:14:05 [end_date_ymd] => 2025-04-09 20:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:14:05' and `end` < '2025-04-09 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-09 20:14:18] Production.INFO: count ==1899 [2025-04-09 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:14:05 - End Time 2025-04-09 20:14:05 [2025-04-09 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871912', 'tblTempUsageDetail_20' ) start [2025-04-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871912', 'tblTempUsageDetail_20' ) end [2025-04-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871912', 'tblTempVendorCDR_20' ) start [2025-04-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871912', 'tblTempVendorCDR_20' ) end [2025-04-09 20:14:19] Production.INFO: ProcessCDR(1,14871912,1,1,2) [2025-04-09 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871912', 'tblTempUsageDetail_20' ) start [2025-04-09 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871912', 'tblTempUsageDetail_20' ) end [2025-04-09 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:14:24] Production.INFO: ==7679== Releasing lock... [2025-04-09 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:14:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:15:04 [end_date_ymd] => 2025-04-09 20:15:04 [RateCDR] => 1 ) [2025-04-09 20: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 17:15:04' and `end` < '2025-04-09 20: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-09 20:15:18] Production.INFO: count ==1898 [2025-04-09 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:15:04 - End Time 2025-04-09 20:15:04 [2025-04-09 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871917', 'tblTempUsageDetail_20' ) start [2025-04-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871917', 'tblTempUsageDetail_20' ) end [2025-04-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871917', 'tblTempVendorCDR_20' ) start [2025-04-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871917', 'tblTempVendorCDR_20' ) end [2025-04-09 20:15:18] Production.INFO: ProcessCDR(1,14871917,1,1,2) [2025-04-09 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871917', 'tblTempUsageDetail_20' ) start [2025-04-09 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871917', 'tblTempUsageDetail_20' ) end [2025-04-09 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:15:21] Production.INFO: ==7752== Releasing lock... [2025-04-09 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:15:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-09 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:16:06 [end_date_ymd] => 2025-04-09 20:16:06 [RateCDR] => 1 ) [2025-04-09 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:16:06' and `end` < '2025-04-09 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:16:19] Production.INFO: count ==1894 [2025-04-09 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:16:06 - End Time 2025-04-09 20:16:06 [2025-04-09 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871922', 'tblTempUsageDetail_20' ) start [2025-04-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871922', 'tblTempUsageDetail_20' ) end [2025-04-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871922', 'tblTempVendorCDR_20' ) start [2025-04-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871922', 'tblTempVendorCDR_20' ) end [2025-04-09 20:16:19] Production.INFO: ProcessCDR(1,14871922,1,1,2) [2025-04-09 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871922', 'tblTempUsageDetail_20' ) start [2025-04-09 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871922', 'tblTempUsageDetail_20' ) end [2025-04-09 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:16:23] Production.INFO: ==7832== Releasing lock... [2025-04-09 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:16:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:17:05 [end_date_ymd] => 2025-04-09 20:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:17:05' and `end` < '2025-04-09 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-09 20:17:18] Production.INFO: count ==1888 [2025-04-09 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:17:05 - End Time 2025-04-09 20:17:05 [2025-04-09 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871927', 'tblTempUsageDetail_20' ) start [2025-04-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871927', 'tblTempUsageDetail_20' ) end [2025-04-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871927', 'tblTempVendorCDR_20' ) start [2025-04-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871927', 'tblTempVendorCDR_20' ) end [2025-04-09 20:17:18] Production.INFO: ProcessCDR(1,14871927,1,1,2) [2025-04-09 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871927', 'tblTempUsageDetail_20' ) start [2025-04-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871927', 'tblTempUsageDetail_20' ) end [2025-04-09 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:17:22] Production.INFO: ==7906== Releasing lock... [2025-04-09 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:17:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:18:05 [end_date_ymd] => 2025-04-09 20:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:18:05' and `end` < '2025-04-09 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-09 20:18:18] Production.INFO: count ==1886 [2025-04-09 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:18:05 - End Time 2025-04-09 20:18:05 [2025-04-09 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871932', 'tblTempUsageDetail_20' ) start [2025-04-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871932', 'tblTempUsageDetail_20' ) end [2025-04-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871932', 'tblTempVendorCDR_20' ) start [2025-04-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871932', 'tblTempVendorCDR_20' ) end [2025-04-09 20:18:19] Production.INFO: ProcessCDR(1,14871932,1,1,2) [2025-04-09 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871932', 'tblTempUsageDetail_20' ) start [2025-04-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871932', 'tblTempUsageDetail_20' ) end [2025-04-09 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:18:22] Production.INFO: ==7977== Releasing lock... [2025-04-09 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:18:22] Production.INFO: 42 MB #Memory Used# [2025-04-09 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:19:04 [end_date_ymd] => 2025-04-09 20:19:04 [RateCDR] => 1 ) [2025-04-09 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:19:04' and `end` < '2025-04-09 20: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-09 20:19:17] Production.INFO: count ==1883 [2025-04-09 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:19:04 - End Time 2025-04-09 20:19:04 [2025-04-09 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871937', 'tblTempUsageDetail_20' ) start [2025-04-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871937', 'tblTempUsageDetail_20' ) end [2025-04-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871937', 'tblTempVendorCDR_20' ) start [2025-04-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871937', 'tblTempVendorCDR_20' ) end [2025-04-09 20:19:18] Production.INFO: ProcessCDR(1,14871937,1,1,2) [2025-04-09 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871937', 'tblTempUsageDetail_20' ) start [2025-04-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871937', 'tblTempUsageDetail_20' ) end [2025-04-09 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:19:23] Production.INFO: ==8090== Releasing lock... [2025-04-09 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:19:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-09 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:20:06 [end_date_ymd] => 2025-04-09 20:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:20:06' and `end` < '2025-04-09 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-09 20:20:19] Production.INFO: count ==1880 [2025-04-09 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:20:06 - End Time 2025-04-09 20:20:06 [2025-04-09 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871943', 'tblTempUsageDetail_20' ) start [2025-04-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871943', 'tblTempUsageDetail_20' ) end [2025-04-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871943', 'tblTempVendorCDR_20' ) start [2025-04-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871943', 'tblTempVendorCDR_20' ) end [2025-04-09 20:20:19] Production.INFO: ProcessCDR(1,14871943,1,1,2) [2025-04-09 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871943', 'tblTempUsageDetail_20' ) start [2025-04-09 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871943', 'tblTempUsageDetail_20' ) end [2025-04-09 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:20:24] Production.INFO: ==8168== Releasing lock... [2025-04-09 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:20:24] Production.INFO: 42 MB #Memory Used# [2025-04-09 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:21:05 [end_date_ymd] => 2025-04-09 20:21:05 [RateCDR] => 1 ) [2025-04-09 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:21:05' and `end` < '2025-04-09 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:21:18] Production.INFO: count ==1816 [2025-04-09 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:21:05 - End Time 2025-04-09 20:21:05 [2025-04-09 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871948', 'tblTempUsageDetail_20' ) start [2025-04-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871948', 'tblTempUsageDetail_20' ) end [2025-04-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871948', 'tblTempVendorCDR_20' ) start [2025-04-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871948', 'tblTempVendorCDR_20' ) end [2025-04-09 20:21:19] Production.INFO: ProcessCDR(1,14871948,1,1,2) [2025-04-09 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871948', 'tblTempUsageDetail_20' ) start [2025-04-09 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871948', 'tblTempUsageDetail_20' ) end [2025-04-09 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:21:24] Production.INFO: ==8246== Releasing lock... [2025-04-09 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-09 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:22:05 [end_date_ymd] => 2025-04-09 20:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:22:05' and `end` < '2025-04-09 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-09 20:22:18] Production.INFO: count ==1799 [2025-04-09 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:22:05 - End Time 2025-04-09 20:22:05 [2025-04-09 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871953', 'tblTempUsageDetail_20' ) start [2025-04-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871953', 'tblTempUsageDetail_20' ) end [2025-04-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871953', 'tblTempVendorCDR_20' ) start [2025-04-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871953', 'tblTempVendorCDR_20' ) end [2025-04-09 20:22:19] Production.INFO: ProcessCDR(1,14871953,1,1,2) [2025-04-09 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871953', 'tblTempUsageDetail_20' ) start [2025-04-09 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871953', 'tblTempUsageDetail_20' ) end [2025-04-09 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:22:24] Production.INFO: ==8317== Releasing lock... [2025-04-09 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-09 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:23:05 [end_date_ymd] => 2025-04-09 20:23:05 [RateCDR] => 1 ) [2025-04-09 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:23:05' and `end` < '2025-04-09 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:23:18] Production.INFO: count ==1790 [2025-04-09 20:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:23:05 - End Time 2025-04-09 20:23:05 [2025-04-09 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871958', 'tblTempUsageDetail_20' ) start [2025-04-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871958', 'tblTempUsageDetail_20' ) end [2025-04-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871958', 'tblTempVendorCDR_20' ) start [2025-04-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871958', 'tblTempVendorCDR_20' ) end [2025-04-09 20:23:18] Production.INFO: ProcessCDR(1,14871958,1,1,2) [2025-04-09 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871958', 'tblTempUsageDetail_20' ) start [2025-04-09 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871958', 'tblTempUsageDetail_20' ) end [2025-04-09 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:23:22] Production.INFO: ==8392== Releasing lock... [2025-04-09 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-09 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:24:06 [end_date_ymd] => 2025-04-09 20:24:06 [RateCDR] => 1 ) [2025-04-09 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:24:06' and `end` < '2025-04-09 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:24:19] Production.INFO: count ==1781 [2025-04-09 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:24:06 - End Time 2025-04-09 20:24:06 [2025-04-09 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871963', 'tblTempUsageDetail_20' ) start [2025-04-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871963', 'tblTempUsageDetail_20' ) end [2025-04-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871963', 'tblTempVendorCDR_20' ) start [2025-04-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871963', 'tblTempVendorCDR_20' ) end [2025-04-09 20:24:19] Production.INFO: ProcessCDR(1,14871963,1,1,2) [2025-04-09 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871963', 'tblTempUsageDetail_20' ) start [2025-04-09 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871963', 'tblTempUsageDetail_20' ) end [2025-04-09 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:24:23] Production.INFO: ==8472== Releasing lock... [2025-04-09 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:24:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-09 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:25:05 [end_date_ymd] => 2025-04-09 20:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:25:05' and `end` < '2025-04-09 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-09 20:25:18] Production.INFO: count ==1759 [2025-04-09 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:25:05 - End Time 2025-04-09 20:25:05 [2025-04-09 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871968', 'tblTempUsageDetail_20' ) start [2025-04-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871968', 'tblTempUsageDetail_20' ) end [2025-04-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871968', 'tblTempVendorCDR_20' ) start [2025-04-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871968', 'tblTempVendorCDR_20' ) end [2025-04-09 20:25:18] Production.INFO: ProcessCDR(1,14871968,1,1,2) [2025-04-09 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871968', 'tblTempUsageDetail_20' ) start [2025-04-09 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871968', 'tblTempUsageDetail_20' ) end [2025-04-09 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:25:22] Production.INFO: ==8542== Releasing lock... [2025-04-09 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:25:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-09 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:26:05 [end_date_ymd] => 2025-04-09 20:26:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:26:05' and `end` < '2025-04-09 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-09 20:26:18] Production.INFO: count ==1755 [2025-04-09 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:26:05 - End Time 2025-04-09 20:26:05 [2025-04-09 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871973', 'tblTempUsageDetail_20' ) start [2025-04-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871973', 'tblTempUsageDetail_20' ) end [2025-04-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871973', 'tblTempVendorCDR_20' ) start [2025-04-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871973', 'tblTempVendorCDR_20' ) end [2025-04-09 20:26:19] Production.INFO: ProcessCDR(1,14871973,1,1,2) [2025-04-09 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871973', 'tblTempUsageDetail_20' ) start [2025-04-09 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871973', 'tblTempUsageDetail_20' ) end [2025-04-09 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:26:22] Production.INFO: ==8617== Releasing lock... [2025-04-09 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:26:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-09 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:27:05 [end_date_ymd] => 2025-04-09 20:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:27:05' and `end` < '2025-04-09 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-09 20:27:19] Production.INFO: count ==1733 [2025-04-09 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:27:05 - End Time 2025-04-09 20:27:05 [2025-04-09 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871978', 'tblTempUsageDetail_20' ) start [2025-04-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871978', 'tblTempUsageDetail_20' ) end [2025-04-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871978', 'tblTempVendorCDR_20' ) start [2025-04-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871978', 'tblTempVendorCDR_20' ) end [2025-04-09 20:27:19] Production.INFO: ProcessCDR(1,14871978,1,1,2) [2025-04-09 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871978', 'tblTempUsageDetail_20' ) start [2025-04-09 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871978', 'tblTempUsageDetail_20' ) end [2025-04-09 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:27:24] Production.INFO: ==8691== Releasing lock... [2025-04-09 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:27:24] Production.INFO: 41 MB #Memory Used# [2025-04-09 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:28:05 [end_date_ymd] => 2025-04-09 20:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:28:05' and `end` < '2025-04-09 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-09 20:28:18] Production.INFO: count ==1724 [2025-04-09 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:28:05 - End Time 2025-04-09 20:28:05 [2025-04-09 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871983', 'tblTempUsageDetail_20' ) start [2025-04-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871983', 'tblTempUsageDetail_20' ) end [2025-04-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871983', 'tblTempVendorCDR_20' ) start [2025-04-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871983', 'tblTempVendorCDR_20' ) end [2025-04-09 20:28:19] Production.INFO: ProcessCDR(1,14871983,1,1,2) [2025-04-09 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871983', 'tblTempUsageDetail_20' ) start [2025-04-09 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871983', 'tblTempUsageDetail_20' ) end [2025-04-09 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:28:22] Production.INFO: ==8763== Releasing lock... [2025-04-09 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:28:22] Production.INFO: 41 MB #Memory Used# [2025-04-09 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:29:06 [end_date_ymd] => 2025-04-09 20:29:06 [RateCDR] => 1 ) [2025-04-09 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:29:06' and `end` < '2025-04-09 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:29:19] Production.INFO: count ==1713 [2025-04-09 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:29:06 - End Time 2025-04-09 20:29:06 [2025-04-09 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871988', 'tblTempUsageDetail_20' ) start [2025-04-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871988', 'tblTempUsageDetail_20' ) end [2025-04-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871988', 'tblTempVendorCDR_20' ) start [2025-04-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871988', 'tblTempVendorCDR_20' ) end [2025-04-09 20:29:19] Production.INFO: ProcessCDR(1,14871988,1,1,2) [2025-04-09 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871988', 'tblTempUsageDetail_20' ) start [2025-04-09 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871988', 'tblTempUsageDetail_20' ) end [2025-04-09 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:29:23] Production.INFO: ==8835== Releasing lock... [2025-04-09 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-09 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:30:05 [end_date_ymd] => 2025-04-09 20:30:05 [RateCDR] => 1 ) [2025-04-09 20: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-09 17:30:05' and `end` < '2025-04-09 20: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-09 20:30:18] Production.INFO: count ==1707 [2025-04-09 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:30:05 - End Time 2025-04-09 20:30:05 [2025-04-09 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871993', 'tblTempUsageDetail_20' ) start [2025-04-09 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871993', 'tblTempUsageDetail_20' ) end [2025-04-09 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871993', 'tblTempVendorCDR_20' ) start [2025-04-09 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871993', 'tblTempVendorCDR_20' ) end [2025-04-09 20:30:19] Production.INFO: ProcessCDR(1,14871993,1,1,2) [2025-04-09 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871993', 'tblTempUsageDetail_20' ) start [2025-04-09 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871993', 'tblTempUsageDetail_20' ) end [2025-04-09 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:30:22] Production.INFO: ==8909== Releasing lock... [2025-04-09 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-09 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:31:05 [end_date_ymd] => 2025-04-09 20:31:05 [RateCDR] => 1 ) [2025-04-09 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:31:05' and `end` < '2025-04-09 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:31:18] Production.INFO: count ==1636 [2025-04-09 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:31:05 - End Time 2025-04-09 20:31:05 [2025-04-09 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871999', 'tblTempUsageDetail_20' ) start [2025-04-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14871999', 'tblTempUsageDetail_20' ) end [2025-04-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871999', 'tblTempVendorCDR_20' ) start [2025-04-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14871999', 'tblTempVendorCDR_20' ) end [2025-04-09 20:31:18] Production.INFO: ProcessCDR(1,14871999,1,1,2) [2025-04-09 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14871999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14871999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14871999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14871999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871999', 'tblTempUsageDetail_20' ) start [2025-04-09 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14871999', 'tblTempUsageDetail_20' ) end [2025-04-09 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:31:22] Production.INFO: ==8982== Releasing lock... [2025-04-09 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:31:22] Production.INFO: 40 MB #Memory Used# [2025-04-09 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:32:05 [end_date_ymd] => 2025-04-09 20:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:32:05' and `end` < '2025-04-09 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-09 20:32:18] Production.INFO: count ==1620 [2025-04-09 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:32:05 - End Time 2025-04-09 20:32:05 [2025-04-09 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872004', 'tblTempUsageDetail_20' ) start [2025-04-09 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872004', 'tblTempUsageDetail_20' ) end [2025-04-09 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872004', 'tblTempVendorCDR_20' ) start [2025-04-09 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872004', 'tblTempVendorCDR_20' ) end [2025-04-09 20:32:18] Production.INFO: ProcessCDR(1,14872004,1,1,2) [2025-04-09 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872004', 'tblTempUsageDetail_20' ) start [2025-04-09 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872004', 'tblTempUsageDetail_20' ) end [2025-04-09 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:32:23] Production.INFO: ==9054== Releasing lock... [2025-04-09 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:32:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-09 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:33:05 [end_date_ymd] => 2025-04-09 20:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:33:05' and `end` < '2025-04-09 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-09 20:33:18] Production.INFO: count ==1587 [2025-04-09 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:33:05 - End Time 2025-04-09 20:33:05 [2025-04-09 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872009', 'tblTempUsageDetail_20' ) start [2025-04-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872009', 'tblTempUsageDetail_20' ) end [2025-04-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872009', 'tblTempVendorCDR_20' ) start [2025-04-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872009', 'tblTempVendorCDR_20' ) end [2025-04-09 20:33:19] Production.INFO: ProcessCDR(1,14872009,1,1,2) [2025-04-09 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872009', 'tblTempUsageDetail_20' ) start [2025-04-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872009', 'tblTempUsageDetail_20' ) end [2025-04-09 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:33:22] Production.INFO: ==9126== Releasing lock... [2025-04-09 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-09 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:34:05 [end_date_ymd] => 2025-04-09 20:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:34:05' and `end` < '2025-04-09 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-09 20:34:18] Production.INFO: count ==1507 [2025-04-09 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:34:05 - End Time 2025-04-09 20:34:05 [2025-04-09 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872014', 'tblTempUsageDetail_20' ) start [2025-04-09 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872014', 'tblTempUsageDetail_20' ) end [2025-04-09 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872014', 'tblTempVendorCDR_20' ) start [2025-04-09 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872014', 'tblTempVendorCDR_20' ) end [2025-04-09 20:34:19] Production.INFO: ProcessCDR(1,14872014,1,1,2) [2025-04-09 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872014', 'tblTempUsageDetail_20' ) start [2025-04-09 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872014', 'tblTempUsageDetail_20' ) end [2025-04-09 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:34:24] Production.INFO: ==9239== Releasing lock... [2025-04-09 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:34:24] Production.INFO: 39 MB #Memory Used# [2025-04-09 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:35:06 [end_date_ymd] => 2025-04-09 20:35:06 [RateCDR] => 1 ) [2025-04-09 20: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-09 17:35:06' and `end` < '2025-04-09 20: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-09 20:35:19] Production.INFO: count ==1503 [2025-04-09 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:35:06 - End Time 2025-04-09 20:35:06 [2025-04-09 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872019', 'tblTempUsageDetail_20' ) start [2025-04-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872019', 'tblTempUsageDetail_20' ) end [2025-04-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872019', 'tblTempVendorCDR_20' ) start [2025-04-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872019', 'tblTempVendorCDR_20' ) end [2025-04-09 20:35:19] Production.INFO: ProcessCDR(1,14872019,1,1,2) [2025-04-09 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872019', 'tblTempUsageDetail_20' ) start [2025-04-09 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872019', 'tblTempUsageDetail_20' ) end [2025-04-09 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:35:23] Production.INFO: ==9321== Releasing lock... [2025-04-09 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:36:06 [end_date_ymd] => 2025-04-09 20:36:06 [RateCDR] => 1 ) [2025-04-09 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:36:06' and `end` < '2025-04-09 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:36:19] Production.INFO: count ==1497 [2025-04-09 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:36:06 - End Time 2025-04-09 20:36:06 [2025-04-09 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872024', 'tblTempUsageDetail_20' ) start [2025-04-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872024', 'tblTempUsageDetail_20' ) end [2025-04-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872024', 'tblTempVendorCDR_20' ) start [2025-04-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872024', 'tblTempVendorCDR_20' ) end [2025-04-09 20:36:19] Production.INFO: ProcessCDR(1,14872024,1,1,2) [2025-04-09 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872024', 'tblTempUsageDetail_20' ) start [2025-04-09 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872024', 'tblTempUsageDetail_20' ) end [2025-04-09 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:36:23] Production.INFO: ==9407== Releasing lock... [2025-04-09 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:37:05 [end_date_ymd] => 2025-04-09 20:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:37:05' and `end` < '2025-04-09 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-09 20:37:18] Production.INFO: count ==1493 [2025-04-09 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:37:05 - End Time 2025-04-09 20:37:05 [2025-04-09 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872029', 'tblTempUsageDetail_20' ) start [2025-04-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872029', 'tblTempUsageDetail_20' ) end [2025-04-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872029', 'tblTempVendorCDR_20' ) start [2025-04-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872029', 'tblTempVendorCDR_20' ) end [2025-04-09 20:37:19] Production.INFO: ProcessCDR(1,14872029,1,1,2) [2025-04-09 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872029', 'tblTempUsageDetail_20' ) start [2025-04-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872029', 'tblTempUsageDetail_20' ) end [2025-04-09 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:37:23] Production.INFO: ==9482== Releasing lock... [2025-04-09 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:37:23] Production.INFO: 39 MB #Memory Used# [2025-04-09 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:38:05 [end_date_ymd] => 2025-04-09 20:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:38:05' and `end` < '2025-04-09 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-09 20:38:18] Production.INFO: count ==1490 [2025-04-09 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:38:05 - End Time 2025-04-09 20:38:05 [2025-04-09 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872034', 'tblTempUsageDetail_20' ) start [2025-04-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872034', 'tblTempUsageDetail_20' ) end [2025-04-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872034', 'tblTempVendorCDR_20' ) start [2025-04-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872034', 'tblTempVendorCDR_20' ) end [2025-04-09 20:38:18] Production.INFO: ProcessCDR(1,14872034,1,1,2) [2025-04-09 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872034', 'tblTempUsageDetail_20' ) start [2025-04-09 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872034', 'tblTempUsageDetail_20' ) end [2025-04-09 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:38:23] Production.INFO: ==9555== Releasing lock... [2025-04-09 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:38:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:39:06 [end_date_ymd] => 2025-04-09 20:39:06 [RateCDR] => 1 ) [2025-04-09 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:39:06' and `end` < '2025-04-09 20: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-09 20:39:19] Production.INFO: count ==1487 [2025-04-09 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:39:06 - End Time 2025-04-09 20:39:06 [2025-04-09 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872039', 'tblTempUsageDetail_20' ) start [2025-04-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872039', 'tblTempUsageDetail_20' ) end [2025-04-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872039', 'tblTempVendorCDR_20' ) start [2025-04-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872039', 'tblTempVendorCDR_20' ) end [2025-04-09 20:39:19] Production.INFO: ProcessCDR(1,14872039,1,1,2) [2025-04-09 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872039', 'tblTempUsageDetail_20' ) start [2025-04-09 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872039', 'tblTempUsageDetail_20' ) end [2025-04-09 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:39:23] Production.INFO: ==9625== Releasing lock... [2025-04-09 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:39:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:40:06 [end_date_ymd] => 2025-04-09 20:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:40:06' and `end` < '2025-04-09 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-09 20:40:19] Production.INFO: count ==1478 [2025-04-09 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:40:06 - End Time 2025-04-09 20:40:06 [2025-04-09 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872044', 'tblTempUsageDetail_20' ) start [2025-04-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872044', 'tblTempUsageDetail_20' ) end [2025-04-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872044', 'tblTempVendorCDR_20' ) start [2025-04-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872044', 'tblTempVendorCDR_20' ) end [2025-04-09 20:40:19] Production.INFO: ProcessCDR(1,14872044,1,1,2) [2025-04-09 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872044', 'tblTempUsageDetail_20' ) start [2025-04-09 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872044', 'tblTempUsageDetail_20' ) end [2025-04-09 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:40:25] Production.INFO: ==9701== Releasing lock... [2025-04-09 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:40:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-09 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:41:06 [end_date_ymd] => 2025-04-09 20:41:06 [RateCDR] => 1 ) [2025-04-09 20: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 17:41:06' and `end` < '2025-04-09 20: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-09 20:41:19] Production.INFO: count ==1423 [2025-04-09 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:41:06 - End Time 2025-04-09 20:41:06 [2025-04-09 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872050', 'tblTempUsageDetail_20' ) start [2025-04-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872050', 'tblTempUsageDetail_20' ) end [2025-04-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872050', 'tblTempVendorCDR_20' ) start [2025-04-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872050', 'tblTempVendorCDR_20' ) end [2025-04-09 20:41:19] Production.INFO: ProcessCDR(1,14872050,1,1,2) [2025-04-09 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872050', 'tblTempUsageDetail_20' ) start [2025-04-09 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872050', 'tblTempUsageDetail_20' ) end [2025-04-09 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:41:23] Production.INFO: ==9776== Releasing lock... [2025-04-09 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:41:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:42:06 [end_date_ymd] => 2025-04-09 20:42:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:42:06' and `end` < '2025-04-09 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-09 20:42:19] Production.INFO: count ==1418 [2025-04-09 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:42:06 - End Time 2025-04-09 20:42:06 [2025-04-09 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872055', 'tblTempUsageDetail_20' ) start [2025-04-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872055', 'tblTempUsageDetail_20' ) end [2025-04-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872055', 'tblTempVendorCDR_20' ) start [2025-04-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872055', 'tblTempVendorCDR_20' ) end [2025-04-09 20:42:19] Production.INFO: ProcessCDR(1,14872055,1,1,2) [2025-04-09 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872055', 'tblTempUsageDetail_20' ) start [2025-04-09 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872055', 'tblTempUsageDetail_20' ) end [2025-04-09 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:42:22] Production.INFO: ==9848== Releasing lock... [2025-04-09 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:42:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:43:06 [end_date_ymd] => 2025-04-09 20:43:06 [RateCDR] => 1 ) [2025-04-09 20: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 17:43:06' and `end` < '2025-04-09 20: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-09 20:43:19] Production.INFO: count ==1417 [2025-04-09 20:43:20] Production.ERROR: pbx CDR StartTime 2025-04-09 17:43:06 - End Time 2025-04-09 20:43:06 [2025-04-09 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872060', 'tblTempUsageDetail_20' ) start [2025-04-09 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872060', 'tblTempUsageDetail_20' ) end [2025-04-09 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872060', 'tblTempVendorCDR_20' ) start [2025-04-09 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872060', 'tblTempVendorCDR_20' ) end [2025-04-09 20:43:20] Production.INFO: ProcessCDR(1,14872060,1,1,2) [2025-04-09 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872060', 'tblTempUsageDetail_20' ) start [2025-04-09 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872060', 'tblTempUsageDetail_20' ) end [2025-04-09 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:43:23] Production.INFO: ==9922== Releasing lock... [2025-04-09 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:43:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:44:05 [end_date_ymd] => 2025-04-09 20:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:44:05' and `end` < '2025-04-09 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-09 20:44:18] Production.INFO: count ==1410 [2025-04-09 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:44:05 - End Time 2025-04-09 20:44:05 [2025-04-09 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872065', 'tblTempUsageDetail_20' ) start [2025-04-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872065', 'tblTempUsageDetail_20' ) end [2025-04-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872065', 'tblTempVendorCDR_20' ) start [2025-04-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872065', 'tblTempVendorCDR_20' ) end [2025-04-09 20:44:18] Production.INFO: ProcessCDR(1,14872065,1,1,2) [2025-04-09 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872065', 'tblTempUsageDetail_20' ) start [2025-04-09 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872065', 'tblTempUsageDetail_20' ) end [2025-04-09 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:44:22] Production.INFO: ==9994== Releasing lock... [2025-04-09 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-09 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:45:05 [end_date_ymd] => 2025-04-09 20:45:05 [RateCDR] => 1 ) [2025-04-09 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:45:05' and `end` < '2025-04-09 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:45:18] Production.INFO: count ==1403 [2025-04-09 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:45:05 - End Time 2025-04-09 20:45:05 [2025-04-09 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872070', 'tblTempUsageDetail_20' ) start [2025-04-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872070', 'tblTempUsageDetail_20' ) end [2025-04-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872070', 'tblTempVendorCDR_20' ) start [2025-04-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872070', 'tblTempVendorCDR_20' ) end [2025-04-09 20:45:18] Production.INFO: ProcessCDR(1,14872070,1,1,2) [2025-04-09 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872070', 'tblTempUsageDetail_20' ) start [2025-04-09 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872070', 'tblTempUsageDetail_20' ) end [2025-04-09 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:45:22] Production.INFO: ==10069== Releasing lock... [2025-04-09 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:45:22] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:46:05 [end_date_ymd] => 2025-04-09 20:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:46:05' and `end` < '2025-04-09 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-09 20:46:18] Production.INFO: count ==1398 [2025-04-09 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:46:05 - End Time 2025-04-09 20:46:05 [2025-04-09 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872075', 'tblTempUsageDetail_20' ) start [2025-04-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872075', 'tblTempUsageDetail_20' ) end [2025-04-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872075', 'tblTempVendorCDR_20' ) start [2025-04-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872075', 'tblTempVendorCDR_20' ) end [2025-04-09 20:46:18] Production.INFO: ProcessCDR(1,14872075,1,1,2) [2025-04-09 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872075', 'tblTempUsageDetail_20' ) start [2025-04-09 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872075', 'tblTempUsageDetail_20' ) end [2025-04-09 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:46:22] Production.INFO: ==10143== Releasing lock... [2025-04-09 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:46:22] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:47:06 [end_date_ymd] => 2025-04-09 20:47:06 [RateCDR] => 1 ) [2025-04-09 20: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 17:47:06' and `end` < '2025-04-09 20: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-09 20:47:18] Production.INFO: count ==1394 [2025-04-09 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:47:06 - End Time 2025-04-09 20:47:06 [2025-04-09 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872080', 'tblTempUsageDetail_20' ) start [2025-04-09 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872080', 'tblTempUsageDetail_20' ) end [2025-04-09 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872080', 'tblTempVendorCDR_20' ) start [2025-04-09 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872080', 'tblTempVendorCDR_20' ) end [2025-04-09 20:47:19] Production.INFO: ProcessCDR(1,14872080,1,1,2) [2025-04-09 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872080', 'tblTempUsageDetail_20' ) start [2025-04-09 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872080', 'tblTempUsageDetail_20' ) end [2025-04-09 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:47:22] Production.INFO: ==10218== Releasing lock... [2025-04-09 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:47:22] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:48:05 [end_date_ymd] => 2025-04-09 20:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:48:05' and `end` < '2025-04-09 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-09 20:48:18] Production.INFO: count ==1389 [2025-04-09 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:48:05 - End Time 2025-04-09 20:48:05 [2025-04-09 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872085', 'tblTempUsageDetail_20' ) start [2025-04-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872085', 'tblTempUsageDetail_20' ) end [2025-04-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872085', 'tblTempVendorCDR_20' ) start [2025-04-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872085', 'tblTempVendorCDR_20' ) end [2025-04-09 20:48:18] Production.INFO: ProcessCDR(1,14872085,1,1,2) [2025-04-09 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872085', 'tblTempUsageDetail_20' ) start [2025-04-09 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872085', 'tblTempUsageDetail_20' ) end [2025-04-09 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:48:23] Production.INFO: ==10295== Releasing lock... [2025-04-09 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:48:23] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:49:05 [end_date_ymd] => 2025-04-09 20:49:05 [RateCDR] => 1 ) [2025-04-09 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:49:05' and `end` < '2025-04-09 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:49:18] Production.INFO: count ==1386 [2025-04-09 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:49:05 - End Time 2025-04-09 20:49:05 [2025-04-09 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872090', 'tblTempUsageDetail_20' ) start [2025-04-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872090', 'tblTempUsageDetail_20' ) end [2025-04-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872090', 'tblTempVendorCDR_20' ) start [2025-04-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872090', 'tblTempVendorCDR_20' ) end [2025-04-09 20:49:19] Production.INFO: ProcessCDR(1,14872090,1,1,2) [2025-04-09 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872090', 'tblTempUsageDetail_20' ) start [2025-04-09 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872090', 'tblTempUsageDetail_20' ) end [2025-04-09 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:49:22] Production.INFO: ==10376== Releasing lock... [2025-04-09 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:49:22] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:50:06 [end_date_ymd] => 2025-04-09 20:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 17:50:06' and `end` < '2025-04-09 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-09 20:50:19] Production.INFO: count ==1384 [2025-04-09 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:50:06 - End Time 2025-04-09 20:50:06 [2025-04-09 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872096', 'tblTempUsageDetail_20' ) start [2025-04-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872096', 'tblTempUsageDetail_20' ) end [2025-04-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872096', 'tblTempVendorCDR_20' ) start [2025-04-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872096', 'tblTempVendorCDR_20' ) end [2025-04-09 20:50:19] Production.INFO: ProcessCDR(1,14872096,1,1,2) [2025-04-09 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872096', 'tblTempUsageDetail_20' ) start [2025-04-09 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872096', 'tblTempUsageDetail_20' ) end [2025-04-09 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:50:23] Production.INFO: ==10498== Releasing lock... [2025-04-09 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:50:23] Production.INFO: 38 MB #Memory Used# [2025-04-09 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:51:05 [end_date_ymd] => 2025-04-09 20:51:05 [RateCDR] => 1 ) [2025-04-09 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:51:05' and `end` < '2025-04-09 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:51:18] Production.INFO: count ==1300 [2025-04-09 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-09 17:51:05 - End Time 2025-04-09 20:51:05 [2025-04-09 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872101', 'tblTempUsageDetail_20' ) start [2025-04-09 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872101', 'tblTempUsageDetail_20' ) end [2025-04-09 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872101', 'tblTempVendorCDR_20' ) start [2025-04-09 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872101', 'tblTempVendorCDR_20' ) end [2025-04-09 20:51:19] Production.INFO: ProcessCDR(1,14872101,1,1,2) [2025-04-09 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872101', 'tblTempUsageDetail_20' ) start [2025-04-09 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872101', 'tblTempUsageDetail_20' ) end [2025-04-09 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:51:22] Production.INFO: ==10584== Releasing lock... [2025-04-09 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:52:05 [end_date_ymd] => 2025-04-09 20:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:52:05' and `end` < '2025-04-09 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-09 20:52:18] Production.INFO: count ==1296 [2025-04-09 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:52:05 - End Time 2025-04-09 20:52:05 [2025-04-09 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872106', 'tblTempUsageDetail_20' ) start [2025-04-09 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872106', 'tblTempUsageDetail_20' ) end [2025-04-09 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872106', 'tblTempVendorCDR_20' ) start [2025-04-09 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872106', 'tblTempVendorCDR_20' ) end [2025-04-09 20:52:18] Production.INFO: ProcessCDR(1,14872106,1,1,2) [2025-04-09 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872106', 'tblTempUsageDetail_20' ) start [2025-04-09 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872106', 'tblTempUsageDetail_20' ) end [2025-04-09 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:52:23] Production.INFO: ==10657== Releasing lock... [2025-04-09 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:52:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:53:05 [end_date_ymd] => 2025-04-09 20:53:05 [RateCDR] => 1 ) [2025-04-09 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:53:05' and `end` < '2025-04-09 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:53:18] Production.INFO: count ==1294 [2025-04-09 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:53:05 - End Time 2025-04-09 20:53:05 [2025-04-09 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872111', 'tblTempUsageDetail_20' ) start [2025-04-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872111', 'tblTempUsageDetail_20' ) end [2025-04-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872111', 'tblTempVendorCDR_20' ) start [2025-04-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872111', 'tblTempVendorCDR_20' ) end [2025-04-09 20:53:18] Production.INFO: ProcessCDR(1,14872111,1,1,2) [2025-04-09 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872111', 'tblTempUsageDetail_20' ) start [2025-04-09 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872111', 'tblTempUsageDetail_20' ) end [2025-04-09 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:53:23] Production.INFO: ==10735== Releasing lock... [2025-04-09 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:53:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-09 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:54:05 [end_date_ymd] => 2025-04-09 20:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:54:05' and `end` < '2025-04-09 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-09 20:54:18] Production.INFO: count ==1293 [2025-04-09 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:54:05 - End Time 2025-04-09 20:54:05 [2025-04-09 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872116', 'tblTempUsageDetail_20' ) start [2025-04-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872116', 'tblTempUsageDetail_20' ) end [2025-04-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872116', 'tblTempVendorCDR_20' ) start [2025-04-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872116', 'tblTempVendorCDR_20' ) end [2025-04-09 20:54:18] Production.INFO: ProcessCDR(1,14872116,1,1,2) [2025-04-09 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872116', 'tblTempUsageDetail_20' ) start [2025-04-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872116', 'tblTempUsageDetail_20' ) end [2025-04-09 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:54:22] Production.INFO: ==10811== Releasing lock... [2025-04-09 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:55:05 [end_date_ymd] => 2025-04-09 20:55:05 [RateCDR] => 1 ) [2025-04-09 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:55:05' and `end` < '2025-04-09 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:55:18] Production.INFO: count ==1290 [2025-04-09 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:55:05 - End Time 2025-04-09 20:55:05 [2025-04-09 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872121', 'tblTempUsageDetail_20' ) start [2025-04-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872121', 'tblTempUsageDetail_20' ) end [2025-04-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872121', 'tblTempVendorCDR_20' ) start [2025-04-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872121', 'tblTempVendorCDR_20' ) end [2025-04-09 20:55:18] Production.INFO: ProcessCDR(1,14872121,1,1,2) [2025-04-09 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872121', 'tblTempUsageDetail_20' ) start [2025-04-09 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872121', 'tblTempUsageDetail_20' ) end [2025-04-09 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:55:22] Production.INFO: ==10893== Releasing lock... [2025-04-09 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:56:05 [end_date_ymd] => 2025-04-09 20:56:05 [RateCDR] => 1 ) [2025-04-09 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:56:05' and `end` < '2025-04-09 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:56:18] Production.INFO: count ==1288 [2025-04-09 20:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:56:05 - End Time 2025-04-09 20:56:05 [2025-04-09 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872126', 'tblTempUsageDetail_20' ) start [2025-04-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872126', 'tblTempUsageDetail_20' ) end [2025-04-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872126', 'tblTempVendorCDR_20' ) start [2025-04-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872126', 'tblTempVendorCDR_20' ) end [2025-04-09 20:56:18] Production.INFO: ProcessCDR(1,14872126,1,1,2) [2025-04-09 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872126', 'tblTempUsageDetail_20' ) start [2025-04-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872126', 'tblTempUsageDetail_20' ) end [2025-04-09 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:56:22] Production.INFO: ==10971== Releasing lock... [2025-04-09 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:57:05 [end_date_ymd] => 2025-04-09 20:57:05 [RateCDR] => 1 ) [2025-04-09 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:57:05' and `end` < '2025-04-09 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 20:57:18] Production.INFO: count ==1286 [2025-04-09 20:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:57:05 - End Time 2025-04-09 20:57:05 [2025-04-09 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872131', 'tblTempUsageDetail_20' ) start [2025-04-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872131', 'tblTempUsageDetail_20' ) end [2025-04-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872131', 'tblTempVendorCDR_20' ) start [2025-04-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872131', 'tblTempVendorCDR_20' ) end [2025-04-09 20:57:18] Production.INFO: ProcessCDR(1,14872131,1,1,2) [2025-04-09 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872131', 'tblTempUsageDetail_20' ) start [2025-04-09 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872131', 'tblTempUsageDetail_20' ) end [2025-04-09 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:57:22] Production.INFO: ==11050== Releasing lock... [2025-04-09 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:58:05 [end_date_ymd] => 2025-04-09 20:58:05 [RateCDR] => 1 ) [2025-04-09 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 17:58:05' and `end` < '2025-04-09 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-09 20:58:18] Production.INFO: count ==1286 [2025-04-09 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:58:05 - End Time 2025-04-09 20:58:05 [2025-04-09 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872136', 'tblTempUsageDetail_20' ) start [2025-04-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872136', 'tblTempUsageDetail_20' ) end [2025-04-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872136', 'tblTempVendorCDR_20' ) start [2025-04-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872136', 'tblTempVendorCDR_20' ) end [2025-04-09 20:58:19] Production.INFO: ProcessCDR(1,14872136,1,1,2) [2025-04-09 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872136', 'tblTempUsageDetail_20' ) start [2025-04-09 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872136', 'tblTempUsageDetail_20' ) end [2025-04-09 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:58:24] Production.INFO: ==11127== Releasing lock... [2025-04-09 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:58:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 17:59:05 [end_date_ymd] => 2025-04-09 20:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 17:59:05' and `end` < '2025-04-09 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-09 20:59:18] Production.INFO: count ==1282 [2025-04-09 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 17:59:05 - End Time 2025-04-09 20:59:05 [2025-04-09 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872141', 'tblTempUsageDetail_20' ) start [2025-04-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872141', 'tblTempUsageDetail_20' ) end [2025-04-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872141', 'tblTempVendorCDR_20' ) start [2025-04-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872141', 'tblTempVendorCDR_20' ) end [2025-04-09 20:59:18] Production.INFO: ProcessCDR(1,14872141,1,1,2) [2025-04-09 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872141', 'tblTempUsageDetail_20' ) start [2025-04-09 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872141', 'tblTempUsageDetail_20' ) end [2025-04-09 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 20:59:23] Production.INFO: ==11213== Releasing lock... [2025-04-09 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 20:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:00:06 [end_date_ymd] => 2025-04-09 21:00:06 [RateCDR] => 1 ) [2025-04-09 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-09 18:00:06' and `end` < '2025-04-09 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-09 21:00:19] Production.INFO: count ==1272 [2025-04-09 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:00:06 - End Time 2025-04-09 21:00:06 [2025-04-09 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872147', 'tblTempUsageDetail_20' ) start [2025-04-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872147', 'tblTempUsageDetail_20' ) end [2025-04-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872147', 'tblTempVendorCDR_20' ) start [2025-04-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872147', 'tblTempVendorCDR_20' ) end [2025-04-09 21:00:19] Production.INFO: ProcessCDR(1,14872147,1,1,2) [2025-04-09 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872147', 'tblTempUsageDetail_20' ) start [2025-04-09 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872147', 'tblTempUsageDetail_20' ) end [2025-04-09 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:00:24] Production.INFO: ==11294== Releasing lock... [2025-04-09 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:00:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-09 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:01:05 [end_date_ymd] => 2025-04-09 21:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:01:05' and `end` < '2025-04-09 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-09 21:01:18] Production.INFO: count ==1215 [2025-04-09 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:01:05 - End Time 2025-04-09 21:01:05 [2025-04-09 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872152', 'tblTempUsageDetail_20' ) start [2025-04-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872152', 'tblTempUsageDetail_20' ) end [2025-04-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872152', 'tblTempVendorCDR_20' ) start [2025-04-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872152', 'tblTempVendorCDR_20' ) end [2025-04-09 21:01:18] Production.INFO: ProcessCDR(1,14872152,1,1,2) [2025-04-09 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872152', 'tblTempUsageDetail_20' ) start [2025-04-09 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872152', 'tblTempUsageDetail_20' ) end [2025-04-09 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:01:22] Production.INFO: ==11385== Releasing lock... [2025-04-09 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:01:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:02:05 [end_date_ymd] => 2025-04-09 21:02:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:02:05' and `end` < '2025-04-09 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-09 21:02:18] Production.INFO: count ==1207 [2025-04-09 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:02:05 - End Time 2025-04-09 21:02:05 [2025-04-09 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872157', 'tblTempUsageDetail_20' ) start [2025-04-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872157', 'tblTempUsageDetail_20' ) end [2025-04-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872157', 'tblTempVendorCDR_20' ) start [2025-04-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872157', 'tblTempVendorCDR_20' ) end [2025-04-09 21:02:18] Production.INFO: ProcessCDR(1,14872157,1,1,2) [2025-04-09 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872157', 'tblTempUsageDetail_20' ) start [2025-04-09 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872157', 'tblTempUsageDetail_20' ) end [2025-04-09 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:02:22] Production.INFO: ==11464== Releasing lock... [2025-04-09 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:02:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:03:04 [end_date_ymd] => 2025-04-09 21:03:04 [RateCDR] => 1 ) [2025-04-09 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-09 18:03:04' and `end` < '2025-04-09 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-09 21:03:18] Production.INFO: count ==1205 [2025-04-09 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:03:04 - End Time 2025-04-09 21:03:04 [2025-04-09 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872162', 'tblTempUsageDetail_20' ) start [2025-04-09 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872162', 'tblTempUsageDetail_20' ) end [2025-04-09 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872162', 'tblTempVendorCDR_20' ) start [2025-04-09 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872162', 'tblTempVendorCDR_20' ) end [2025-04-09 21:03:18] Production.INFO: ProcessCDR(1,14872162,1,1,2) [2025-04-09 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872162', 'tblTempUsageDetail_20' ) start [2025-04-09 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872162', 'tblTempUsageDetail_20' ) end [2025-04-09 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:03:21] Production.INFO: ==11551== Releasing lock... [2025-04-09 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:03:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-09 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:04:05 [end_date_ymd] => 2025-04-09 21:04:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:04:05' and `end` < '2025-04-09 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-09 21:04:18] Production.INFO: count ==1202 [2025-04-09 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:04:05 - End Time 2025-04-09 21:04:05 [2025-04-09 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872167', 'tblTempUsageDetail_20' ) start [2025-04-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872167', 'tblTempUsageDetail_20' ) end [2025-04-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872167', 'tblTempVendorCDR_20' ) start [2025-04-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872167', 'tblTempVendorCDR_20' ) end [2025-04-09 21:04:18] Production.INFO: ProcessCDR(1,14872167,1,1,2) [2025-04-09 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872167', 'tblTempUsageDetail_20' ) start [2025-04-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872167', 'tblTempUsageDetail_20' ) end [2025-04-09 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:04:22] Production.INFO: ==11636== Releasing lock... [2025-04-09 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:04:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:05:05 [end_date_ymd] => 2025-04-09 21:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:05:05' and `end` < '2025-04-09 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-09 21:05:18] Production.INFO: count ==1202 [2025-04-09 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:05:05 - End Time 2025-04-09 21:05:05 [2025-04-09 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872172', 'tblTempUsageDetail_20' ) start [2025-04-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872172', 'tblTempUsageDetail_20' ) end [2025-04-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872172', 'tblTempVendorCDR_20' ) start [2025-04-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872172', 'tblTempVendorCDR_20' ) end [2025-04-09 21:05:18] Production.INFO: ProcessCDR(1,14872172,1,1,2) [2025-04-09 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872172', 'tblTempUsageDetail_20' ) start [2025-04-09 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872172', 'tblTempUsageDetail_20' ) end [2025-04-09 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:05:21] Production.INFO: ==11756== Releasing lock... [2025-04-09 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:05:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:06:05 [end_date_ymd] => 2025-04-09 21:06:05 [RateCDR] => 1 ) [2025-04-09 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:06:05' and `end` < '2025-04-09 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:06:18] Production.INFO: count ==1200 [2025-04-09 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:06:05 - End Time 2025-04-09 21:06:05 [2025-04-09 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872177', 'tblTempUsageDetail_20' ) start [2025-04-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872177', 'tblTempUsageDetail_20' ) end [2025-04-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872177', 'tblTempVendorCDR_20' ) start [2025-04-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872177', 'tblTempVendorCDR_20' ) end [2025-04-09 21:06:18] Production.INFO: ProcessCDR(1,14872177,1,1,2) [2025-04-09 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872177', 'tblTempUsageDetail_20' ) start [2025-04-09 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872177', 'tblTempUsageDetail_20' ) end [2025-04-09 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:06:22] Production.INFO: ==11835== Releasing lock... [2025-04-09 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:06:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:07:05 [end_date_ymd] => 2025-04-09 21:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:07:05' and `end` < '2025-04-09 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-09 21:07:18] Production.INFO: count ==1194 [2025-04-09 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:07:05 - End Time 2025-04-09 21:07:05 [2025-04-09 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872182', 'tblTempUsageDetail_20' ) start [2025-04-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872182', 'tblTempUsageDetail_20' ) end [2025-04-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872182', 'tblTempVendorCDR_20' ) start [2025-04-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872182', 'tblTempVendorCDR_20' ) end [2025-04-09 21:07:19] Production.INFO: ProcessCDR(1,14872182,1,1,2) [2025-04-09 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872182', 'tblTempUsageDetail_20' ) start [2025-04-09 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872182', 'tblTempUsageDetail_20' ) end [2025-04-09 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:07:22] Production.INFO: ==11913== Releasing lock... [2025-04-09 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:08:05 [end_date_ymd] => 2025-04-09 21:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:08:05' and `end` < '2025-04-09 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-09 21:08:18] Production.INFO: count ==1193 [2025-04-09 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:08:05 - End Time 2025-04-09 21:08:05 [2025-04-09 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872187', 'tblTempUsageDetail_20' ) start [2025-04-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872187', 'tblTempUsageDetail_20' ) end [2025-04-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872187', 'tblTempVendorCDR_20' ) start [2025-04-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872187', 'tblTempVendorCDR_20' ) end [2025-04-09 21:08:19] Production.INFO: ProcessCDR(1,14872187,1,1,2) [2025-04-09 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872187', 'tblTempUsageDetail_20' ) start [2025-04-09 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872187', 'tblTempUsageDetail_20' ) end [2025-04-09 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:08:22] Production.INFO: ==11998== Releasing lock... [2025-04-09 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:09:06 [end_date_ymd] => 2025-04-09 21:09:06 [RateCDR] => 1 ) [2025-04-09 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:09:06' and `end` < '2025-04-09 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:09:19] Production.INFO: count ==1189 [2025-04-09 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:09:06 - End Time 2025-04-09 21:09:06 [2025-04-09 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872192', 'tblTempUsageDetail_20' ) start [2025-04-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872192', 'tblTempUsageDetail_20' ) end [2025-04-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872192', 'tblTempVendorCDR_20' ) start [2025-04-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872192', 'tblTempVendorCDR_20' ) end [2025-04-09 21:09:19] Production.INFO: ProcessCDR(1,14872192,1,1,2) [2025-04-09 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872192', 'tblTempUsageDetail_20' ) start [2025-04-09 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872192', 'tblTempUsageDetail_20' ) end [2025-04-09 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:09:23] Production.INFO: ==12079== Releasing lock... [2025-04-09 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:10:06 [end_date_ymd] => 2025-04-09 21:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 18:10:06' and `end` < '2025-04-09 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-09 21:10:19] Production.INFO: count ==1185 [2025-04-09 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:10:06 - End Time 2025-04-09 21:10:06 [2025-04-09 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872198', 'tblTempUsageDetail_20' ) start [2025-04-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872198', 'tblTempUsageDetail_20' ) end [2025-04-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872198', 'tblTempVendorCDR_20' ) start [2025-04-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872198', 'tblTempVendorCDR_20' ) end [2025-04-09 21:10:19] Production.INFO: ProcessCDR(1,14872198,1,1,2) [2025-04-09 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872198', 'tblTempUsageDetail_20' ) start [2025-04-09 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872198', 'tblTempUsageDetail_20' ) end [2025-04-09 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:10:23] Production.INFO: ==12165== Releasing lock... [2025-04-09 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:10:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:11:05 [end_date_ymd] => 2025-04-09 21:11:05 [RateCDR] => 1 ) [2025-04-09 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:11:05' and `end` < '2025-04-09 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:11:18] Production.INFO: count ==1126 [2025-04-09 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:11:05 - End Time 2025-04-09 21:11:05 [2025-04-09 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872203', 'tblTempUsageDetail_20' ) start [2025-04-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872203', 'tblTempUsageDetail_20' ) end [2025-04-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872203', 'tblTempVendorCDR_20' ) start [2025-04-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872203', 'tblTempVendorCDR_20' ) end [2025-04-09 21:11:18] Production.INFO: ProcessCDR(1,14872203,1,1,2) [2025-04-09 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872203', 'tblTempUsageDetail_20' ) start [2025-04-09 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872203', 'tblTempUsageDetail_20' ) end [2025-04-09 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:11:22] Production.INFO: ==12249== Releasing lock... [2025-04-09 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:11:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:12:05 [end_date_ymd] => 2025-04-09 21:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:12:05' and `end` < '2025-04-09 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-09 21:12:18] Production.INFO: count ==1126 [2025-04-09 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:12:05 - End Time 2025-04-09 21:12:05 [2025-04-09 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872208', 'tblTempUsageDetail_20' ) start [2025-04-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872208', 'tblTempUsageDetail_20' ) end [2025-04-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872208', 'tblTempVendorCDR_20' ) start [2025-04-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872208', 'tblTempVendorCDR_20' ) end [2025-04-09 21:12:18] Production.INFO: ProcessCDR(1,14872208,1,1,2) [2025-04-09 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872208', 'tblTempUsageDetail_20' ) start [2025-04-09 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872208', 'tblTempUsageDetail_20' ) end [2025-04-09 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:12:22] Production.INFO: ==12326== Releasing lock... [2025-04-09 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:12:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:13:05 [end_date_ymd] => 2025-04-09 21:13:05 [RateCDR] => 1 ) [2025-04-09 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:13:05' and `end` < '2025-04-09 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-09 21:13:18] Production.INFO: count ==1124 [2025-04-09 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:13:05 - End Time 2025-04-09 21:13:05 [2025-04-09 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872213', 'tblTempUsageDetail_20' ) start [2025-04-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872213', 'tblTempUsageDetail_20' ) end [2025-04-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872213', 'tblTempVendorCDR_20' ) start [2025-04-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872213', 'tblTempVendorCDR_20' ) end [2025-04-09 21:13:18] Production.INFO: ProcessCDR(1,14872213,1,1,2) [2025-04-09 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872213', 'tblTempUsageDetail_20' ) start [2025-04-09 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872213', 'tblTempUsageDetail_20' ) end [2025-04-09 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:13:21] Production.INFO: ==12403== Releasing lock... [2025-04-09 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-09 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:14:05 [end_date_ymd] => 2025-04-09 21:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:14:05' and `end` < '2025-04-09 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-09 21:14:18] Production.INFO: count ==1122 [2025-04-09 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:14:05 - End Time 2025-04-09 21:14:05 [2025-04-09 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872218', 'tblTempUsageDetail_20' ) start [2025-04-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872218', 'tblTempUsageDetail_20' ) end [2025-04-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872218', 'tblTempVendorCDR_20' ) start [2025-04-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872218', 'tblTempVendorCDR_20' ) end [2025-04-09 21:14:18] Production.INFO: ProcessCDR(1,14872218,1,1,2) [2025-04-09 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872218', 'tblTempUsageDetail_20' ) start [2025-04-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872218', 'tblTempUsageDetail_20' ) end [2025-04-09 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:14:21] Production.INFO: ==12492== Releasing lock... [2025-04-09 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:14:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:15:06 [end_date_ymd] => 2025-04-09 21:15:06 [RateCDR] => 1 ) [2025-04-09 21: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-09 18:15:06' and `end` < '2025-04-09 21: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-09 21:15:19] Production.INFO: count ==1116 [2025-04-09 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:15:06 - End Time 2025-04-09 21:15:06 [2025-04-09 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872223', 'tblTempUsageDetail_20' ) start [2025-04-09 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872223', 'tblTempUsageDetail_20' ) end [2025-04-09 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872223', 'tblTempVendorCDR_20' ) start [2025-04-09 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872223', 'tblTempVendorCDR_20' ) end [2025-04-09 21:15:19] Production.INFO: ProcessCDR(1,14872223,1,1,2) [2025-04-09 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872223', 'tblTempUsageDetail_20' ) start [2025-04-09 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872223', 'tblTempUsageDetail_20' ) end [2025-04-09 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:15:22] Production.INFO: ==12573== Releasing lock... [2025-04-09 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:15:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:16:05 [end_date_ymd] => 2025-04-09 21:16:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:16:05' and `end` < '2025-04-09 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-09 21:16:18] Production.INFO: count ==1114 [2025-04-09 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:16:05 - End Time 2025-04-09 21:16:05 [2025-04-09 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872228', 'tblTempUsageDetail_20' ) start [2025-04-09 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872228', 'tblTempUsageDetail_20' ) end [2025-04-09 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872228', 'tblTempVendorCDR_20' ) start [2025-04-09 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872228', 'tblTempVendorCDR_20' ) end [2025-04-09 21:16:18] Production.INFO: ProcessCDR(1,14872228,1,1,2) [2025-04-09 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872228', 'tblTempUsageDetail_20' ) start [2025-04-09 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872228', 'tblTempUsageDetail_20' ) end [2025-04-09 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:16:21] Production.INFO: ==12659== Releasing lock... [2025-04-09 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:16:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:17:05 [end_date_ymd] => 2025-04-09 21:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:17:05' and `end` < '2025-04-09 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-09 21:17:18] Production.INFO: count ==1117 [2025-04-09 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:17:05 - End Time 2025-04-09 21:17:05 [2025-04-09 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872233', 'tblTempUsageDetail_20' ) start [2025-04-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872233', 'tblTempUsageDetail_20' ) end [2025-04-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872233', 'tblTempVendorCDR_20' ) start [2025-04-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872233', 'tblTempVendorCDR_20' ) end [2025-04-09 21:17:18] Production.INFO: ProcessCDR(1,14872233,1,1,2) [2025-04-09 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872233', 'tblTempUsageDetail_20' ) start [2025-04-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872233', 'tblTempUsageDetail_20' ) end [2025-04-09 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:17:22] Production.INFO: ==12743== Releasing lock... [2025-04-09 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:17:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:18:04 [end_date_ymd] => 2025-04-09 21:18:04 [RateCDR] => 1 ) [2025-04-09 21: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-09 18:18:04' and `end` < '2025-04-09 21: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-09 21:18:17] Production.INFO: count ==1116 [2025-04-09 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:18:04 - End Time 2025-04-09 21:18:04 [2025-04-09 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872238', 'tblTempUsageDetail_20' ) start [2025-04-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872238', 'tblTempUsageDetail_20' ) end [2025-04-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872238', 'tblTempVendorCDR_20' ) start [2025-04-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872238', 'tblTempVendorCDR_20' ) end [2025-04-09 21:18:18] Production.INFO: ProcessCDR(1,14872238,1,1,2) [2025-04-09 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872238', 'tblTempUsageDetail_20' ) start [2025-04-09 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872238', 'tblTempUsageDetail_20' ) end [2025-04-09 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:18:21] Production.INFO: ==12831== Releasing lock... [2025-04-09 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:18:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:19:05 [end_date_ymd] => 2025-04-09 21:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:19:05' and `end` < '2025-04-09 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-09 21:19:18] Production.INFO: count ==1116 [2025-04-09 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:19:05 - End Time 2025-04-09 21:19:05 [2025-04-09 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872243', 'tblTempUsageDetail_20' ) start [2025-04-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872243', 'tblTempUsageDetail_20' ) end [2025-04-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872243', 'tblTempVendorCDR_20' ) start [2025-04-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872243', 'tblTempVendorCDR_20' ) end [2025-04-09 21:19:19] Production.INFO: ProcessCDR(1,14872243,1,1,2) [2025-04-09 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872243', 'tblTempUsageDetail_20' ) start [2025-04-09 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872243', 'tblTempUsageDetail_20' ) end [2025-04-09 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:19:22] Production.INFO: ==12918== Releasing lock... [2025-04-09 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:19:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:20:06 [end_date_ymd] => 2025-04-09 21:20:06 [RateCDR] => 1 ) [2025-04-09 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:20:06' and `end` < '2025-04-09 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:20:19] Production.INFO: count ==1117 [2025-04-09 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:20:06 - End Time 2025-04-09 21:20:06 [2025-04-09 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872248', 'tblTempUsageDetail_20' ) start [2025-04-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872248', 'tblTempUsageDetail_20' ) end [2025-04-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872248', 'tblTempVendorCDR_20' ) start [2025-04-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872248', 'tblTempVendorCDR_20' ) end [2025-04-09 21:20:19] Production.INFO: ProcessCDR(1,14872248,1,1,2) [2025-04-09 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872248', 'tblTempUsageDetail_20' ) start [2025-04-09 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872248', 'tblTempUsageDetail_20' ) end [2025-04-09 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:20:23] Production.INFO: ==13005== Releasing lock... [2025-04-09 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:20:23] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:21:04 [end_date_ymd] => 2025-04-09 21:21:04 [RateCDR] => 1 ) [2025-04-09 21: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-09 18:21:04' and `end` < '2025-04-09 21: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-09 21:21:17] Production.INFO: count ==1117 [2025-04-09 21:21:17] Production.ERROR: pbx CDR StartTime 2025-04-09 18:21:04 - End Time 2025-04-09 21:21:04 [2025-04-09 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872254', 'tblTempUsageDetail_20' ) start [2025-04-09 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872254', 'tblTempUsageDetail_20' ) end [2025-04-09 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872254', 'tblTempVendorCDR_20' ) start [2025-04-09 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872254', 'tblTempVendorCDR_20' ) end [2025-04-09 21:21:17] Production.INFO: ProcessCDR(1,14872254,1,1,2) [2025-04-09 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872254', 'tblTempUsageDetail_20' ) start [2025-04-09 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872254', 'tblTempUsageDetail_20' ) end [2025-04-09 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:21:21] Production.INFO: ==13122== Releasing lock... [2025-04-09 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:21:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:22:06 [end_date_ymd] => 2025-04-09 21:22:06 [RateCDR] => 1 ) [2025-04-09 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:22:06' and `end` < '2025-04-09 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:22:19] Production.INFO: count ==1117 [2025-04-09 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:22:06 - End Time 2025-04-09 21:22:06 [2025-04-09 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872259', 'tblTempUsageDetail_20' ) start [2025-04-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872259', 'tblTempUsageDetail_20' ) end [2025-04-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872259', 'tblTempVendorCDR_20' ) start [2025-04-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872259', 'tblTempVendorCDR_20' ) end [2025-04-09 21:22:19] Production.INFO: ProcessCDR(1,14872259,1,1,2) [2025-04-09 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872259', 'tblTempUsageDetail_20' ) start [2025-04-09 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872259', 'tblTempUsageDetail_20' ) end [2025-04-09 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:22:22] Production.INFO: ==13208== Releasing lock... [2025-04-09 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:22:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:23:05 [end_date_ymd] => 2025-04-09 21:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:23:05' and `end` < '2025-04-09 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-09 21:23:18] Production.INFO: count ==1117 [2025-04-09 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:23:05 - End Time 2025-04-09 21:23:05 [2025-04-09 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872264', 'tblTempUsageDetail_20' ) start [2025-04-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872264', 'tblTempUsageDetail_20' ) end [2025-04-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872264', 'tblTempVendorCDR_20' ) start [2025-04-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872264', 'tblTempVendorCDR_20' ) end [2025-04-09 21:23:18] Production.INFO: ProcessCDR(1,14872264,1,1,2) [2025-04-09 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872264', 'tblTempUsageDetail_20' ) start [2025-04-09 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872264', 'tblTempUsageDetail_20' ) end [2025-04-09 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:23:22] Production.INFO: ==13290== Releasing lock... [2025-04-09 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:23:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:24:05 [end_date_ymd] => 2025-04-09 21:24:05 [RateCDR] => 1 ) [2025-04-09 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:24:05' and `end` < '2025-04-09 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:24:18] Production.INFO: count ==1116 [2025-04-09 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:24:05 - End Time 2025-04-09 21:24:05 [2025-04-09 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872269', 'tblTempUsageDetail_20' ) start [2025-04-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872269', 'tblTempUsageDetail_20' ) end [2025-04-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872269', 'tblTempVendorCDR_20' ) start [2025-04-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872269', 'tblTempVendorCDR_20' ) end [2025-04-09 21:24:19] Production.INFO: ProcessCDR(1,14872269,1,1,2) [2025-04-09 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872269', 'tblTempUsageDetail_20' ) start [2025-04-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872269', 'tblTempUsageDetail_20' ) end [2025-04-09 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:24:22] Production.INFO: ==13375== Releasing lock... [2025-04-09 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:24:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:25:05 [end_date_ymd] => 2025-04-09 21:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:25:05' and `end` < '2025-04-09 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-09 21:25:18] Production.INFO: count ==1111 [2025-04-09 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:25:05 - End Time 2025-04-09 21:25:05 [2025-04-09 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872274', 'tblTempUsageDetail_20' ) start [2025-04-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872274', 'tblTempUsageDetail_20' ) end [2025-04-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872274', 'tblTempVendorCDR_20' ) start [2025-04-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872274', 'tblTempVendorCDR_20' ) end [2025-04-09 21:25:18] Production.INFO: ProcessCDR(1,14872274,1,1,2) [2025-04-09 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872274', 'tblTempUsageDetail_20' ) start [2025-04-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872274', 'tblTempUsageDetail_20' ) end [2025-04-09 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:25:21] Production.INFO: ==13457== Releasing lock... [2025-04-09 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:25:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:26:05 [end_date_ymd] => 2025-04-09 21:26:05 [RateCDR] => 1 ) [2025-04-09 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:26:05' and `end` < '2025-04-09 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:26:19] Production.INFO: count ==1111 [2025-04-09 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:26:05 - End Time 2025-04-09 21:26:05 [2025-04-09 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872279', 'tblTempUsageDetail_20' ) start [2025-04-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872279', 'tblTempUsageDetail_20' ) end [2025-04-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872279', 'tblTempVendorCDR_20' ) start [2025-04-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872279', 'tblTempVendorCDR_20' ) end [2025-04-09 21:26:19] Production.INFO: ProcessCDR(1,14872279,1,1,2) [2025-04-09 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872279', 'tblTempUsageDetail_20' ) start [2025-04-09 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872279', 'tblTempUsageDetail_20' ) end [2025-04-09 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:26:24] Production.INFO: ==13540== Releasing lock... [2025-04-09 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:26:24] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:27:05 [end_date_ymd] => 2025-04-09 21:27:05 [RateCDR] => 1 ) [2025-04-09 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:27:05' and `end` < '2025-04-09 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:27:18] Production.INFO: count ==1110 [2025-04-09 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:27:05 - End Time 2025-04-09 21:27:05 [2025-04-09 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872284', 'tblTempUsageDetail_20' ) start [2025-04-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872284', 'tblTempUsageDetail_20' ) end [2025-04-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872284', 'tblTempVendorCDR_20' ) start [2025-04-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872284', 'tblTempVendorCDR_20' ) end [2025-04-09 21:27:18] Production.INFO: ProcessCDR(1,14872284,1,1,2) [2025-04-09 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872284', 'tblTempUsageDetail_20' ) start [2025-04-09 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872284', 'tblTempUsageDetail_20' ) end [2025-04-09 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:27:22] Production.INFO: ==13615== Releasing lock... [2025-04-09 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:27:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:28:05 [end_date_ymd] => 2025-04-09 21:28:05 [RateCDR] => 1 ) [2025-04-09 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:28:05' and `end` < '2025-04-09 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:28:18] Production.INFO: count ==1110 [2025-04-09 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:28:05 - End Time 2025-04-09 21:28:05 [2025-04-09 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872289', 'tblTempUsageDetail_20' ) start [2025-04-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872289', 'tblTempUsageDetail_20' ) end [2025-04-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872289', 'tblTempVendorCDR_20' ) start [2025-04-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872289', 'tblTempVendorCDR_20' ) end [2025-04-09 21:28:19] Production.INFO: ProcessCDR(1,14872289,1,1,2) [2025-04-09 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872289', 'tblTempUsageDetail_20' ) start [2025-04-09 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872289', 'tblTempUsageDetail_20' ) end [2025-04-09 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:28:24] Production.INFO: ==13688== Releasing lock... [2025-04-09 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:28:24] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:29:04 [end_date_ymd] => 2025-04-09 21:29:04 [RateCDR] => 1 ) [2025-04-09 21: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-09 18:29:04' and `end` < '2025-04-09 21: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-09 21:29:17] Production.INFO: count ==1109 [2025-04-09 21:29:17] Production.ERROR: pbx CDR StartTime 2025-04-09 18:29:04 - End Time 2025-04-09 21:29:04 [2025-04-09 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872294', 'tblTempUsageDetail_20' ) start [2025-04-09 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872294', 'tblTempUsageDetail_20' ) end [2025-04-09 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872294', 'tblTempVendorCDR_20' ) start [2025-04-09 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872294', 'tblTempVendorCDR_20' ) end [2025-04-09 21:29:17] Production.INFO: ProcessCDR(1,14872294,1,1,2) [2025-04-09 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872294', 'tblTempUsageDetail_20' ) start [2025-04-09 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872294', 'tblTempUsageDetail_20' ) end [2025-04-09 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:29:21] Production.INFO: ==13763== Releasing lock... [2025-04-09 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:29:21] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:30:06 [end_date_ymd] => 2025-04-09 21:30:06 [RateCDR] => 1 ) [2025-04-09 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:30:06' and `end` < '2025-04-09 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:30:19] Production.INFO: count ==1106 [2025-04-09 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:30:06 - End Time 2025-04-09 21:30:06 [2025-04-09 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872300', 'tblTempUsageDetail_20' ) start [2025-04-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872300', 'tblTempUsageDetail_20' ) end [2025-04-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872300', 'tblTempVendorCDR_20' ) start [2025-04-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872300', 'tblTempVendorCDR_20' ) end [2025-04-09 21:30:19] Production.INFO: ProcessCDR(1,14872300,1,1,2) [2025-04-09 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872300', 'tblTempUsageDetail_20' ) start [2025-04-09 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872300', 'tblTempUsageDetail_20' ) end [2025-04-09 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:30:24] Production.INFO: ==13850== Releasing lock... [2025-04-09 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:30:24] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:31:05 [end_date_ymd] => 2025-04-09 21:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:31:05' and `end` < '2025-04-09 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-09 21:31:18] Production.INFO: count ==1088 [2025-04-09 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:31:05 - End Time 2025-04-09 21:31:05 [2025-04-09 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872305', 'tblTempUsageDetail_20' ) start [2025-04-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872305', 'tblTempUsageDetail_20' ) end [2025-04-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872305', 'tblTempVendorCDR_20' ) start [2025-04-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872305', 'tblTempVendorCDR_20' ) end [2025-04-09 21:31:18] Production.INFO: ProcessCDR(1,14872305,1,1,2) [2025-04-09 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872305', 'tblTempUsageDetail_20' ) start [2025-04-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872305', 'tblTempUsageDetail_20' ) end [2025-04-09 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:31:21] Production.INFO: ==13925== Releasing lock... [2025-04-09 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:32:05 [end_date_ymd] => 2025-04-09 21:32:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:32:05' and `end` < '2025-04-09 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-09 21:32:18] Production.INFO: count ==1091 [2025-04-09 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:32:05 - End Time 2025-04-09 21:32:05 [2025-04-09 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872310', 'tblTempUsageDetail_20' ) start [2025-04-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872310', 'tblTempUsageDetail_20' ) end [2025-04-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872310', 'tblTempVendorCDR_20' ) start [2025-04-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872310', 'tblTempVendorCDR_20' ) end [2025-04-09 21:32:18] Production.INFO: ProcessCDR(1,14872310,1,1,2) [2025-04-09 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872310', 'tblTempUsageDetail_20' ) start [2025-04-09 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872310', 'tblTempUsageDetail_20' ) end [2025-04-09 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:32:22] Production.INFO: ==13999== Releasing lock... [2025-04-09 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:33:05 [end_date_ymd] => 2025-04-09 21:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:33:05' and `end` < '2025-04-09 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-09 21:33:18] Production.INFO: count ==1091 [2025-04-09 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:33:05 - End Time 2025-04-09 21:33:05 [2025-04-09 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872315', 'tblTempUsageDetail_20' ) start [2025-04-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872315', 'tblTempUsageDetail_20' ) end [2025-04-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872315', 'tblTempVendorCDR_20' ) start [2025-04-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872315', 'tblTempVendorCDR_20' ) end [2025-04-09 21:33:18] Production.INFO: ProcessCDR(1,14872315,1,1,2) [2025-04-09 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872315', 'tblTempUsageDetail_20' ) start [2025-04-09 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872315', 'tblTempUsageDetail_20' ) end [2025-04-09 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:33:21] Production.INFO: ==14083== Releasing lock... [2025-04-09 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:33:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:34:05 [end_date_ymd] => 2025-04-09 21:34:05 [RateCDR] => 1 ) [2025-04-09 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:34:05' and `end` < '2025-04-09 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:34:18] Production.INFO: count ==1091 [2025-04-09 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:34:05 - End Time 2025-04-09 21:34:05 [2025-04-09 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872320', 'tblTempUsageDetail_20' ) start [2025-04-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872320', 'tblTempUsageDetail_20' ) end [2025-04-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872320', 'tblTempVendorCDR_20' ) start [2025-04-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872320', 'tblTempVendorCDR_20' ) end [2025-04-09 21:34:18] Production.INFO: ProcessCDR(1,14872320,1,1,2) [2025-04-09 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872320', 'tblTempUsageDetail_20' ) start [2025-04-09 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872320', 'tblTempUsageDetail_20' ) end [2025-04-09 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:34:22] Production.INFO: ==14159== Releasing lock... [2025-04-09 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:35:05 [end_date_ymd] => 2025-04-09 21:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:35:05' and `end` < '2025-04-09 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-09 21:35:18] Production.INFO: count ==1091 [2025-04-09 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:35:05 - End Time 2025-04-09 21:35:05 [2025-04-09 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872325', 'tblTempUsageDetail_20' ) start [2025-04-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872325', 'tblTempUsageDetail_20' ) end [2025-04-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872325', 'tblTempVendorCDR_20' ) start [2025-04-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872325', 'tblTempVendorCDR_20' ) end [2025-04-09 21:35:18] Production.INFO: ProcessCDR(1,14872325,1,1,2) [2025-04-09 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872325', 'tblTempUsageDetail_20' ) start [2025-04-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872325', 'tblTempUsageDetail_20' ) end [2025-04-09 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:35:21] Production.INFO: ==14233== Releasing lock... [2025-04-09 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:36:05 [end_date_ymd] => 2025-04-09 21:36:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:36:05' and `end` < '2025-04-09 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-09 21:36:18] Production.INFO: count ==1085 [2025-04-09 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:36:05 - End Time 2025-04-09 21:36:05 [2025-04-09 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872330', 'tblTempUsageDetail_20' ) start [2025-04-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872330', 'tblTempUsageDetail_20' ) end [2025-04-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872330', 'tblTempVendorCDR_20' ) start [2025-04-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872330', 'tblTempVendorCDR_20' ) end [2025-04-09 21:36:18] Production.INFO: ProcessCDR(1,14872330,1,1,2) [2025-04-09 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872330', 'tblTempUsageDetail_20' ) start [2025-04-09 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872330', 'tblTempUsageDetail_20' ) end [2025-04-09 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:36:22] Production.INFO: ==14347== Releasing lock... [2025-04-09 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:36:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:37:05 [end_date_ymd] => 2025-04-09 21:37:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:37:05' and `end` < '2025-04-09 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-09 21:37:18] Production.INFO: count ==1083 [2025-04-09 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:37:05 - End Time 2025-04-09 21:37:05 [2025-04-09 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872335', 'tblTempUsageDetail_20' ) start [2025-04-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872335', 'tblTempUsageDetail_20' ) end [2025-04-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872335', 'tblTempVendorCDR_20' ) start [2025-04-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872335', 'tblTempVendorCDR_20' ) end [2025-04-09 21:37:18] Production.INFO: ProcessCDR(1,14872335,1,1,2) [2025-04-09 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872335', 'tblTempUsageDetail_20' ) start [2025-04-09 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872335', 'tblTempUsageDetail_20' ) end [2025-04-09 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:37:22] Production.INFO: ==14421== Releasing lock... [2025-04-09 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:37:22] Production.INFO: 36 MB #Memory Used# [2025-04-09 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:38:05 [end_date_ymd] => 2025-04-09 21:38:05 [RateCDR] => 1 ) [2025-04-09 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:38:05' and `end` < '2025-04-09 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:38:18] Production.INFO: count ==1081 [2025-04-09 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:38:05 - End Time 2025-04-09 21:38:05 [2025-04-09 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872340', 'tblTempUsageDetail_20' ) start [2025-04-09 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872340', 'tblTempUsageDetail_20' ) end [2025-04-09 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872340', 'tblTempVendorCDR_20' ) start [2025-04-09 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872340', 'tblTempVendorCDR_20' ) end [2025-04-09 21:38:18] Production.INFO: ProcessCDR(1,14872340,1,1,2) [2025-04-09 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872340', 'tblTempUsageDetail_20' ) start [2025-04-09 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872340', 'tblTempUsageDetail_20' ) end [2025-04-09 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:38:21] Production.INFO: ==14494== Releasing lock... [2025-04-09 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:38:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:39:05 [end_date_ymd] => 2025-04-09 21:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:39:05' and `end` < '2025-04-09 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-09 21:39:18] Production.INFO: count ==1077 [2025-04-09 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:39:05 - End Time 2025-04-09 21:39:05 [2025-04-09 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872345', 'tblTempUsageDetail_20' ) start [2025-04-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872345', 'tblTempUsageDetail_20' ) end [2025-04-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872345', 'tblTempVendorCDR_20' ) start [2025-04-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872345', 'tblTempVendorCDR_20' ) end [2025-04-09 21:39:19] Production.INFO: ProcessCDR(1,14872345,1,1,2) [2025-04-09 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872345', 'tblTempUsageDetail_20' ) start [2025-04-09 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872345', 'tblTempUsageDetail_20' ) end [2025-04-09 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:39:22] Production.INFO: ==14567== Releasing lock... [2025-04-09 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:39:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-09 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:40:06 [end_date_ymd] => 2025-04-09 21:40:06 [RateCDR] => 1 ) [2025-04-09 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:40:06' and `end` < '2025-04-09 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:40:19] Production.INFO: count ==1071 [2025-04-09 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:40:06 - End Time 2025-04-09 21:40:06 [2025-04-09 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872350', 'tblTempUsageDetail_20' ) start [2025-04-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872350', 'tblTempUsageDetail_20' ) end [2025-04-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872350', 'tblTempVendorCDR_20' ) start [2025-04-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872350', 'tblTempVendorCDR_20' ) end [2025-04-09 21:40:19] Production.INFO: ProcessCDR(1,14872350,1,1,2) [2025-04-09 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872350', 'tblTempUsageDetail_20' ) start [2025-04-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872350', 'tblTempUsageDetail_20' ) end [2025-04-09 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:40:22] Production.INFO: ==14649== Releasing lock... [2025-04-09 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-09 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:41:05 [end_date_ymd] => 2025-04-09 21:41:05 [RateCDR] => 1 ) [2025-04-09 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:41:05' and `end` < '2025-04-09 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:41:18] Production.INFO: count ==1022 [2025-04-09 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:41:05 - End Time 2025-04-09 21:41:05 [2025-04-09 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872356', 'tblTempUsageDetail_20' ) start [2025-04-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872356', 'tblTempUsageDetail_20' ) end [2025-04-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872356', 'tblTempVendorCDR_20' ) start [2025-04-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872356', 'tblTempVendorCDR_20' ) end [2025-04-09 21:41:18] Production.INFO: ProcessCDR(1,14872356,1,1,2) [2025-04-09 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872356', 'tblTempUsageDetail_20' ) start [2025-04-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872356', 'tblTempUsageDetail_20' ) end [2025-04-09 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:41:22] Production.INFO: ==14726== Releasing lock... [2025-04-09 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:41:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:42:05 [end_date_ymd] => 2025-04-09 21:42:05 [RateCDR] => 1 ) [2025-04-09 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:42:05' and `end` < '2025-04-09 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:42:18] Production.INFO: count ==1021 [2025-04-09 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:42:05 - End Time 2025-04-09 21:42:05 [2025-04-09 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872361', 'tblTempUsageDetail_20' ) start [2025-04-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872361', 'tblTempUsageDetail_20' ) end [2025-04-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872361', 'tblTempVendorCDR_20' ) start [2025-04-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872361', 'tblTempVendorCDR_20' ) end [2025-04-09 21:42:18] Production.INFO: ProcessCDR(1,14872361,1,1,2) [2025-04-09 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872361', 'tblTempUsageDetail_20' ) start [2025-04-09 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872361', 'tblTempUsageDetail_20' ) end [2025-04-09 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:42:23] Production.INFO: ==14802== Releasing lock... [2025-04-09 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:42:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:43:05 [end_date_ymd] => 2025-04-09 21:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:43:05' and `end` < '2025-04-09 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-09 21:43:18] Production.INFO: count ==1017 [2025-04-09 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:43:05 - End Time 2025-04-09 21:43:05 [2025-04-09 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872366', 'tblTempUsageDetail_20' ) start [2025-04-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872366', 'tblTempUsageDetail_20' ) end [2025-04-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872366', 'tblTempVendorCDR_20' ) start [2025-04-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872366', 'tblTempVendorCDR_20' ) end [2025-04-09 21:43:18] Production.INFO: ProcessCDR(1,14872366,1,1,2) [2025-04-09 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872366', 'tblTempUsageDetail_20' ) start [2025-04-09 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872366', 'tblTempUsageDetail_20' ) end [2025-04-09 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:43:23] Production.INFO: ==14876== Releasing lock... [2025-04-09 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:43:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:44:05 [end_date_ymd] => 2025-04-09 21:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:44:05' and `end` < '2025-04-09 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-09 21:44:18] Production.INFO: count ==1016 [2025-04-09 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:44:05 - End Time 2025-04-09 21:44:05 [2025-04-09 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872371', 'tblTempUsageDetail_20' ) start [2025-04-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872371', 'tblTempUsageDetail_20' ) end [2025-04-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872371', 'tblTempVendorCDR_20' ) start [2025-04-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872371', 'tblTempVendorCDR_20' ) end [2025-04-09 21:44:18] Production.INFO: ProcessCDR(1,14872371,1,1,2) [2025-04-09 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872371', 'tblTempUsageDetail_20' ) start [2025-04-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872371', 'tblTempUsageDetail_20' ) end [2025-04-09 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:44:21] Production.INFO: ==14955== Releasing lock... [2025-04-09 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:44:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:45:05 [end_date_ymd] => 2025-04-09 21:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:45:05' and `end` < '2025-04-09 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-09 21:45:18] Production.INFO: count ==1014 [2025-04-09 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:45:05 - End Time 2025-04-09 21:45:05 [2025-04-09 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872376', 'tblTempUsageDetail_20' ) start [2025-04-09 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872376', 'tblTempUsageDetail_20' ) end [2025-04-09 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872376', 'tblTempVendorCDR_20' ) start [2025-04-09 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872376', 'tblTempVendorCDR_20' ) end [2025-04-09 21:45:19] Production.INFO: ProcessCDR(1,14872376,1,1,2) [2025-04-09 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872376', 'tblTempUsageDetail_20' ) start [2025-04-09 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872376', 'tblTempUsageDetail_20' ) end [2025-04-09 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:45:22] Production.INFO: ==15030== Releasing lock... [2025-04-09 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:45:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:46:05 [end_date_ymd] => 2025-04-09 21:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:46:05' and `end` < '2025-04-09 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-09 21:46:18] Production.INFO: count ==1006 [2025-04-09 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:46:05 - End Time 2025-04-09 21:46:05 [2025-04-09 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872381', 'tblTempUsageDetail_20' ) start [2025-04-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872381', 'tblTempUsageDetail_20' ) end [2025-04-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872381', 'tblTempVendorCDR_20' ) start [2025-04-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872381', 'tblTempVendorCDR_20' ) end [2025-04-09 21:46:18] Production.INFO: ProcessCDR(1,14872381,1,1,2) [2025-04-09 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872381', 'tblTempUsageDetail_20' ) start [2025-04-09 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872381', 'tblTempUsageDetail_20' ) end [2025-04-09 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:46:22] Production.INFO: ==15116== Releasing lock... [2025-04-09 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:46:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:47:05 [end_date_ymd] => 2025-04-09 21:47:05 [RateCDR] => 1 ) [2025-04-09 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:47:05' and `end` < '2025-04-09 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:47:18] Production.INFO: count ==1002 [2025-04-09 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:47:05 - End Time 2025-04-09 21:47:05 [2025-04-09 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872386', 'tblTempUsageDetail_20' ) start [2025-04-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872386', 'tblTempUsageDetail_20' ) end [2025-04-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872386', 'tblTempVendorCDR_20' ) start [2025-04-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872386', 'tblTempVendorCDR_20' ) end [2025-04-09 21:47:18] Production.INFO: ProcessCDR(1,14872386,1,1,2) [2025-04-09 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872386', 'tblTempUsageDetail_20' ) start [2025-04-09 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872386', 'tblTempUsageDetail_20' ) end [2025-04-09 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:47:21] Production.INFO: ==15199== Releasing lock... [2025-04-09 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:47:21] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:48:04 [end_date_ymd] => 2025-04-09 21:48:04 [RateCDR] => 1 ) [2025-04-09 21:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:48:04' and `end` < '2025-04-09 21:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:48:17] Production.INFO: count ==1001 [2025-04-09 21:48:17] Production.ERROR: pbx CDR StartTime 2025-04-09 18:48:04 - End Time 2025-04-09 21:48:04 [2025-04-09 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872391', 'tblTempUsageDetail_20' ) start [2025-04-09 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872391', 'tblTempUsageDetail_20' ) end [2025-04-09 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872391', 'tblTempVendorCDR_20' ) start [2025-04-09 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872391', 'tblTempVendorCDR_20' ) end [2025-04-09 21:48:17] Production.INFO: ProcessCDR(1,14872391,1,1,2) [2025-04-09 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872391', 'tblTempUsageDetail_20' ) start [2025-04-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872391', 'tblTempUsageDetail_20' ) end [2025-04-09 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:48:21] Production.INFO: ==15274== Releasing lock... [2025-04-09 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:48:21] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:49:05 [end_date_ymd] => 2025-04-09 21:49:05 [RateCDR] => 1 ) [2025-04-09 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:49:05' and `end` < '2025-04-09 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:49:18] Production.INFO: count ==999 [2025-04-09 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:49:05 - End Time 2025-04-09 21:49:05 [2025-04-09 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872396', 'tblTempUsageDetail_20' ) start [2025-04-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872396', 'tblTempUsageDetail_20' ) end [2025-04-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872396', 'tblTempVendorCDR_20' ) start [2025-04-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872396', 'tblTempVendorCDR_20' ) end [2025-04-09 21:49:18] Production.INFO: ProcessCDR(1,14872396,1,1,2) [2025-04-09 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872396', 'tblTempUsageDetail_20' ) start [2025-04-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872396', 'tblTempUsageDetail_20' ) end [2025-04-09 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:49:21] Production.INFO: ==15351== Releasing lock... [2025-04-09 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:49:21] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:50:06 [end_date_ymd] => 2025-04-09 21:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 18:50:06' and `end` < '2025-04-09 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-09 21:50:19] Production.INFO: count ==1008 [2025-04-09 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:50:06 - End Time 2025-04-09 21:50:06 [2025-04-09 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872402', 'tblTempUsageDetail_20' ) start [2025-04-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872402', 'tblTempUsageDetail_20' ) end [2025-04-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872402', 'tblTempVendorCDR_20' ) start [2025-04-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872402', 'tblTempVendorCDR_20' ) end [2025-04-09 21:50:19] Production.INFO: ProcessCDR(1,14872402,1,1,2) [2025-04-09 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872402', 'tblTempUsageDetail_20' ) start [2025-04-09 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872402', 'tblTempUsageDetail_20' ) end [2025-04-09 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:50:24] Production.INFO: ==15430== Releasing lock... [2025-04-09 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:50:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:51:05 [end_date_ymd] => 2025-04-09 21:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:51:05' and `end` < '2025-04-09 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-09 21:51:18] Production.INFO: count ==979 [2025-04-09 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:51:05 - End Time 2025-04-09 21:51:05 [2025-04-09 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872407', 'tblTempUsageDetail_20' ) start [2025-04-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872407', 'tblTempUsageDetail_20' ) end [2025-04-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872407', 'tblTempVendorCDR_20' ) start [2025-04-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872407', 'tblTempVendorCDR_20' ) end [2025-04-09 21:51:18] Production.INFO: ProcessCDR(1,14872407,1,1,2) [2025-04-09 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872407', 'tblTempUsageDetail_20' ) start [2025-04-09 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872407', 'tblTempUsageDetail_20' ) end [2025-04-09 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:51:23] Production.INFO: ==15510== Releasing lock... [2025-04-09 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:51:23] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:52:06 [end_date_ymd] => 2025-04-09 21:52:06 [RateCDR] => 1 ) [2025-04-09 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-09 18:52:06' and `end` < '2025-04-09 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-09 21:52:19] Production.INFO: count ==986 [2025-04-09 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:52:06 - End Time 2025-04-09 21:52:06 [2025-04-09 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872412', 'tblTempUsageDetail_20' ) start [2025-04-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872412', 'tblTempUsageDetail_20' ) end [2025-04-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872412', 'tblTempVendorCDR_20' ) start [2025-04-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872412', 'tblTempVendorCDR_20' ) end [2025-04-09 21:52:19] Production.INFO: ProcessCDR(1,14872412,1,1,2) [2025-04-09 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872412', 'tblTempUsageDetail_20' ) start [2025-04-09 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872412', 'tblTempUsageDetail_20' ) end [2025-04-09 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:52:24] Production.INFO: ==15626== Releasing lock... [2025-04-09 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:52:24] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:53:05 [end_date_ymd] => 2025-04-09 21:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:53:05' and `end` < '2025-04-09 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-09 21:53:18] Production.INFO: count ==984 [2025-04-09 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:53:05 - End Time 2025-04-09 21:53:05 [2025-04-09 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872417', 'tblTempUsageDetail_20' ) start [2025-04-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872417', 'tblTempUsageDetail_20' ) end [2025-04-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872417', 'tblTempVendorCDR_20' ) start [2025-04-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872417', 'tblTempVendorCDR_20' ) end [2025-04-09 21:53:18] Production.INFO: ProcessCDR(1,14872417,1,1,2) [2025-04-09 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872417', 'tblTempUsageDetail_20' ) start [2025-04-09 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872417', 'tblTempUsageDetail_20' ) end [2025-04-09 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:53:21] Production.INFO: ==15726== Releasing lock... [2025-04-09 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:53:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-09 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:54:06 [end_date_ymd] => 2025-04-09 21:54:06 [RateCDR] => 1 ) [2025-04-09 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-09 18:54:06' and `end` < '2025-04-09 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-09 21:54:19] Production.INFO: count ==974 [2025-04-09 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:54:06 - End Time 2025-04-09 21:54:06 [2025-04-09 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872422', 'tblTempUsageDetail_20' ) start [2025-04-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872422', 'tblTempUsageDetail_20' ) end [2025-04-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872422', 'tblTempVendorCDR_20' ) start [2025-04-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872422', 'tblTempVendorCDR_20' ) end [2025-04-09 21:54:19] Production.INFO: ProcessCDR(1,14872422,1,1,2) [2025-04-09 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872422', 'tblTempUsageDetail_20' ) start [2025-04-09 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872422', 'tblTempUsageDetail_20' ) end [2025-04-09 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:54:22] Production.INFO: ==15800== Releasing lock... [2025-04-09 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:54:22] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:55:05 [end_date_ymd] => 2025-04-09 21:55:05 [RateCDR] => 1 ) [2025-04-09 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:55:05' and `end` < '2025-04-09 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:55:18] Production.INFO: count ==967 [2025-04-09 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:55:05 - End Time 2025-04-09 21:55:05 [2025-04-09 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872427', 'tblTempUsageDetail_20' ) start [2025-04-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872427', 'tblTempUsageDetail_20' ) end [2025-04-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872427', 'tblTempVendorCDR_20' ) start [2025-04-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872427', 'tblTempVendorCDR_20' ) end [2025-04-09 21:55:18] Production.INFO: ProcessCDR(1,14872427,1,1,2) [2025-04-09 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872427', 'tblTempUsageDetail_20' ) start [2025-04-09 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872427', 'tblTempUsageDetail_20' ) end [2025-04-09 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:55:22] Production.INFO: ==15872== Releasing lock... [2025-04-09 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-09 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:56:06 [end_date_ymd] => 2025-04-09 21:56:06 [RateCDR] => 1 ) [2025-04-09 21: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 18:56:06' and `end` < '2025-04-09 21: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-09 21:56:18] Production.INFO: count ==961 [2025-04-09 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:56:06 - End Time 2025-04-09 21:56:06 [2025-04-09 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872432', 'tblTempUsageDetail_20' ) start [2025-04-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872432', 'tblTempUsageDetail_20' ) end [2025-04-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872432', 'tblTempVendorCDR_20' ) start [2025-04-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872432', 'tblTempVendorCDR_20' ) end [2025-04-09 21:56:19] Production.INFO: ProcessCDR(1,14872432,1,1,2) [2025-04-09 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872432', 'tblTempUsageDetail_20' ) start [2025-04-09 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872432', 'tblTempUsageDetail_20' ) end [2025-04-09 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:56:22] Production.INFO: ==15954== Releasing lock... [2025-04-09 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:56:22] Production.INFO: 35 MB #Memory Used# [2025-04-09 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:57:05 [end_date_ymd] => 2025-04-09 21:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:57:05' and `end` < '2025-04-09 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-09 21:57:18] Production.INFO: count ==954 [2025-04-09 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:57:05 - End Time 2025-04-09 21:57:05 [2025-04-09 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872437', 'tblTempUsageDetail_20' ) start [2025-04-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872437', 'tblTempUsageDetail_20' ) end [2025-04-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872437', 'tblTempVendorCDR_20' ) start [2025-04-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872437', 'tblTempVendorCDR_20' ) end [2025-04-09 21:57:18] Production.INFO: ProcessCDR(1,14872437,1,1,2) [2025-04-09 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872437', 'tblTempUsageDetail_20' ) start [2025-04-09 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872437', 'tblTempUsageDetail_20' ) end [2025-04-09 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:57:22] Production.INFO: ==16027== Releasing lock... [2025-04-09 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-09 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:58:06 [end_date_ymd] => 2025-04-09 21:58:06 [RateCDR] => 1 ) [2025-04-09 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 18:58:06' and `end` < '2025-04-09 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 21:58:19] Production.INFO: count ==952 [2025-04-09 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 18:58:06 - End Time 2025-04-09 21:58:06 [2025-04-09 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872442', 'tblTempUsageDetail_20' ) start [2025-04-09 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872442', 'tblTempUsageDetail_20' ) end [2025-04-09 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872442', 'tblTempVendorCDR_20' ) start [2025-04-09 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872442', 'tblTempVendorCDR_20' ) end [2025-04-09 21:58:19] Production.INFO: ProcessCDR(1,14872442,1,1,2) [2025-04-09 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872442', 'tblTempUsageDetail_20' ) start [2025-04-09 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872442', 'tblTempUsageDetail_20' ) end [2025-04-09 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:58:24] Production.INFO: ==16107== Releasing lock... [2025-04-09 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:58:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-09 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 18:59:05 [end_date_ymd] => 2025-04-09 21:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 18:59:05' and `end` < '2025-04-09 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-09 21:59:18] Production.INFO: count ==951 [2025-04-09 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 18:59:05 - End Time 2025-04-09 21:59:05 [2025-04-09 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872447', 'tblTempUsageDetail_20' ) start [2025-04-09 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872447', 'tblTempUsageDetail_20' ) end [2025-04-09 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872447', 'tblTempVendorCDR_20' ) start [2025-04-09 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872447', 'tblTempVendorCDR_20' ) end [2025-04-09 21:59:18] Production.INFO: ProcessCDR(1,14872447,1,1,2) [2025-04-09 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872447', 'tblTempUsageDetail_20' ) start [2025-04-09 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872447', 'tblTempUsageDetail_20' ) end [2025-04-09 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 21:59:22] Production.INFO: ==16182== Releasing lock... [2025-04-09 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 21:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-09 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:00:05 [end_date_ymd] => 2025-04-09 22:00:05 [RateCDR] => 1 ) [2025-04-09 22: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 19:00:05' and `end` < '2025-04-09 22: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-09 22:00:18] Production.INFO: count ==947 [2025-04-09 22:00:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:00:05 - End Time 2025-04-09 22:00:05 [2025-04-09 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872453', 'tblTempUsageDetail_20' ) start [2025-04-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872453', 'tblTempUsageDetail_20' ) end [2025-04-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872453', 'tblTempVendorCDR_20' ) start [2025-04-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872453', 'tblTempVendorCDR_20' ) end [2025-04-09 22:00:18] Production.INFO: ProcessCDR(1,14872453,1,1,2) [2025-04-09 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872453', 'tblTempUsageDetail_20' ) start [2025-04-09 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872453', 'tblTempUsageDetail_20' ) end [2025-04-09 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:00:22] Production.INFO: ==16258== Releasing lock... [2025-04-09 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-09 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:01:05 [end_date_ymd] => 2025-04-09 22:01:05 [RateCDR] => 1 ) [2025-04-09 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:01:05' and `end` < '2025-04-09 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:01:18] Production.INFO: count ==913 [2025-04-09 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:01:05 - End Time 2025-04-09 22:01:05 [2025-04-09 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872458', 'tblTempUsageDetail_20' ) start [2025-04-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872458', 'tblTempUsageDetail_20' ) end [2025-04-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872458', 'tblTempVendorCDR_20' ) start [2025-04-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872458', 'tblTempVendorCDR_20' ) end [2025-04-09 22:01:18] Production.INFO: ProcessCDR(1,14872458,1,1,2) [2025-04-09 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872458', 'tblTempUsageDetail_20' ) start [2025-04-09 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872458', 'tblTempUsageDetail_20' ) end [2025-04-09 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:01:22] Production.INFO: ==16350== Releasing lock... [2025-04-09 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:01:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:02:06 [end_date_ymd] => 2025-04-09 22:02:06 [RateCDR] => 1 ) [2025-04-09 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:02:06' and `end` < '2025-04-09 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:02:19] Production.INFO: count ==912 [2025-04-09 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:02:06 - End Time 2025-04-09 22:02:06 [2025-04-09 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872463', 'tblTempUsageDetail_20' ) start [2025-04-09 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872463', 'tblTempUsageDetail_20' ) end [2025-04-09 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872463', 'tblTempVendorCDR_20' ) start [2025-04-09 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872463', 'tblTempVendorCDR_20' ) end [2025-04-09 22:02:19] Production.INFO: ProcessCDR(1,14872463,1,1,2) [2025-04-09 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872463', 'tblTempUsageDetail_20' ) start [2025-04-09 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872463', 'tblTempUsageDetail_20' ) end [2025-04-09 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:02:22] Production.INFO: ==16421== Releasing lock... [2025-04-09 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:02:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:03:05 [end_date_ymd] => 2025-04-09 22:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:03:05' and `end` < '2025-04-09 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-09 22:03:18] Production.INFO: count ==908 [2025-04-09 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:03:05 - End Time 2025-04-09 22:03:05 [2025-04-09 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872468', 'tblTempUsageDetail_20' ) start [2025-04-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872468', 'tblTempUsageDetail_20' ) end [2025-04-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872468', 'tblTempVendorCDR_20' ) start [2025-04-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872468', 'tblTempVendorCDR_20' ) end [2025-04-09 22:03:18] Production.INFO: ProcessCDR(1,14872468,1,1,2) [2025-04-09 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872468', 'tblTempUsageDetail_20' ) start [2025-04-09 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872468', 'tblTempUsageDetail_20' ) end [2025-04-09 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:03:22] Production.INFO: ==16492== Releasing lock... [2025-04-09 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-09 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:04:06 [end_date_ymd] => 2025-04-09 22:04:06 [RateCDR] => 1 ) [2025-04-09 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:04:06' and `end` < '2025-04-09 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:04:19] Production.INFO: count ==906 [2025-04-09 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:04:06 - End Time 2025-04-09 22:04:06 [2025-04-09 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872473', 'tblTempUsageDetail_20' ) start [2025-04-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872473', 'tblTempUsageDetail_20' ) end [2025-04-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872473', 'tblTempVendorCDR_20' ) start [2025-04-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872473', 'tblTempVendorCDR_20' ) end [2025-04-09 22:04:19] Production.INFO: ProcessCDR(1,14872473,1,1,2) [2025-04-09 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872473', 'tblTempUsageDetail_20' ) start [2025-04-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872473', 'tblTempUsageDetail_20' ) end [2025-04-09 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:04:22] Production.INFO: ==16564== Releasing lock... [2025-04-09 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-09 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:05:05 [end_date_ymd] => 2025-04-09 22:05:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:05:05' and `end` < '2025-04-09 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-09 22:05:18] Production.INFO: count ==901 [2025-04-09 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:05:05 - End Time 2025-04-09 22:05:05 [2025-04-09 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872478', 'tblTempUsageDetail_20' ) start [2025-04-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872478', 'tblTempUsageDetail_20' ) end [2025-04-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872478', 'tblTempVendorCDR_20' ) start [2025-04-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872478', 'tblTempVendorCDR_20' ) end [2025-04-09 22:05:18] Production.INFO: ProcessCDR(1,14872478,1,1,2) [2025-04-09 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872478', 'tblTempUsageDetail_20' ) start [2025-04-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872478', 'tblTempUsageDetail_20' ) end [2025-04-09 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:05:21] Production.INFO: ==16635== Releasing lock... [2025-04-09 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:05:21] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:06:06 [end_date_ymd] => 2025-04-09 22:06:06 [RateCDR] => 1 ) [2025-04-09 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:06:06' and `end` < '2025-04-09 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:06:19] Production.INFO: count ==899 [2025-04-09 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:06:06 - End Time 2025-04-09 22:06:06 [2025-04-09 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872483', 'tblTempUsageDetail_20' ) start [2025-04-09 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872483', 'tblTempUsageDetail_20' ) end [2025-04-09 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872483', 'tblTempVendorCDR_20' ) start [2025-04-09 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872483', 'tblTempVendorCDR_20' ) end [2025-04-09 22:06:19] Production.INFO: ProcessCDR(1,14872483,1,1,2) [2025-04-09 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872483', 'tblTempUsageDetail_20' ) start [2025-04-09 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872483', 'tblTempUsageDetail_20' ) end [2025-04-09 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:06:22] Production.INFO: ==16711== Releasing lock... [2025-04-09 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:07:05 [end_date_ymd] => 2025-04-09 22:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:07:05' and `end` < '2025-04-09 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-09 22:07:18] Production.INFO: count ==900 [2025-04-09 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:07:05 - End Time 2025-04-09 22:07:05 [2025-04-09 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872488', 'tblTempUsageDetail_20' ) start [2025-04-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872488', 'tblTempUsageDetail_20' ) end [2025-04-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872488', 'tblTempVendorCDR_20' ) start [2025-04-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872488', 'tblTempVendorCDR_20' ) end [2025-04-09 22:07:18] Production.INFO: ProcessCDR(1,14872488,1,1,2) [2025-04-09 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872488', 'tblTempUsageDetail_20' ) start [2025-04-09 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872488', 'tblTempUsageDetail_20' ) end [2025-04-09 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:07:23] Production.INFO: ==16820== Releasing lock... [2025-04-09 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:07:23] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:08:05 [end_date_ymd] => 2025-04-09 22:08:05 [RateCDR] => 1 ) [2025-04-09 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:08:05' and `end` < '2025-04-09 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:08:18] Production.INFO: count ==899 [2025-04-09 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:08:05 - End Time 2025-04-09 22:08:05 [2025-04-09 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872493', 'tblTempUsageDetail_20' ) start [2025-04-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872493', 'tblTempUsageDetail_20' ) end [2025-04-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872493', 'tblTempVendorCDR_20' ) start [2025-04-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872493', 'tblTempVendorCDR_20' ) end [2025-04-09 22:08:18] Production.INFO: ProcessCDR(1,14872493,1,1,2) [2025-04-09 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872493', 'tblTempUsageDetail_20' ) start [2025-04-09 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872493', 'tblTempUsageDetail_20' ) end [2025-04-09 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:08:23] Production.INFO: ==16895== Releasing lock... [2025-04-09 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:08:23] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:09:04 [end_date_ymd] => 2025-04-09 22:09:04 [RateCDR] => 1 ) [2025-04-09 22: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-09 19:09:04' and `end` < '2025-04-09 22: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-09 22:09:17] Production.INFO: count ==900 [2025-04-09 22:09:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:09:04 - End Time 2025-04-09 22:09:04 [2025-04-09 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872498', 'tblTempUsageDetail_20' ) start [2025-04-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872498', 'tblTempUsageDetail_20' ) end [2025-04-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872498', 'tblTempVendorCDR_20' ) start [2025-04-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872498', 'tblTempVendorCDR_20' ) end [2025-04-09 22:09:17] Production.INFO: ProcessCDR(1,14872498,1,1,2) [2025-04-09 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872498', 'tblTempUsageDetail_20' ) start [2025-04-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872498', 'tblTempUsageDetail_20' ) end [2025-04-09 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:09:21] Production.INFO: ==16969== Releasing lock... [2025-04-09 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:09:21] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:10:06 [end_date_ymd] => 2025-04-09 22:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:10:06' and `end` < '2025-04-09 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-09 22:10:19] Production.INFO: count ==899 [2025-04-09 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:10:06 - End Time 2025-04-09 22:10:06 [2025-04-09 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872504', 'tblTempUsageDetail_20' ) start [2025-04-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872504', 'tblTempUsageDetail_20' ) end [2025-04-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872504', 'tblTempVendorCDR_20' ) start [2025-04-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872504', 'tblTempVendorCDR_20' ) end [2025-04-09 22:10:19] Production.INFO: ProcessCDR(1,14872504,1,1,2) [2025-04-09 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872504', 'tblTempUsageDetail_20' ) start [2025-04-09 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872504', 'tblTempUsageDetail_20' ) end [2025-04-09 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:10:23] Production.INFO: ==17044== Releasing lock... [2025-04-09 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:10:23] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:11:05 [end_date_ymd] => 2025-04-09 22:11:05 [RateCDR] => 1 ) [2025-04-09 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:11:05' and `end` < '2025-04-09 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-09 22:11:18] Production.INFO: count ==887 [2025-04-09 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:11:05 - End Time 2025-04-09 22:11:05 [2025-04-09 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872509', 'tblTempUsageDetail_20' ) start [2025-04-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872509', 'tblTempUsageDetail_20' ) end [2025-04-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872509', 'tblTempVendorCDR_20' ) start [2025-04-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872509', 'tblTempVendorCDR_20' ) end [2025-04-09 22:11:18] Production.INFO: ProcessCDR(1,14872509,1,1,2) [2025-04-09 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872509', 'tblTempUsageDetail_20' ) start [2025-04-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872509', 'tblTempUsageDetail_20' ) end [2025-04-09 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:11:22] Production.INFO: ==17121== Releasing lock... [2025-04-09 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:11:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:12:05 [end_date_ymd] => 2025-04-09 22:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:12:05' and `end` < '2025-04-09 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-09 22:12:18] Production.INFO: count ==887 [2025-04-09 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:12:05 - End Time 2025-04-09 22:12:05 [2025-04-09 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872514', 'tblTempUsageDetail_20' ) start [2025-04-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872514', 'tblTempUsageDetail_20' ) end [2025-04-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872514', 'tblTempVendorCDR_20' ) start [2025-04-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872514', 'tblTempVendorCDR_20' ) end [2025-04-09 22:12:18] Production.INFO: ProcessCDR(1,14872514,1,1,2) [2025-04-09 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872514', 'tblTempUsageDetail_20' ) start [2025-04-09 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872514', 'tblTempUsageDetail_20' ) end [2025-04-09 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:12:23] Production.INFO: ==17195== Releasing lock... [2025-04-09 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:12:23] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:13:04 [end_date_ymd] => 2025-04-09 22:13:04 [RateCDR] => 1 ) [2025-04-09 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:13:04' and `end` < '2025-04-09 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:13:17] Production.INFO: count ==889 [2025-04-09 22:13:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:13:04 - End Time 2025-04-09 22:13:04 [2025-04-09 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872519', 'tblTempUsageDetail_20' ) start [2025-04-09 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872519', 'tblTempUsageDetail_20' ) end [2025-04-09 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872519', 'tblTempVendorCDR_20' ) start [2025-04-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872519', 'tblTempVendorCDR_20' ) end [2025-04-09 22:13:18] Production.INFO: ProcessCDR(1,14872519,1,1,2) [2025-04-09 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872519', 'tblTempUsageDetail_20' ) start [2025-04-09 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872519', 'tblTempUsageDetail_20' ) end [2025-04-09 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:13:21] Production.INFO: ==17266== Releasing lock... [2025-04-09 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:13:21] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:14:05 [end_date_ymd] => 2025-04-09 22:14:05 [RateCDR] => 1 ) [2025-04-09 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:14:05' and `end` < '2025-04-09 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:14:18] Production.INFO: count ==888 [2025-04-09 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:14:05 - End Time 2025-04-09 22:14:05 [2025-04-09 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872524', 'tblTempUsageDetail_20' ) start [2025-04-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872524', 'tblTempUsageDetail_20' ) end [2025-04-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872524', 'tblTempVendorCDR_20' ) start [2025-04-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872524', 'tblTempVendorCDR_20' ) end [2025-04-09 22:14:18] Production.INFO: ProcessCDR(1,14872524,1,1,2) [2025-04-09 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872524', 'tblTempUsageDetail_20' ) start [2025-04-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872524', 'tblTempUsageDetail_20' ) end [2025-04-09 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:14:22] Production.INFO: ==17339== Releasing lock... [2025-04-09 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:14:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:15:05 [end_date_ymd] => 2025-04-09 22:15:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:15:05' and `end` < '2025-04-09 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-09 22:15:18] Production.INFO: count ==888 [2025-04-09 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:15:05 - End Time 2025-04-09 22:15:05 [2025-04-09 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872529', 'tblTempUsageDetail_20' ) start [2025-04-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872529', 'tblTempUsageDetail_20' ) end [2025-04-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872529', 'tblTempVendorCDR_20' ) start [2025-04-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872529', 'tblTempVendorCDR_20' ) end [2025-04-09 22:15:18] Production.INFO: ProcessCDR(1,14872529,1,1,2) [2025-04-09 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872529', 'tblTempUsageDetail_20' ) start [2025-04-09 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872529', 'tblTempUsageDetail_20' ) end [2025-04-09 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:15:22] Production.INFO: ==17408== Releasing lock... [2025-04-09 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:16:05 [end_date_ymd] => 2025-04-09 22:16:05 [RateCDR] => 1 ) [2025-04-09 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:16:05' and `end` < '2025-04-09 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:16:18] Production.INFO: count ==888 [2025-04-09 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:16:05 - End Time 2025-04-09 22:16:05 [2025-04-09 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872534', 'tblTempUsageDetail_20' ) start [2025-04-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872534', 'tblTempUsageDetail_20' ) end [2025-04-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872534', 'tblTempVendorCDR_20' ) start [2025-04-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872534', 'tblTempVendorCDR_20' ) end [2025-04-09 22:16:18] Production.INFO: ProcessCDR(1,14872534,1,1,2) [2025-04-09 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872534', 'tblTempUsageDetail_20' ) start [2025-04-09 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872534', 'tblTempUsageDetail_20' ) end [2025-04-09 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:16:22] Production.INFO: ==17483== Releasing lock... [2025-04-09 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:16:22] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:17:04 [end_date_ymd] => 2025-04-09 22:17:04 [RateCDR] => 1 ) [2025-04-09 22: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-09 19:17:04' and `end` < '2025-04-09 22: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-09 22:17:17] Production.INFO: count ==888 [2025-04-09 22:17:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:17:04 - End Time 2025-04-09 22:17:04 [2025-04-09 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872539', 'tblTempUsageDetail_20' ) start [2025-04-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872539', 'tblTempUsageDetail_20' ) end [2025-04-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872539', 'tblTempVendorCDR_20' ) start [2025-04-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872539', 'tblTempVendorCDR_20' ) end [2025-04-09 22:17:17] Production.INFO: ProcessCDR(1,14872539,1,1,2) [2025-04-09 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872539', 'tblTempUsageDetail_20' ) start [2025-04-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872539', 'tblTempUsageDetail_20' ) end [2025-04-09 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:17:21] Production.INFO: ==17556== Releasing lock... [2025-04-09 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:17:21] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:18:05 [end_date_ymd] => 2025-04-09 22:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:18:05' and `end` < '2025-04-09 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-09 22:18:18] Production.INFO: count ==890 [2025-04-09 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:18:05 - End Time 2025-04-09 22:18:05 [2025-04-09 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872544', 'tblTempUsageDetail_20' ) start [2025-04-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872544', 'tblTempUsageDetail_20' ) end [2025-04-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872544', 'tblTempVendorCDR_20' ) start [2025-04-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872544', 'tblTempVendorCDR_20' ) end [2025-04-09 22:18:18] Production.INFO: ProcessCDR(1,14872544,1,1,2) [2025-04-09 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872544', 'tblTempUsageDetail_20' ) start [2025-04-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872544', 'tblTempUsageDetail_20' ) end [2025-04-09 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:18:21] Production.INFO: ==17627== Releasing lock... [2025-04-09 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:18:21] Production.INFO: 34 MB #Memory Used# [2025-04-09 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:19:05 [end_date_ymd] => 2025-04-09 22:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:19:05' and `end` < '2025-04-09 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-09 22:19:18] Production.INFO: count ==889 [2025-04-09 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:19:05 - End Time 2025-04-09 22:19:05 [2025-04-09 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872549', 'tblTempUsageDetail_20' ) start [2025-04-09 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872549', 'tblTempUsageDetail_20' ) end [2025-04-09 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872549', 'tblTempVendorCDR_20' ) start [2025-04-09 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872549', 'tblTempVendorCDR_20' ) end [2025-04-09 22:19:18] Production.INFO: ProcessCDR(1,14872549,1,1,2) [2025-04-09 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872549', 'tblTempUsageDetail_20' ) start [2025-04-09 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872549', 'tblTempUsageDetail_20' ) end [2025-04-09 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:19:22] Production.INFO: ==17702== Releasing lock... [2025-04-09 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-09 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:20:06 [end_date_ymd] => 2025-04-09 22:20:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:20:06' and `end` < '2025-04-09 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-09 22:20:19] Production.INFO: count ==887 [2025-04-09 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:20:06 - End Time 2025-04-09 22:20:06 [2025-04-09 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872555', 'tblTempUsageDetail_20' ) start [2025-04-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872555', 'tblTempUsageDetail_20' ) end [2025-04-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872555', 'tblTempVendorCDR_20' ) start [2025-04-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872555', 'tblTempVendorCDR_20' ) end [2025-04-09 22:20:19] Production.INFO: ProcessCDR(1,14872555,1,1,2) [2025-04-09 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872555', 'tblTempUsageDetail_20' ) start [2025-04-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872555', 'tblTempUsageDetail_20' ) end [2025-04-09 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:20:22] Production.INFO: ==17777== Releasing lock... [2025-04-09 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-09 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:21:05 [end_date_ymd] => 2025-04-09 22:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:21:05' and `end` < '2025-04-09 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-09 22:21:18] Production.INFO: count ==849 [2025-04-09 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:21:05 - End Time 2025-04-09 22:21:05 [2025-04-09 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872560', 'tblTempUsageDetail_20' ) start [2025-04-09 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872560', 'tblTempUsageDetail_20' ) end [2025-04-09 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872560', 'tblTempVendorCDR_20' ) start [2025-04-09 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872560', 'tblTempVendorCDR_20' ) end [2025-04-09 22:21:18] Production.INFO: ProcessCDR(1,14872560,1,1,2) [2025-04-09 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872560', 'tblTempUsageDetail_20' ) start [2025-04-09 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872560', 'tblTempUsageDetail_20' ) end [2025-04-09 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:21:21] Production.INFO: ==17850== Releasing lock... [2025-04-09 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:22:05 [end_date_ymd] => 2025-04-09 22:22:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:22:05' and `end` < '2025-04-09 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-09 22:22:18] Production.INFO: count ==848 [2025-04-09 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:22:05 - End Time 2025-04-09 22:22:05 [2025-04-09 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872565', 'tblTempUsageDetail_20' ) start [2025-04-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872565', 'tblTempUsageDetail_20' ) end [2025-04-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872565', 'tblTempVendorCDR_20' ) start [2025-04-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872565', 'tblTempVendorCDR_20' ) end [2025-04-09 22:22:18] Production.INFO: ProcessCDR(1,14872565,1,1,2) [2025-04-09 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872565', 'tblTempUsageDetail_20' ) start [2025-04-09 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872565', 'tblTempUsageDetail_20' ) end [2025-04-09 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:22:22] Production.INFO: ==17923== Releasing lock... [2025-04-09 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:23:06 [end_date_ymd] => 2025-04-09 22:23:06 [RateCDR] => 1 ) [2025-04-09 22: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-09 19:23:06' and `end` < '2025-04-09 22: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-09 22:23:19] Production.INFO: count ==848 [2025-04-09 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:23:06 - End Time 2025-04-09 22:23:06 [2025-04-09 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872570', 'tblTempUsageDetail_20' ) start [2025-04-09 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872570', 'tblTempUsageDetail_20' ) end [2025-04-09 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872570', 'tblTempVendorCDR_20' ) start [2025-04-09 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872570', 'tblTempVendorCDR_20' ) end [2025-04-09 22:23:19] Production.INFO: ProcessCDR(1,14872570,1,1,2) [2025-04-09 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872570', 'tblTempUsageDetail_20' ) start [2025-04-09 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872570', 'tblTempUsageDetail_20' ) end [2025-04-09 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:23:23] Production.INFO: ==18037== Releasing lock... [2025-04-09 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:23:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:24:05 [end_date_ymd] => 2025-04-09 22:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:24:05' and `end` < '2025-04-09 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-09 22:24:18] Production.INFO: count ==848 [2025-04-09 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:24:05 - End Time 2025-04-09 22:24:05 [2025-04-09 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872575', 'tblTempUsageDetail_20' ) start [2025-04-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872575', 'tblTempUsageDetail_20' ) end [2025-04-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872575', 'tblTempVendorCDR_20' ) start [2025-04-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872575', 'tblTempVendorCDR_20' ) end [2025-04-09 22:24:18] Production.INFO: ProcessCDR(1,14872575,1,1,2) [2025-04-09 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872575', 'tblTempUsageDetail_20' ) start [2025-04-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872575', 'tblTempUsageDetail_20' ) end [2025-04-09 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:24:22] Production.INFO: ==18109== Releasing lock... [2025-04-09 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:25:06 [end_date_ymd] => 2025-04-09 22:25:06 [RateCDR] => 1 ) [2025-04-09 22: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 19:25:06' and `end` < '2025-04-09 22: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-09 22:25:19] Production.INFO: count ==849 [2025-04-09 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:25:06 - End Time 2025-04-09 22:25:06 [2025-04-09 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872580', 'tblTempUsageDetail_20' ) start [2025-04-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872580', 'tblTempUsageDetail_20' ) end [2025-04-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872580', 'tblTempVendorCDR_20' ) start [2025-04-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872580', 'tblTempVendorCDR_20' ) end [2025-04-09 22:25:19] Production.INFO: ProcessCDR(1,14872580,1,1,2) [2025-04-09 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872580', 'tblTempUsageDetail_20' ) start [2025-04-09 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872580', 'tblTempUsageDetail_20' ) end [2025-04-09 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:25:24] Production.INFO: ==18190== Releasing lock... [2025-04-09 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-09 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:26:04 [end_date_ymd] => 2025-04-09 22:26:04 [RateCDR] => 1 ) [2025-04-09 22: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 19:26:04' and `end` < '2025-04-09 22: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-09 22:26:17] Production.INFO: count ==848 [2025-04-09 22:26:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:26:04 - End Time 2025-04-09 22:26:04 [2025-04-09 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872581', 'tblTempUsageDetail_20' ) start [2025-04-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872581', 'tblTempUsageDetail_20' ) end [2025-04-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872581', 'tblTempVendorCDR_20' ) start [2025-04-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872581', 'tblTempVendorCDR_20' ) end [2025-04-09 22:26:17] Production.INFO: ProcessCDR(1,14872581,1,1,2) [2025-04-09 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872581', 'tblTempUsageDetail_20' ) start [2025-04-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872581', 'tblTempUsageDetail_20' ) end [2025-04-09 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:26:21] Production.INFO: ==18277== Releasing lock... [2025-04-09 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:27:05 [end_date_ymd] => 2025-04-09 22:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:27:05' and `end` < '2025-04-09 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-09 22:27:18] Production.INFO: count ==843 [2025-04-09 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:27:05 - End Time 2025-04-09 22:27:05 [2025-04-09 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872590', 'tblTempUsageDetail_20' ) start [2025-04-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872590', 'tblTempUsageDetail_20' ) end [2025-04-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872590', 'tblTempVendorCDR_20' ) start [2025-04-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872590', 'tblTempVendorCDR_20' ) end [2025-04-09 22:27:18] Production.INFO: ProcessCDR(1,14872590,1,1,2) [2025-04-09 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872590', 'tblTempUsageDetail_20' ) start [2025-04-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872590', 'tblTempUsageDetail_20' ) end [2025-04-09 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:27:22] Production.INFO: ==18349== Releasing lock... [2025-04-09 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:27:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:28:05 [end_date_ymd] => 2025-04-09 22:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:28:05' and `end` < '2025-04-09 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-09 22:28:18] Production.INFO: count ==841 [2025-04-09 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:28:05 - End Time 2025-04-09 22:28:05 [2025-04-09 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872595', 'tblTempUsageDetail_20' ) start [2025-04-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872595', 'tblTempUsageDetail_20' ) end [2025-04-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872595', 'tblTempVendorCDR_20' ) start [2025-04-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872595', 'tblTempVendorCDR_20' ) end [2025-04-09 22:28:18] Production.INFO: ProcessCDR(1,14872595,1,1,2) [2025-04-09 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872595', 'tblTempUsageDetail_20' ) start [2025-04-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872595', 'tblTempUsageDetail_20' ) end [2025-04-09 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:28:21] Production.INFO: ==18421== Releasing lock... [2025-04-09 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:29:05 [end_date_ymd] => 2025-04-09 22:29:05 [RateCDR] => 1 ) [2025-04-09 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:29:05' and `end` < '2025-04-09 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:29:18] Production.INFO: count ==841 [2025-04-09 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:29:05 - End Time 2025-04-09 22:29:05 [2025-04-09 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872600', 'tblTempUsageDetail_20' ) start [2025-04-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872600', 'tblTempUsageDetail_20' ) end [2025-04-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872600', 'tblTempVendorCDR_20' ) start [2025-04-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872600', 'tblTempVendorCDR_20' ) end [2025-04-09 22:29:18] Production.INFO: ProcessCDR(1,14872600,1,1,2) [2025-04-09 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872600', 'tblTempUsageDetail_20' ) start [2025-04-09 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872600', 'tblTempUsageDetail_20' ) end [2025-04-09 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:29:22] Production.INFO: ==18494== Releasing lock... [2025-04-09 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:30:06 [end_date_ymd] => 2025-04-09 22:30:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:30:06' and `end` < '2025-04-09 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-09 22:30:19] Production.INFO: count ==837 [2025-04-09 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:30:06 - End Time 2025-04-09 22:30:06 [2025-04-09 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872606', 'tblTempUsageDetail_20' ) start [2025-04-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872606', 'tblTempUsageDetail_20' ) end [2025-04-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872606', 'tblTempVendorCDR_20' ) start [2025-04-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872606', 'tblTempVendorCDR_20' ) end [2025-04-09 22:30:19] Production.INFO: ProcessCDR(1,14872606,1,1,2) [2025-04-09 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872606', 'tblTempUsageDetail_20' ) start [2025-04-09 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872606', 'tblTempUsageDetail_20' ) end [2025-04-09 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:30:23] Production.INFO: ==18567== Releasing lock... [2025-04-09 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:30:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:31:05 [end_date_ymd] => 2025-04-09 22:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:31:05' and `end` < '2025-04-09 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-09 22:31:18] Production.INFO: count ==810 [2025-04-09 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:31:05 - End Time 2025-04-09 22:31:05 [2025-04-09 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872611', 'tblTempUsageDetail_20' ) start [2025-04-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872611', 'tblTempUsageDetail_20' ) end [2025-04-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872611', 'tblTempVendorCDR_20' ) start [2025-04-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872611', 'tblTempVendorCDR_20' ) end [2025-04-09 22:31:18] Production.INFO: ProcessCDR(1,14872611,1,1,2) [2025-04-09 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872611', 'tblTempUsageDetail_20' ) start [2025-04-09 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872611', 'tblTempUsageDetail_20' ) end [2025-04-09 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:31:22] Production.INFO: ==18642== Releasing lock... [2025-04-09 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:32:04 [end_date_ymd] => 2025-04-09 22:32:04 [RateCDR] => 1 ) [2025-04-09 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:32:04' and `end` < '2025-04-09 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:32:17] Production.INFO: count ==810 [2025-04-09 22:32:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:32:04 - End Time 2025-04-09 22:32:04 [2025-04-09 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872616', 'tblTempUsageDetail_20' ) start [2025-04-09 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872616', 'tblTempUsageDetail_20' ) end [2025-04-09 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872616', 'tblTempVendorCDR_20' ) start [2025-04-09 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872616', 'tblTempVendorCDR_20' ) end [2025-04-09 22:32:18] Production.INFO: ProcessCDR(1,14872616,1,1,2) [2025-04-09 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872616', 'tblTempUsageDetail_20' ) start [2025-04-09 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872616', 'tblTempUsageDetail_20' ) end [2025-04-09 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:32:21] Production.INFO: ==18729== Releasing lock... [2025-04-09 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:33:05 [end_date_ymd] => 2025-04-09 22:33:05 [RateCDR] => 1 ) [2025-04-09 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:33:05' and `end` < '2025-04-09 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:33:18] Production.INFO: count ==810 [2025-04-09 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:33:05 - End Time 2025-04-09 22:33:05 [2025-04-09 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872621', 'tblTempUsageDetail_20' ) start [2025-04-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872621', 'tblTempUsageDetail_20' ) end [2025-04-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872621', 'tblTempVendorCDR_20' ) start [2025-04-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872621', 'tblTempVendorCDR_20' ) end [2025-04-09 22:33:18] Production.INFO: ProcessCDR(1,14872621,1,1,2) [2025-04-09 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872621', 'tblTempUsageDetail_20' ) start [2025-04-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872621', 'tblTempUsageDetail_20' ) end [2025-04-09 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:33:21] Production.INFO: ==18807== Releasing lock... [2025-04-09 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-09 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:34:05 [end_date_ymd] => 2025-04-09 22:34:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:34:05' and `end` < '2025-04-09 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-09 22:34:18] Production.INFO: count ==808 [2025-04-09 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:34:05 - End Time 2025-04-09 22:34:05 [2025-04-09 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872626', 'tblTempUsageDetail_20' ) start [2025-04-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872626', 'tblTempUsageDetail_20' ) end [2025-04-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872626', 'tblTempVendorCDR_20' ) start [2025-04-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872626', 'tblTempVendorCDR_20' ) end [2025-04-09 22:34:18] Production.INFO: ProcessCDR(1,14872626,1,1,2) [2025-04-09 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872626', 'tblTempUsageDetail_20' ) start [2025-04-09 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872626', 'tblTempUsageDetail_20' ) end [2025-04-09 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:34:22] Production.INFO: ==18881== Releasing lock... [2025-04-09 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:35:05 [end_date_ymd] => 2025-04-09 22:35:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:35:05' and `end` < '2025-04-09 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-09 22:35:18] Production.INFO: count ==808 [2025-04-09 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:35:05 - End Time 2025-04-09 22:35:05 [2025-04-09 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872631', 'tblTempUsageDetail_20' ) start [2025-04-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872631', 'tblTempUsageDetail_20' ) end [2025-04-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872631', 'tblTempVendorCDR_20' ) start [2025-04-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872631', 'tblTempVendorCDR_20' ) end [2025-04-09 22:35:18] Production.INFO: ProcessCDR(1,14872631,1,1,2) [2025-04-09 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872631', 'tblTempUsageDetail_20' ) start [2025-04-09 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872631', 'tblTempUsageDetail_20' ) end [2025-04-09 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:35:22] Production.INFO: ==18954== Releasing lock... [2025-04-09 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:36:06 [end_date_ymd] => 2025-04-09 22:36:06 [RateCDR] => 1 ) [2025-04-09 22: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 19:36:06' and `end` < '2025-04-09 22: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-09 22:36:19] Production.INFO: count ==808 [2025-04-09 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:36:06 - End Time 2025-04-09 22:36:06 [2025-04-09 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872636', 'tblTempUsageDetail_20' ) start [2025-04-09 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872636', 'tblTempUsageDetail_20' ) end [2025-04-09 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872636', 'tblTempVendorCDR_20' ) start [2025-04-09 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872636', 'tblTempVendorCDR_20' ) end [2025-04-09 22:36:19] Production.INFO: ProcessCDR(1,14872636,1,1,2) [2025-04-09 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872636', 'tblTempUsageDetail_20' ) start [2025-04-09 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872636', 'tblTempUsageDetail_20' ) end [2025-04-09 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:36:22] Production.INFO: ==19027== Releasing lock... [2025-04-09 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:37:05 [end_date_ymd] => 2025-04-09 22:37:05 [RateCDR] => 1 ) [2025-04-09 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:37:05' and `end` < '2025-04-09 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:37:18] Production.INFO: count ==808 [2025-04-09 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:37:05 - End Time 2025-04-09 22:37:05 [2025-04-09 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872641', 'tblTempUsageDetail_20' ) start [2025-04-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872641', 'tblTempUsageDetail_20' ) end [2025-04-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872641', 'tblTempVendorCDR_20' ) start [2025-04-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872641', 'tblTempVendorCDR_20' ) end [2025-04-09 22:37:18] Production.INFO: ProcessCDR(1,14872641,1,1,2) [2025-04-09 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872641', 'tblTempUsageDetail_20' ) start [2025-04-09 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872641', 'tblTempUsageDetail_20' ) end [2025-04-09 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:37:22] Production.INFO: ==19098== Releasing lock... [2025-04-09 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:38:05 [end_date_ymd] => 2025-04-09 22:38:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:38:05' and `end` < '2025-04-09 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-09 22:38:18] Production.INFO: count ==806 [2025-04-09 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:38:05 - End Time 2025-04-09 22:38:05 [2025-04-09 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872646', 'tblTempUsageDetail_20' ) start [2025-04-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872646', 'tblTempUsageDetail_20' ) end [2025-04-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872646', 'tblTempVendorCDR_20' ) start [2025-04-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872646', 'tblTempVendorCDR_20' ) end [2025-04-09 22:38:18] Production.INFO: ProcessCDR(1,14872646,1,1,2) [2025-04-09 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872646', 'tblTempUsageDetail_20' ) start [2025-04-09 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872646', 'tblTempUsageDetail_20' ) end [2025-04-09 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:38:22] Production.INFO: ==19216== Releasing lock... [2025-04-09 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:39:05 [end_date_ymd] => 2025-04-09 22:39:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:39:05' and `end` < '2025-04-09 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-09 22:39:18] Production.INFO: count ==804 [2025-04-09 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:39:05 - End Time 2025-04-09 22:39:05 [2025-04-09 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872651', 'tblTempUsageDetail_20' ) start [2025-04-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872651', 'tblTempUsageDetail_20' ) end [2025-04-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872651', 'tblTempVendorCDR_20' ) start [2025-04-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872651', 'tblTempVendorCDR_20' ) end [2025-04-09 22:39:18] Production.INFO: ProcessCDR(1,14872651,1,1,2) [2025-04-09 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872651', 'tblTempUsageDetail_20' ) start [2025-04-09 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872651', 'tblTempUsageDetail_20' ) end [2025-04-09 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:39:23] Production.INFO: ==19305== Releasing lock... [2025-04-09 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:40:06 [end_date_ymd] => 2025-04-09 22:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:40:06' and `end` < '2025-04-09 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-09 22:40:19] Production.INFO: count ==801 [2025-04-09 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:40:06 - End Time 2025-04-09 22:40:06 [2025-04-09 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872656', 'tblTempUsageDetail_20' ) start [2025-04-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872656', 'tblTempUsageDetail_20' ) end [2025-04-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872656', 'tblTempVendorCDR_20' ) start [2025-04-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872656', 'tblTempVendorCDR_20' ) end [2025-04-09 22:40:19] Production.INFO: ProcessCDR(1,14872656,1,1,2) [2025-04-09 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872656', 'tblTempUsageDetail_20' ) start [2025-04-09 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872656', 'tblTempUsageDetail_20' ) end [2025-04-09 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:40:24] Production.INFO: ==19379== Releasing lock... [2025-04-09 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:40:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-09 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:41:05 [end_date_ymd] => 2025-04-09 22:41:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:41:05' and `end` < '2025-04-09 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-09 22:41:18] Production.INFO: count ==753 [2025-04-09 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:41:05 - End Time 2025-04-09 22:41:05 [2025-04-09 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872662', 'tblTempUsageDetail_20' ) start [2025-04-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872662', 'tblTempUsageDetail_20' ) end [2025-04-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872662', 'tblTempVendorCDR_20' ) start [2025-04-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872662', 'tblTempVendorCDR_20' ) end [2025-04-09 22:41:18] Production.INFO: ProcessCDR(1,14872662,1,1,2) [2025-04-09 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872662', 'tblTempUsageDetail_20' ) start [2025-04-09 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872662', 'tblTempUsageDetail_20' ) end [2025-04-09 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:41:23] Production.INFO: ==19452== Releasing lock... [2025-04-09 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:41:23] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:42:05 [end_date_ymd] => 2025-04-09 22:42:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:42:05' and `end` < '2025-04-09 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-09 22:42:18] Production.INFO: count ==752 [2025-04-09 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:42:05 - End Time 2025-04-09 22:42:05 [2025-04-09 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872667', 'tblTempUsageDetail_20' ) start [2025-04-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872667', 'tblTempUsageDetail_20' ) end [2025-04-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872667', 'tblTempVendorCDR_20' ) start [2025-04-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872667', 'tblTempVendorCDR_20' ) end [2025-04-09 22:42:18] Production.INFO: ProcessCDR(1,14872667,1,1,2) [2025-04-09 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872667', 'tblTempUsageDetail_20' ) start [2025-04-09 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872667', 'tblTempUsageDetail_20' ) end [2025-04-09 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:42:22] Production.INFO: ==19523== Releasing lock... [2025-04-09 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-09 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:43:05 [end_date_ymd] => 2025-04-09 22:43:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:43:05' and `end` < '2025-04-09 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-09 22:43:18] Production.INFO: count ==749 [2025-04-09 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:43:05 - End Time 2025-04-09 22:43:05 [2025-04-09 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872672', 'tblTempUsageDetail_20' ) start [2025-04-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872672', 'tblTempUsageDetail_20' ) end [2025-04-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872672', 'tblTempVendorCDR_20' ) start [2025-04-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872672', 'tblTempVendorCDR_20' ) end [2025-04-09 22:43:18] Production.INFO: ProcessCDR(1,14872672,1,1,2) [2025-04-09 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872672', 'tblTempUsageDetail_20' ) start [2025-04-09 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872672', 'tblTempUsageDetail_20' ) end [2025-04-09 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:43:21] Production.INFO: ==19593== Releasing lock... [2025-04-09 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-09 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:44:05 [end_date_ymd] => 2025-04-09 22:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:44:05' and `end` < '2025-04-09 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-09 22:44:18] Production.INFO: count ==749 [2025-04-09 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:44:05 - End Time 2025-04-09 22:44:05 [2025-04-09 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872677', 'tblTempUsageDetail_20' ) start [2025-04-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872677', 'tblTempUsageDetail_20' ) end [2025-04-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872677', 'tblTempVendorCDR_20' ) start [2025-04-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872677', 'tblTempVendorCDR_20' ) end [2025-04-09 22:44:18] Production.INFO: ProcessCDR(1,14872677,1,1,2) [2025-04-09 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872677', 'tblTempUsageDetail_20' ) start [2025-04-09 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872677', 'tblTempUsageDetail_20' ) end [2025-04-09 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:44:22] Production.INFO: ==19665== Releasing lock... [2025-04-09 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-09 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:45:05 [end_date_ymd] => 2025-04-09 22:45:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:45:05' and `end` < '2025-04-09 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-09 22:45:18] Production.INFO: count ==747 [2025-04-09 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:45:05 - End Time 2025-04-09 22:45:05 [2025-04-09 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872682', 'tblTempUsageDetail_20' ) start [2025-04-09 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872682', 'tblTempUsageDetail_20' ) end [2025-04-09 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872682', 'tblTempVendorCDR_20' ) start [2025-04-09 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872682', 'tblTempVendorCDR_20' ) end [2025-04-09 22:45:18] Production.INFO: ProcessCDR(1,14872682,1,1,2) [2025-04-09 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872682', 'tblTempUsageDetail_20' ) start [2025-04-09 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872682', 'tblTempUsageDetail_20' ) end [2025-04-09 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:45:22] Production.INFO: ==19743== Releasing lock... [2025-04-09 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-09 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:46:05 [end_date_ymd] => 2025-04-09 22:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:46:05' and `end` < '2025-04-09 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-09 22:46:18] Production.INFO: count ==744 [2025-04-09 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:46:05 - End Time 2025-04-09 22:46:05 [2025-04-09 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872687', 'tblTempUsageDetail_20' ) start [2025-04-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872687', 'tblTempUsageDetail_20' ) end [2025-04-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872687', 'tblTempVendorCDR_20' ) start [2025-04-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872687', 'tblTempVendorCDR_20' ) end [2025-04-09 22:46:18] Production.INFO: ProcessCDR(1,14872687,1,1,2) [2025-04-09 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872687', 'tblTempUsageDetail_20' ) start [2025-04-09 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872687', 'tblTempUsageDetail_20' ) end [2025-04-09 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:46:21] Production.INFO: ==19835== Releasing lock... [2025-04-09 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:46:21] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:47:04 [end_date_ymd] => 2025-04-09 22:47:04 [RateCDR] => 1 ) [2025-04-09 22: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-09 19:47:04' and `end` < '2025-04-09 22: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-09 22:47:17] Production.INFO: count ==739 [2025-04-09 22:47:17] Production.ERROR: pbx CDR StartTime 2025-04-09 19:47:04 - End Time 2025-04-09 22:47:04 [2025-04-09 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872692', 'tblTempUsageDetail_20' ) start [2025-04-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872692', 'tblTempUsageDetail_20' ) end [2025-04-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872692', 'tblTempVendorCDR_20' ) start [2025-04-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872692', 'tblTempVendorCDR_20' ) end [2025-04-09 22:47:17] Production.INFO: ProcessCDR(1,14872692,1,1,2) [2025-04-09 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872692', 'tblTempUsageDetail_20' ) start [2025-04-09 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872692', 'tblTempUsageDetail_20' ) end [2025-04-09 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:47:21] Production.INFO: ==19907== Releasing lock... [2025-04-09 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:47:21] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:48:06 [end_date_ymd] => 2025-04-09 22:48:06 [RateCDR] => 1 ) [2025-04-09 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:48:06' and `end` < '2025-04-09 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:48:19] Production.INFO: count ==737 [2025-04-09 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:48:06 - End Time 2025-04-09 22:48:06 [2025-04-09 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872697', 'tblTempUsageDetail_20' ) start [2025-04-09 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872697', 'tblTempUsageDetail_20' ) end [2025-04-09 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872697', 'tblTempVendorCDR_20' ) start [2025-04-09 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872697', 'tblTempVendorCDR_20' ) end [2025-04-09 22:48:19] Production.INFO: ProcessCDR(1,14872697,1,1,2) [2025-04-09 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872697', 'tblTempUsageDetail_20' ) start [2025-04-09 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872697', 'tblTempUsageDetail_20' ) end [2025-04-09 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:48:22] Production.INFO: ==19981== Releasing lock... [2025-04-09 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:48:22] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:49:05 [end_date_ymd] => 2025-04-09 22:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:49:05' and `end` < '2025-04-09 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-09 22:49:18] Production.INFO: count ==734 [2025-04-09 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:49:05 - End Time 2025-04-09 22:49:05 [2025-04-09 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872702', 'tblTempUsageDetail_20' ) start [2025-04-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872702', 'tblTempUsageDetail_20' ) end [2025-04-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872702', 'tblTempVendorCDR_20' ) start [2025-04-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872702', 'tblTempVendorCDR_20' ) end [2025-04-09 22:49:18] Production.INFO: ProcessCDR(1,14872702,1,1,2) [2025-04-09 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872702', 'tblTempUsageDetail_20' ) start [2025-04-09 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872702', 'tblTempUsageDetail_20' ) end [2025-04-09 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:49:22] Production.INFO: ==20053== Releasing lock... [2025-04-09 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:49:22] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:50:06 [end_date_ymd] => 2025-04-09 22:50:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:50:06' and `end` < '2025-04-09 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-09 22:50:19] Production.INFO: count ==733 [2025-04-09 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 19:50:06 - End Time 2025-04-09 22:50:06 [2025-04-09 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872708', 'tblTempUsageDetail_20' ) start [2025-04-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872708', 'tblTempUsageDetail_20' ) end [2025-04-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872708', 'tblTempVendorCDR_20' ) start [2025-04-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872708', 'tblTempVendorCDR_20' ) end [2025-04-09 22:50:19] Production.INFO: ProcessCDR(1,14872708,1,1,2) [2025-04-09 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872708', 'tblTempUsageDetail_20' ) start [2025-04-09 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872708', 'tblTempUsageDetail_20' ) end [2025-04-09 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:50:23] Production.INFO: ==20125== Releasing lock... [2025-04-09 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:50:23] Production.INFO: 33 MB #Memory Used# [2025-04-09 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:51:04 [end_date_ymd] => 2025-04-09 22:51:04 [RateCDR] => 1 ) [2025-04-09 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:51:04' and `end` < '2025-04-09 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 22:51:18] Production.INFO: count ==689 [2025-04-09 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:51:04 - End Time 2025-04-09 22:51:04 [2025-04-09 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872713', 'tblTempUsageDetail_20' ) start [2025-04-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872713', 'tblTempUsageDetail_20' ) end [2025-04-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872713', 'tblTempVendorCDR_20' ) start [2025-04-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872713', 'tblTempVendorCDR_20' ) end [2025-04-09 22:51:18] Production.INFO: ProcessCDR(1,14872713,1,1,2) [2025-04-09 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872713', 'tblTempUsageDetail_20' ) start [2025-04-09 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872713', 'tblTempUsageDetail_20' ) end [2025-04-09 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:51:21] Production.INFO: ==20200== Releasing lock... [2025-04-09 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:52:05 [end_date_ymd] => 2025-04-09 22:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:52:05' and `end` < '2025-04-09 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-09 22:52:18] Production.INFO: count ==693 [2025-04-09 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:52:05 - End Time 2025-04-09 22:52:05 [2025-04-09 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872718', 'tblTempUsageDetail_20' ) start [2025-04-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872718', 'tblTempUsageDetail_20' ) end [2025-04-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872718', 'tblTempVendorCDR_20' ) start [2025-04-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872718', 'tblTempVendorCDR_20' ) end [2025-04-09 22:52:18] Production.INFO: ProcessCDR(1,14872718,1,1,2) [2025-04-09 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872718', 'tblTempUsageDetail_20' ) start [2025-04-09 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872718', 'tblTempUsageDetail_20' ) end [2025-04-09 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:52:22] Production.INFO: ==20292== Releasing lock... [2025-04-09 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:53:05 [end_date_ymd] => 2025-04-09 22:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:53:05' and `end` < '2025-04-09 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-09 22:53:18] Production.INFO: count ==691 [2025-04-09 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:53:05 - End Time 2025-04-09 22:53:05 [2025-04-09 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872723', 'tblTempUsageDetail_20' ) start [2025-04-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872723', 'tblTempUsageDetail_20' ) end [2025-04-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872723', 'tblTempVendorCDR_20' ) start [2025-04-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872723', 'tblTempVendorCDR_20' ) end [2025-04-09 22:53:18] Production.INFO: ProcessCDR(1,14872723,1,1,2) [2025-04-09 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872723', 'tblTempUsageDetail_20' ) start [2025-04-09 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872723', 'tblTempUsageDetail_20' ) end [2025-04-09 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:53:21] Production.INFO: ==20405== Releasing lock... [2025-04-09 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:54:05 [end_date_ymd] => 2025-04-09 22:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:54:05' and `end` < '2025-04-09 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-09 22:54:18] Production.INFO: count ==685 [2025-04-09 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:54:05 - End Time 2025-04-09 22:54:05 [2025-04-09 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872728', 'tblTempUsageDetail_20' ) start [2025-04-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872728', 'tblTempUsageDetail_20' ) end [2025-04-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872728', 'tblTempVendorCDR_20' ) start [2025-04-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872728', 'tblTempVendorCDR_20' ) end [2025-04-09 22:54:18] Production.INFO: ProcessCDR(1,14872728,1,1,2) [2025-04-09 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872728', 'tblTempUsageDetail_20' ) start [2025-04-09 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872728', 'tblTempUsageDetail_20' ) end [2025-04-09 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:54:22] Production.INFO: ==20476== Releasing lock... [2025-04-09 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:55:05 [end_date_ymd] => 2025-04-09 22:55:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:55:05' and `end` < '2025-04-09 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-09 22:55:18] Production.INFO: count ==685 [2025-04-09 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:55:05 - End Time 2025-04-09 22:55:05 [2025-04-09 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872733', 'tblTempUsageDetail_20' ) start [2025-04-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872733', 'tblTempUsageDetail_20' ) end [2025-04-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872733', 'tblTempVendorCDR_20' ) start [2025-04-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872733', 'tblTempVendorCDR_20' ) end [2025-04-09 22:55:18] Production.INFO: ProcessCDR(1,14872733,1,1,2) [2025-04-09 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872733', 'tblTempUsageDetail_20' ) start [2025-04-09 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872733', 'tblTempUsageDetail_20' ) end [2025-04-09 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:55:21] Production.INFO: ==20546== Releasing lock... [2025-04-09 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:56:06 [end_date_ymd] => 2025-04-09 22:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 19:56:06' and `end` < '2025-04-09 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-09 22:56:18] Production.INFO: count ==683 [2025-04-09 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:56:06 - End Time 2025-04-09 22:56:06 [2025-04-09 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872738', 'tblTempUsageDetail_20' ) start [2025-04-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872738', 'tblTempUsageDetail_20' ) end [2025-04-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872738', 'tblTempVendorCDR_20' ) start [2025-04-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872738', 'tblTempVendorCDR_20' ) end [2025-04-09 22:56:18] Production.INFO: ProcessCDR(1,14872738,1,1,2) [2025-04-09 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872738', 'tblTempUsageDetail_20' ) start [2025-04-09 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872738', 'tblTempUsageDetail_20' ) end [2025-04-09 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:56:22] Production.INFO: ==20616== Releasing lock... [2025-04-09 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:57:05 [end_date_ymd] => 2025-04-09 22:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:57:05' and `end` < '2025-04-09 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-09 22:57:18] Production.INFO: count ==683 [2025-04-09 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:57:05 - End Time 2025-04-09 22:57:05 [2025-04-09 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872743', 'tblTempUsageDetail_20' ) start [2025-04-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872743', 'tblTempUsageDetail_20' ) end [2025-04-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872743', 'tblTempVendorCDR_20' ) start [2025-04-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872743', 'tblTempVendorCDR_20' ) end [2025-04-09 22:57:18] Production.INFO: ProcessCDR(1,14872743,1,1,2) [2025-04-09 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872743', 'tblTempUsageDetail_20' ) start [2025-04-09 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872743', 'tblTempUsageDetail_20' ) end [2025-04-09 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:57:23] Production.INFO: ==20687== Releasing lock... [2025-04-09 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:57:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:58:05 [end_date_ymd] => 2025-04-09 22:58:05 [RateCDR] => 1 ) [2025-04-09 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 19:58:05' and `end` < '2025-04-09 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-09 22:58:18] Production.INFO: count ==681 [2025-04-09 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:58:05 - End Time 2025-04-09 22:58:05 [2025-04-09 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872748', 'tblTempUsageDetail_20' ) start [2025-04-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872748', 'tblTempUsageDetail_20' ) end [2025-04-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872748', 'tblTempVendorCDR_20' ) start [2025-04-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872748', 'tblTempVendorCDR_20' ) end [2025-04-09 22:58:18] Production.INFO: ProcessCDR(1,14872748,1,1,2) [2025-04-09 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872748', 'tblTempUsageDetail_20' ) start [2025-04-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872748', 'tblTempUsageDetail_20' ) end [2025-04-09 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:58:22] Production.INFO: ==20759== Releasing lock... [2025-04-09 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 19:59:05 [end_date_ymd] => 2025-04-09 22:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 19:59:05' and `end` < '2025-04-09 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-09 22:59:18] Production.INFO: count ==674 [2025-04-09 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 19:59:05 - End Time 2025-04-09 22:59:05 [2025-04-09 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872753', 'tblTempUsageDetail_20' ) start [2025-04-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872753', 'tblTempUsageDetail_20' ) end [2025-04-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872753', 'tblTempVendorCDR_20' ) start [2025-04-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872753', 'tblTempVendorCDR_20' ) end [2025-04-09 22:59:18] Production.INFO: ProcessCDR(1,14872753,1,1,2) [2025-04-09 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872753', 'tblTempUsageDetail_20' ) start [2025-04-09 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872753', 'tblTempUsageDetail_20' ) end [2025-04-09 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 22:59:22] Production.INFO: ==20847== Releasing lock... [2025-04-09 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 22:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-09 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:00:06 [end_date_ymd] => 2025-04-09 23:00:06 [RateCDR] => 1 ) [2025-04-09 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:00:06' and `end` < '2025-04-09 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:00:19] Production.INFO: count ==663 [2025-04-09 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:00:06 - End Time 2025-04-09 23:00:06 [2025-04-09 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872758', 'tblTempUsageDetail_20' ) start [2025-04-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872758', 'tblTempUsageDetail_20' ) end [2025-04-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872758', 'tblTempVendorCDR_20' ) start [2025-04-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872758', 'tblTempVendorCDR_20' ) end [2025-04-09 23:00:19] Production.INFO: ProcessCDR(1,14872758,1,1,2) [2025-04-09 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872758', 'tblTempUsageDetail_20' ) start [2025-04-09 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872758', 'tblTempUsageDetail_20' ) end [2025-04-09 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:00:23] Production.INFO: ==20928== Releasing lock... [2025-04-09 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:00:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-09 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:01:05 [end_date_ymd] => 2025-04-09 23:01:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:01:05' and `end` < '2025-04-09 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-09 23:01:18] Production.INFO: count ==605 [2025-04-09 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:01:05 - End Time 2025-04-09 23:01:05 [2025-04-09 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872764', 'tblTempUsageDetail_20' ) start [2025-04-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872764', 'tblTempUsageDetail_20' ) end [2025-04-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872764', 'tblTempVendorCDR_20' ) start [2025-04-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872764', 'tblTempVendorCDR_20' ) end [2025-04-09 23:01:18] Production.INFO: ProcessCDR(1,14872764,1,1,2) [2025-04-09 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872764', 'tblTempUsageDetail_20' ) start [2025-04-09 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872764', 'tblTempUsageDetail_20' ) end [2025-04-09 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:01:22] Production.INFO: ==21095== Releasing lock... [2025-04-09 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:01:22] Production.INFO: 32 MB #Memory Used# [2025-04-09 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:02:06 [end_date_ymd] => 2025-04-09 23:02:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:02:06' and `end` < '2025-04-09 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-09 23:02:19] Production.INFO: count ==605 [2025-04-09 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:02:06 - End Time 2025-04-09 23:02:06 [2025-04-09 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872769', 'tblTempUsageDetail_20' ) start [2025-04-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872769', 'tblTempUsageDetail_20' ) end [2025-04-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872769', 'tblTempVendorCDR_20' ) start [2025-04-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872769', 'tblTempVendorCDR_20' ) end [2025-04-09 23:02:19] Production.INFO: ProcessCDR(1,14872769,1,1,2) [2025-04-09 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872769', 'tblTempUsageDetail_20' ) start [2025-04-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872769', 'tblTempUsageDetail_20' ) end [2025-04-09 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:02:22] Production.INFO: ==21166== Releasing lock... [2025-04-09 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:02:22] Production.INFO: 32 MB #Memory Used# [2025-04-09 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:03:05 [end_date_ymd] => 2025-04-09 23:03:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:03:05' and `end` < '2025-04-09 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-09 23:03:18] Production.INFO: count ==605 [2025-04-09 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:03:05 - End Time 2025-04-09 23:03:05 [2025-04-09 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872774', 'tblTempUsageDetail_20' ) start [2025-04-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872774', 'tblTempUsageDetail_20' ) end [2025-04-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872774', 'tblTempVendorCDR_20' ) start [2025-04-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872774', 'tblTempVendorCDR_20' ) end [2025-04-09 23:03:18] Production.INFO: ProcessCDR(1,14872774,1,1,2) [2025-04-09 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872774', 'tblTempUsageDetail_20' ) start [2025-04-09 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872774', 'tblTempUsageDetail_20' ) end [2025-04-09 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:03:22] Production.INFO: ==21237== Releasing lock... [2025-04-09 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-09 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:04:05 [end_date_ymd] => 2025-04-09 23:04:05 [RateCDR] => 1 ) [2025-04-09 23: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 20:04:05' and `end` < '2025-04-09 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-09 23:04:19] Production.INFO: count ==601 [2025-04-09 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:04:05 - End Time 2025-04-09 23:04:05 [2025-04-09 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872779', 'tblTempUsageDetail_20' ) start [2025-04-09 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872779', 'tblTempUsageDetail_20' ) end [2025-04-09 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872779', 'tblTempVendorCDR_20' ) start [2025-04-09 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872779', 'tblTempVendorCDR_20' ) end [2025-04-09 23:04:19] Production.INFO: ProcessCDR(1,14872779,1,1,2) [2025-04-09 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872779', 'tblTempUsageDetail_20' ) start [2025-04-09 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872779', 'tblTempUsageDetail_20' ) end [2025-04-09 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:04:22] Production.INFO: ==21308== Releasing lock... [2025-04-09 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:04:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:05:05 [end_date_ymd] => 2025-04-09 23:05:05 [RateCDR] => 1 ) [2025-04-09 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:05:05' and `end` < '2025-04-09 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:05:18] Production.INFO: count ==585 [2025-04-09 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:05:05 - End Time 2025-04-09 23:05:05 [2025-04-09 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872784', 'tblTempUsageDetail_20' ) start [2025-04-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872784', 'tblTempUsageDetail_20' ) end [2025-04-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872784', 'tblTempVendorCDR_20' ) start [2025-04-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872784', 'tblTempVendorCDR_20' ) end [2025-04-09 23:05:18] Production.INFO: ProcessCDR(1,14872784,1,1,2) [2025-04-09 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872784', 'tblTempUsageDetail_20' ) start [2025-04-09 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872784', 'tblTempUsageDetail_20' ) end [2025-04-09 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:05:22] Production.INFO: ==21456== Releasing lock... [2025-04-09 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:06:06 [end_date_ymd] => 2025-04-09 23:06:06 [RateCDR] => 1 ) [2025-04-09 23: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-09 20:06:06' and `end` < '2025-04-09 23: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-09 23:06:18] Production.INFO: count ==583 [2025-04-09 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:06:06 - End Time 2025-04-09 23:06:06 [2025-04-09 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872789', 'tblTempUsageDetail_20' ) start [2025-04-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872789', 'tblTempUsageDetail_20' ) end [2025-04-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872789', 'tblTempVendorCDR_20' ) start [2025-04-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872789', 'tblTempVendorCDR_20' ) end [2025-04-09 23:06:19] Production.INFO: ProcessCDR(1,14872789,1,1,2) [2025-04-09 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872789', 'tblTempUsageDetail_20' ) start [2025-04-09 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872789', 'tblTempUsageDetail_20' ) end [2025-04-09 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:06:22] Production.INFO: ==21536== Releasing lock... [2025-04-09 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:07:05 [end_date_ymd] => 2025-04-09 23:07:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:07:05' and `end` < '2025-04-09 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-09 23:07:18] Production.INFO: count ==581 [2025-04-09 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:07:05 - End Time 2025-04-09 23:07:05 [2025-04-09 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872794', 'tblTempUsageDetail_20' ) start [2025-04-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872794', 'tblTempUsageDetail_20' ) end [2025-04-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872794', 'tblTempVendorCDR_20' ) start [2025-04-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872794', 'tblTempVendorCDR_20' ) end [2025-04-09 23:07:18] Production.INFO: ProcessCDR(1,14872794,1,1,2) [2025-04-09 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872794', 'tblTempUsageDetail_20' ) start [2025-04-09 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872794', 'tblTempUsageDetail_20' ) end [2025-04-09 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:07:21] Production.INFO: ==21608== Releasing lock... [2025-04-09 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:08:05 [end_date_ymd] => 2025-04-09 23:08:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:08:05' and `end` < '2025-04-09 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-09 23:08:18] Production.INFO: count ==578 [2025-04-09 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:08:05 - End Time 2025-04-09 23:08:05 [2025-04-09 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872799', 'tblTempUsageDetail_20' ) start [2025-04-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872799', 'tblTempUsageDetail_20' ) end [2025-04-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872799', 'tblTempVendorCDR_20' ) start [2025-04-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872799', 'tblTempVendorCDR_20' ) end [2025-04-09 23:08:18] Production.INFO: ProcessCDR(1,14872799,1,1,2) [2025-04-09 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872799', 'tblTempUsageDetail_20' ) start [2025-04-09 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872799', 'tblTempUsageDetail_20' ) end [2025-04-09 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:08:22] Production.INFO: ==21757== Releasing lock... [2025-04-09 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:09:05 [end_date_ymd] => 2025-04-09 23:09:05 [RateCDR] => 1 ) [2025-04-09 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:09:05' and `end` < '2025-04-09 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:09:18] Production.INFO: count ==577 [2025-04-09 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:09:05 - End Time 2025-04-09 23:09:05 [2025-04-09 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872804', 'tblTempUsageDetail_20' ) start [2025-04-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872804', 'tblTempUsageDetail_20' ) end [2025-04-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872804', 'tblTempVendorCDR_20' ) start [2025-04-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872804', 'tblTempVendorCDR_20' ) end [2025-04-09 23:09:18] Production.INFO: ProcessCDR(1,14872804,1,1,2) [2025-04-09 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872804', 'tblTempUsageDetail_20' ) start [2025-04-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872804', 'tblTempUsageDetail_20' ) end [2025-04-09 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:09:21] Production.INFO: ==21865== Releasing lock... [2025-04-09 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:10:06 [end_date_ymd] => 2025-04-09 23:10:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:10:06' and `end` < '2025-04-09 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-09 23:10:19] Production.INFO: count ==578 [2025-04-09 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:10:06 - End Time 2025-04-09 23:10:06 [2025-04-09 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872810', 'tblTempUsageDetail_20' ) start [2025-04-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872810', 'tblTempUsageDetail_20' ) end [2025-04-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872810', 'tblTempVendorCDR_20' ) start [2025-04-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872810', 'tblTempVendorCDR_20' ) end [2025-04-09 23:10:19] Production.INFO: ProcessCDR(1,14872810,1,1,2) [2025-04-09 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872810', 'tblTempUsageDetail_20' ) start [2025-04-09 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872810', 'tblTempUsageDetail_20' ) end [2025-04-09 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:10:23] Production.INFO: ==21941== Releasing lock... [2025-04-09 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-09 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:11:05 [end_date_ymd] => 2025-04-09 23:11:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:11:05' and `end` < '2025-04-09 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-09 23:11:18] Production.INFO: count ==554 [2025-04-09 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:11:05 - End Time 2025-04-09 23:11:05 [2025-04-09 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872815', 'tblTempUsageDetail_20' ) start [2025-04-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872815', 'tblTempUsageDetail_20' ) end [2025-04-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872815', 'tblTempVendorCDR_20' ) start [2025-04-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872815', 'tblTempVendorCDR_20' ) end [2025-04-09 23:11:18] Production.INFO: ProcessCDR(1,14872815,1,1,2) [2025-04-09 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872815', 'tblTempUsageDetail_20' ) start [2025-04-09 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872815', 'tblTempUsageDetail_20' ) end [2025-04-09 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:11:21] Production.INFO: ==22013== Releasing lock... [2025-04-09 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:12:05 [end_date_ymd] => 2025-04-09 23:12:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:12:05' and `end` < '2025-04-09 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-09 23:12:19] Production.INFO: count ==553 [2025-04-09 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:12:05 - End Time 2025-04-09 23:12:05 [2025-04-09 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872820', 'tblTempUsageDetail_20' ) start [2025-04-09 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872820', 'tblTempUsageDetail_20' ) end [2025-04-09 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872820', 'tblTempVendorCDR_20' ) start [2025-04-09 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872820', 'tblTempVendorCDR_20' ) end [2025-04-09 23:12:19] Production.INFO: ProcessCDR(1,14872820,1,1,2) [2025-04-09 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872820', 'tblTempUsageDetail_20' ) start [2025-04-09 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872820', 'tblTempUsageDetail_20' ) end [2025-04-09 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:12:22] Production.INFO: ==22164== Releasing lock... [2025-04-09 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:12:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:13:05 [end_date_ymd] => 2025-04-09 23:13:05 [RateCDR] => 1 ) [2025-04-09 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:13:05' and `end` < '2025-04-09 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:13:18] Production.INFO: count ==553 [2025-04-09 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:13:05 - End Time 2025-04-09 23:13:05 [2025-04-09 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872825', 'tblTempUsageDetail_20' ) start [2025-04-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872825', 'tblTempUsageDetail_20' ) end [2025-04-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872825', 'tblTempVendorCDR_20' ) start [2025-04-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872825', 'tblTempVendorCDR_20' ) end [2025-04-09 23:13:18] Production.INFO: ProcessCDR(1,14872825,1,1,2) [2025-04-09 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872825', 'tblTempUsageDetail_20' ) start [2025-04-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872825', 'tblTempUsageDetail_20' ) end [2025-04-09 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:13:21] Production.INFO: ==22234== Releasing lock... [2025-04-09 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:14:05 [end_date_ymd] => 2025-04-09 23:14:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:14:05' and `end` < '2025-04-09 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-09 23:14:18] Production.INFO: count ==551 [2025-04-09 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:14:05 - End Time 2025-04-09 23:14:05 [2025-04-09 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872830', 'tblTempUsageDetail_20' ) start [2025-04-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872830', 'tblTempUsageDetail_20' ) end [2025-04-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872830', 'tblTempVendorCDR_20' ) start [2025-04-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872830', 'tblTempVendorCDR_20' ) end [2025-04-09 23:14:18] Production.INFO: ProcessCDR(1,14872830,1,1,2) [2025-04-09 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872830', 'tblTempUsageDetail_20' ) start [2025-04-09 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872830', 'tblTempUsageDetail_20' ) end [2025-04-09 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:14:22] Production.INFO: ==22310== Releasing lock... [2025-04-09 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:15:06 [end_date_ymd] => 2025-04-09 23:15:06 [RateCDR] => 1 ) [2025-04-09 23: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-09 20:15:06' and `end` < '2025-04-09 23: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-09 23:15:19] Production.INFO: count ==551 [2025-04-09 23:15:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:15:06 - End Time 2025-04-09 23:15:06 [2025-04-09 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872835', 'tblTempUsageDetail_20' ) start [2025-04-09 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872835', 'tblTempUsageDetail_20' ) end [2025-04-09 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872835', 'tblTempVendorCDR_20' ) start [2025-04-09 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872835', 'tblTempVendorCDR_20' ) end [2025-04-09 23:15:19] Production.INFO: ProcessCDR(1,14872835,1,1,2) [2025-04-09 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872835', 'tblTempUsageDetail_20' ) start [2025-04-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872835', 'tblTempUsageDetail_20' ) end [2025-04-09 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:15:22] Production.INFO: ==22460== Releasing lock... [2025-04-09 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:16:05 [end_date_ymd] => 2025-04-09 23:16:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:16:05' and `end` < '2025-04-09 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-09 23:16:18] Production.INFO: count ==551 [2025-04-09 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:16:05 - End Time 2025-04-09 23:16:05 [2025-04-09 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872840', 'tblTempUsageDetail_20' ) start [2025-04-09 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872840', 'tblTempUsageDetail_20' ) end [2025-04-09 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872840', 'tblTempVendorCDR_20' ) start [2025-04-09 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872840', 'tblTempVendorCDR_20' ) end [2025-04-09 23:16:18] Production.INFO: ProcessCDR(1,14872840,1,1,2) [2025-04-09 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872840', 'tblTempUsageDetail_20' ) start [2025-04-09 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872840', 'tblTempUsageDetail_20' ) end [2025-04-09 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:16:22] Production.INFO: ==22532== Releasing lock... [2025-04-09 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:17:05 [end_date_ymd] => 2025-04-09 23:17:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:17:05' and `end` < '2025-04-09 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-09 23:17:18] Production.INFO: count ==551 [2025-04-09 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:17:05 - End Time 2025-04-09 23:17:05 [2025-04-09 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872845', 'tblTempUsageDetail_20' ) start [2025-04-09 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872845', 'tblTempUsageDetail_20' ) end [2025-04-09 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872845', 'tblTempVendorCDR_20' ) start [2025-04-09 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872845', 'tblTempVendorCDR_20' ) end [2025-04-09 23:17:18] Production.INFO: ProcessCDR(1,14872845,1,1,2) [2025-04-09 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872845', 'tblTempUsageDetail_20' ) start [2025-04-09 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872845', 'tblTempUsageDetail_20' ) end [2025-04-09 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:17:22] Production.INFO: ==22608== Releasing lock... [2025-04-09 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:18:05 [end_date_ymd] => 2025-04-09 23:18:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:18:05' and `end` < '2025-04-09 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-09 23:18:18] Production.INFO: count ==551 [2025-04-09 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:18:05 - End Time 2025-04-09 23:18:05 [2025-04-09 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872850', 'tblTempUsageDetail_20' ) start [2025-04-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872850', 'tblTempUsageDetail_20' ) end [2025-04-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872850', 'tblTempVendorCDR_20' ) start [2025-04-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872850', 'tblTempVendorCDR_20' ) end [2025-04-09 23:18:18] Production.INFO: ProcessCDR(1,14872850,1,1,2) [2025-04-09 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872850', 'tblTempUsageDetail_20' ) start [2025-04-09 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872850', 'tblTempUsageDetail_20' ) end [2025-04-09 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:18:22] Production.INFO: ==22679== Releasing lock... [2025-04-09 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:19:05 [end_date_ymd] => 2025-04-09 23:19:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:19:05' and `end` < '2025-04-09 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-09 23:19:18] Production.INFO: count ==550 [2025-04-09 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:19:05 - End Time 2025-04-09 23:19:05 [2025-04-09 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872855', 'tblTempUsageDetail_20' ) start [2025-04-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872855', 'tblTempUsageDetail_20' ) end [2025-04-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872855', 'tblTempVendorCDR_20' ) start [2025-04-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872855', 'tblTempVendorCDR_20' ) end [2025-04-09 23:19:18] Production.INFO: ProcessCDR(1,14872855,1,1,2) [2025-04-09 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872855', 'tblTempUsageDetail_20' ) start [2025-04-09 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872855', 'tblTempUsageDetail_20' ) end [2025-04-09 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:19:21] Production.INFO: ==22757== Releasing lock... [2025-04-09 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:20:06 [end_date_ymd] => 2025-04-09 23:20:06 [RateCDR] => 1 ) [2025-04-09 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:20:06' and `end` < '2025-04-09 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:20:19] Production.INFO: count ==549 [2025-04-09 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:20:06 - End Time 2025-04-09 23:20:06 [2025-04-09 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872861', 'tblTempUsageDetail_20' ) start [2025-04-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872861', 'tblTempUsageDetail_20' ) end [2025-04-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872861', 'tblTempVendorCDR_20' ) start [2025-04-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872861', 'tblTempVendorCDR_20' ) end [2025-04-09 23:20:19] Production.INFO: ProcessCDR(1,14872861,1,1,2) [2025-04-09 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872861', 'tblTempUsageDetail_20' ) start [2025-04-09 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872861', 'tblTempUsageDetail_20' ) end [2025-04-09 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:20:22] Production.INFO: ==22830== Releasing lock... [2025-04-09 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-09 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:21:05 [end_date_ymd] => 2025-04-09 23:21:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:21:05' and `end` < '2025-04-09 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-09 23:21:18] Production.INFO: count ==526 [2025-04-09 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:21:05 - End Time 2025-04-09 23:21:05 [2025-04-09 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872866', 'tblTempUsageDetail_20' ) start [2025-04-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872866', 'tblTempUsageDetail_20' ) end [2025-04-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872866', 'tblTempVendorCDR_20' ) start [2025-04-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872866', 'tblTempVendorCDR_20' ) end [2025-04-09 23:21:18] Production.INFO: ProcessCDR(1,14872866,1,1,2) [2025-04-09 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872866', 'tblTempUsageDetail_20' ) start [2025-04-09 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872866', 'tblTempUsageDetail_20' ) end [2025-04-09 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:21:21] Production.INFO: ==22905== Releasing lock... [2025-04-09 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:22:05 [end_date_ymd] => 2025-04-09 23:22:05 [RateCDR] => 1 ) [2025-04-09 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:22:05' and `end` < '2025-04-09 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:22:18] Production.INFO: count ==525 [2025-04-09 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:22:05 - End Time 2025-04-09 23:22:05 [2025-04-09 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872871', 'tblTempUsageDetail_20' ) start [2025-04-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872871', 'tblTempUsageDetail_20' ) end [2025-04-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872871', 'tblTempVendorCDR_20' ) start [2025-04-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872871', 'tblTempVendorCDR_20' ) end [2025-04-09 23:22:18] Production.INFO: ProcessCDR(1,14872871,1,1,2) [2025-04-09 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872871', 'tblTempUsageDetail_20' ) start [2025-04-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872871', 'tblTempUsageDetail_20' ) end [2025-04-09 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:22:21] Production.INFO: ==22974== Releasing lock... [2025-04-09 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:23:05 [end_date_ymd] => 2025-04-09 23:23:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:23:05' and `end` < '2025-04-09 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-09 23:23:18] Production.INFO: count ==532 [2025-04-09 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:23:05 - End Time 2025-04-09 23:23:05 [2025-04-09 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872876', 'tblTempUsageDetail_20' ) start [2025-04-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872876', 'tblTempUsageDetail_20' ) end [2025-04-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872876', 'tblTempVendorCDR_20' ) start [2025-04-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872876', 'tblTempVendorCDR_20' ) end [2025-04-09 23:23:18] Production.INFO: ProcessCDR(1,14872876,1,1,2) [2025-04-09 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872876', 'tblTempUsageDetail_20' ) start [2025-04-09 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872876', 'tblTempUsageDetail_20' ) end [2025-04-09 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:23:24] Production.INFO: ==23044== Releasing lock... [2025-04-09 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:23:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:24:05 [end_date_ymd] => 2025-04-09 23:24:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:24:05' and `end` < '2025-04-09 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-09 23:24:18] Production.INFO: count ==532 [2025-04-09 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:24:05 - End Time 2025-04-09 23:24:05 [2025-04-09 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872881', 'tblTempUsageDetail_20' ) start [2025-04-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872881', 'tblTempUsageDetail_20' ) end [2025-04-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872881', 'tblTempVendorCDR_20' ) start [2025-04-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872881', 'tblTempVendorCDR_20' ) end [2025-04-09 23:24:18] Production.INFO: ProcessCDR(1,14872881,1,1,2) [2025-04-09 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872881', 'tblTempUsageDetail_20' ) start [2025-04-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872881', 'tblTempUsageDetail_20' ) end [2025-04-09 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:24:21] Production.INFO: ==23154== Releasing lock... [2025-04-09 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:25:05 [end_date_ymd] => 2025-04-09 23:25:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:25:05' and `end` < '2025-04-09 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-09 23:25:18] Production.INFO: count ==530 [2025-04-09 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:25:05 - End Time 2025-04-09 23:25:05 [2025-04-09 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872886', 'tblTempUsageDetail_20' ) start [2025-04-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872886', 'tblTempUsageDetail_20' ) end [2025-04-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872886', 'tblTempVendorCDR_20' ) start [2025-04-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872886', 'tblTempVendorCDR_20' ) end [2025-04-09 23:25:18] Production.INFO: ProcessCDR(1,14872886,1,1,2) [2025-04-09 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872886', 'tblTempUsageDetail_20' ) start [2025-04-09 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872886', 'tblTempUsageDetail_20' ) end [2025-04-09 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:25:22] Production.INFO: ==23225== Releasing lock... [2025-04-09 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:26:04 [end_date_ymd] => 2025-04-09 23:26:04 [RateCDR] => 1 ) [2025-04-09 23: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 20:26:04' and `end` < '2025-04-09 23: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-09 23:26:18] Production.INFO: count ==529 [2025-04-09 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:26:04 - End Time 2025-04-09 23:26:04 [2025-04-09 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872891', 'tblTempUsageDetail_20' ) start [2025-04-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872891', 'tblTempUsageDetail_20' ) end [2025-04-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872891', 'tblTempVendorCDR_20' ) start [2025-04-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872891', 'tblTempVendorCDR_20' ) end [2025-04-09 23:26:18] Production.INFO: ProcessCDR(1,14872891,1,1,2) [2025-04-09 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872891', 'tblTempUsageDetail_20' ) start [2025-04-09 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872891', 'tblTempUsageDetail_20' ) end [2025-04-09 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:26:23] Production.INFO: ==23295== Releasing lock... [2025-04-09 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:27:05 [end_date_ymd] => 2025-04-09 23:27:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:27:05' and `end` < '2025-04-09 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-09 23:27:19] Production.INFO: count ==528 [2025-04-09 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:27:05 - End Time 2025-04-09 23:27:05 [2025-04-09 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872896', 'tblTempUsageDetail_20' ) start [2025-04-09 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872896', 'tblTempUsageDetail_20' ) end [2025-04-09 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872896', 'tblTempVendorCDR_20' ) start [2025-04-09 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872896', 'tblTempVendorCDR_20' ) end [2025-04-09 23:27:19] Production.INFO: ProcessCDR(1,14872896,1,1,2) [2025-04-09 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872896', 'tblTempUsageDetail_20' ) start [2025-04-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872896', 'tblTempUsageDetail_20' ) end [2025-04-09 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:27:22] Production.INFO: ==23368== Releasing lock... [2025-04-09 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:28:05 [end_date_ymd] => 2025-04-09 23:28:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:28:05' and `end` < '2025-04-09 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-09 23:28:18] Production.INFO: count ==528 [2025-04-09 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:28:05 - End Time 2025-04-09 23:28:05 [2025-04-09 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872901', 'tblTempUsageDetail_20' ) start [2025-04-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872901', 'tblTempUsageDetail_20' ) end [2025-04-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872901', 'tblTempVendorCDR_20' ) start [2025-04-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872901', 'tblTempVendorCDR_20' ) end [2025-04-09 23:28:18] Production.INFO: ProcessCDR(1,14872901,1,1,2) [2025-04-09 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872901', 'tblTempUsageDetail_20' ) start [2025-04-09 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872901', 'tblTempUsageDetail_20' ) end [2025-04-09 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:28:21] Production.INFO: ==23444== Releasing lock... [2025-04-09 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:29:05 [end_date_ymd] => 2025-04-09 23:29:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:29:05' and `end` < '2025-04-09 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-09 23:29:18] Production.INFO: count ==529 [2025-04-09 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:29:05 - End Time 2025-04-09 23:29:05 [2025-04-09 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872906', 'tblTempUsageDetail_20' ) start [2025-04-09 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872906', 'tblTempUsageDetail_20' ) end [2025-04-09 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872906', 'tblTempVendorCDR_20' ) start [2025-04-09 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872906', 'tblTempVendorCDR_20' ) end [2025-04-09 23:29:18] Production.INFO: ProcessCDR(1,14872906,1,1,2) [2025-04-09 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872906', 'tblTempUsageDetail_20' ) start [2025-04-09 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872906', 'tblTempUsageDetail_20' ) end [2025-04-09 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:29:23] Production.INFO: ==23516== Releasing lock... [2025-04-09 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:30:06 [end_date_ymd] => 2025-04-09 23:30:06 [RateCDR] => 1 ) [2025-04-09 23: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 20:30:06' and `end` < '2025-04-09 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:30:19] Production.INFO: count ==529 [2025-04-09 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:30:06 - End Time 2025-04-09 23:30:06 [2025-04-09 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872912', 'tblTempUsageDetail_20' ) start [2025-04-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872912', 'tblTempUsageDetail_20' ) end [2025-04-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872912', 'tblTempVendorCDR_20' ) start [2025-04-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872912', 'tblTempVendorCDR_20' ) end [2025-04-09 23:30:19] Production.INFO: ProcessCDR(1,14872912,1,1,2) [2025-04-09 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872912', 'tblTempUsageDetail_20' ) start [2025-04-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872912', 'tblTempUsageDetail_20' ) end [2025-04-09 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:30:22] Production.INFO: ==23591== Releasing lock... [2025-04-09 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:31:05 [end_date_ymd] => 2025-04-09 23:31:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:31:05' and `end` < '2025-04-09 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-09 23:31:18] Production.INFO: count ==523 [2025-04-09 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:31:05 - End Time 2025-04-09 23:31:05 [2025-04-09 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872917', 'tblTempUsageDetail_20' ) start [2025-04-09 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872917', 'tblTempUsageDetail_20' ) end [2025-04-09 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872917', 'tblTempVendorCDR_20' ) start [2025-04-09 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872917', 'tblTempVendorCDR_20' ) end [2025-04-09 23:31:18] Production.INFO: ProcessCDR(1,14872917,1,1,2) [2025-04-09 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872917', 'tblTempUsageDetail_20' ) start [2025-04-09 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872917', 'tblTempUsageDetail_20' ) end [2025-04-09 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:31:22] Production.INFO: ==23666== Releasing lock... [2025-04-09 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:32:06 [end_date_ymd] => 2025-04-09 23:32:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:32:06' and `end` < '2025-04-09 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-09 23:32:19] Production.INFO: count ==522 [2025-04-09 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:32:06 - End Time 2025-04-09 23:32:06 [2025-04-09 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872922', 'tblTempUsageDetail_20' ) start [2025-04-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872922', 'tblTempUsageDetail_20' ) end [2025-04-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872922', 'tblTempVendorCDR_20' ) start [2025-04-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872922', 'tblTempVendorCDR_20' ) end [2025-04-09 23:32:19] Production.INFO: ProcessCDR(1,14872922,1,1,2) [2025-04-09 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872922', 'tblTempUsageDetail_20' ) start [2025-04-09 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872922', 'tblTempUsageDetail_20' ) end [2025-04-09 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:32:24] Production.INFO: ==23738== Releasing lock... [2025-04-09 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:32:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:33:05 [end_date_ymd] => 2025-04-09 23:33:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:33:05' and `end` < '2025-04-09 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-09 23:33:18] Production.INFO: count ==522 [2025-04-09 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:33:05 - End Time 2025-04-09 23:33:05 [2025-04-09 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872927', 'tblTempUsageDetail_20' ) start [2025-04-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872927', 'tblTempUsageDetail_20' ) end [2025-04-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872927', 'tblTempVendorCDR_20' ) start [2025-04-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872927', 'tblTempVendorCDR_20' ) end [2025-04-09 23:33:18] Production.INFO: ProcessCDR(1,14872927,1,1,2) [2025-04-09 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872927', 'tblTempUsageDetail_20' ) start [2025-04-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872927', 'tblTempUsageDetail_20' ) end [2025-04-09 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:33:21] Production.INFO: ==23813== Releasing lock... [2025-04-09 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:34:06 [end_date_ymd] => 2025-04-09 23:34:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:34:06' and `end` < '2025-04-09 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-09 23:34:19] Production.INFO: count ==521 [2025-04-09 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:34:06 - End Time 2025-04-09 23:34:06 [2025-04-09 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872932', 'tblTempUsageDetail_20' ) start [2025-04-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872932', 'tblTempUsageDetail_20' ) end [2025-04-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872932', 'tblTempVendorCDR_20' ) start [2025-04-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872932', 'tblTempVendorCDR_20' ) end [2025-04-09 23:34:19] Production.INFO: ProcessCDR(1,14872932,1,1,2) [2025-04-09 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872932', 'tblTempUsageDetail_20' ) start [2025-04-09 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872932', 'tblTempUsageDetail_20' ) end [2025-04-09 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:34:22] Production.INFO: ==23883== Releasing lock... [2025-04-09 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:35:05 [end_date_ymd] => 2025-04-09 23:35:05 [RateCDR] => 1 ) [2025-04-09 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:35:05' and `end` < '2025-04-09 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:35:17] Production.INFO: count ==519 [2025-04-09 23:35:17] Production.ERROR: pbx CDR StartTime 2025-04-09 20:35:05 - End Time 2025-04-09 23:35:05 [2025-04-09 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872937', 'tblTempUsageDetail_20' ) start [2025-04-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872937', 'tblTempUsageDetail_20' ) end [2025-04-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872937', 'tblTempVendorCDR_20' ) start [2025-04-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872937', 'tblTempVendorCDR_20' ) end [2025-04-09 23:35:17] Production.INFO: ProcessCDR(1,14872937,1,1,2) [2025-04-09 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872937', 'tblTempUsageDetail_20' ) start [2025-04-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872937', 'tblTempUsageDetail_20' ) end [2025-04-09 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:35:21] Production.INFO: ==23954== Releasing lock... [2025-04-09 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:36:05 [end_date_ymd] => 2025-04-09 23:36:05 [RateCDR] => 1 ) [2025-04-09 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:36:05' and `end` < '2025-04-09 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:36:18] Production.INFO: count ==517 [2025-04-09 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:36:05 - End Time 2025-04-09 23:36:05 [2025-04-09 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872942', 'tblTempUsageDetail_20' ) start [2025-04-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872942', 'tblTempUsageDetail_20' ) end [2025-04-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872942', 'tblTempVendorCDR_20' ) start [2025-04-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872942', 'tblTempVendorCDR_20' ) end [2025-04-09 23:36:18] Production.INFO: ProcessCDR(1,14872942,1,1,2) [2025-04-09 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872942', 'tblTempUsageDetail_20' ) start [2025-04-09 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872942', 'tblTempUsageDetail_20' ) end [2025-04-09 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:36:22] Production.INFO: ==24028== Releasing lock... [2025-04-09 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:37:04 [end_date_ymd] => 2025-04-09 23:37:04 [RateCDR] => 1 ) [2025-04-09 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:37:04' and `end` < '2025-04-09 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:37:18] Production.INFO: count ==517 [2025-04-09 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:37:04 - End Time 2025-04-09 23:37:04 [2025-04-09 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872947', 'tblTempUsageDetail_20' ) start [2025-04-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872947', 'tblTempUsageDetail_20' ) end [2025-04-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872947', 'tblTempVendorCDR_20' ) start [2025-04-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872947', 'tblTempVendorCDR_20' ) end [2025-04-09 23:37:18] Production.INFO: ProcessCDR(1,14872947,1,1,2) [2025-04-09 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872947', 'tblTempUsageDetail_20' ) start [2025-04-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872947', 'tblTempUsageDetail_20' ) end [2025-04-09 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:37:21] Production.INFO: ==24097== Releasing lock... [2025-04-09 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:38:05 [end_date_ymd] => 2025-04-09 23:38:05 [RateCDR] => 1 ) [2025-04-09 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:38:05' and `end` < '2025-04-09 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-09 23:38:19] Production.INFO: count ==519 [2025-04-09 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:38:05 - End Time 2025-04-09 23:38:05 [2025-04-09 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872952', 'tblTempUsageDetail_20' ) start [2025-04-09 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872952', 'tblTempUsageDetail_20' ) end [2025-04-09 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872952', 'tblTempVendorCDR_20' ) start [2025-04-09 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872952', 'tblTempVendorCDR_20' ) end [2025-04-09 23:38:19] Production.INFO: ProcessCDR(1,14872952,1,1,2) [2025-04-09 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872952', 'tblTempUsageDetail_20' ) start [2025-04-09 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872952', 'tblTempUsageDetail_20' ) end [2025-04-09 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:38:22] Production.INFO: ==24168== Releasing lock... [2025-04-09 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:39:04 [end_date_ymd] => 2025-04-09 23:39:04 [RateCDR] => 1 ) [2025-04-09 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:39:04' and `end` < '2025-04-09 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:39:17] Production.INFO: count ==520 [2025-04-09 23:39:17] Production.ERROR: pbx CDR StartTime 2025-04-09 20:39:04 - End Time 2025-04-09 23:39:04 [2025-04-09 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872957', 'tblTempUsageDetail_20' ) start [2025-04-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872957', 'tblTempUsageDetail_20' ) end [2025-04-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872957', 'tblTempVendorCDR_20' ) start [2025-04-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872957', 'tblTempVendorCDR_20' ) end [2025-04-09 23:39:17] Production.INFO: ProcessCDR(1,14872957,1,1,2) [2025-04-09 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872957', 'tblTempUsageDetail_20' ) start [2025-04-09 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872957', 'tblTempUsageDetail_20' ) end [2025-04-09 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:39:22] Production.INFO: ==24238== Releasing lock... [2025-04-09 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:40:06 [end_date_ymd] => 2025-04-09 23:40:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:40:06' and `end` < '2025-04-09 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-09 23:40:19] Production.INFO: count ==517 [2025-04-09 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:40:06 - End Time 2025-04-09 23:40:06 [2025-04-09 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872963', 'tblTempUsageDetail_20' ) start [2025-04-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872963', 'tblTempUsageDetail_20' ) end [2025-04-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872963', 'tblTempVendorCDR_20' ) start [2025-04-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872963', 'tblTempVendorCDR_20' ) end [2025-04-09 23:40:19] Production.INFO: ProcessCDR(1,14872963,1,1,2) [2025-04-09 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872963', 'tblTempUsageDetail_20' ) start [2025-04-09 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872963', 'tblTempUsageDetail_20' ) end [2025-04-09 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:40:23] Production.INFO: ==24350== Releasing lock... [2025-04-09 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:41:05 [end_date_ymd] => 2025-04-09 23:41:05 [RateCDR] => 1 ) [2025-04-09 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:41:05' and `end` < '2025-04-09 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:41:18] Production.INFO: count ==519 [2025-04-09 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:41:05 - End Time 2025-04-09 23:41:05 [2025-04-09 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872968', 'tblTempUsageDetail_20' ) start [2025-04-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872968', 'tblTempUsageDetail_20' ) end [2025-04-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872968', 'tblTempVendorCDR_20' ) start [2025-04-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872968', 'tblTempVendorCDR_20' ) end [2025-04-09 23:41:18] Production.INFO: ProcessCDR(1,14872968,1,1,2) [2025-04-09 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872968', 'tblTempUsageDetail_20' ) start [2025-04-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872968', 'tblTempUsageDetail_20' ) end [2025-04-09 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:41:21] Production.INFO: ==24429== Releasing lock... [2025-04-09 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:42:05 [end_date_ymd] => 2025-04-09 23:42:05 [RateCDR] => 1 ) [2025-04-09 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:42:05' and `end` < '2025-04-09 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:42:18] Production.INFO: count ==517 [2025-04-09 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:42:05 - End Time 2025-04-09 23:42:05 [2025-04-09 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872973', 'tblTempUsageDetail_20' ) start [2025-04-09 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872973', 'tblTempUsageDetail_20' ) end [2025-04-09 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872973', 'tblTempVendorCDR_20' ) start [2025-04-09 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872973', 'tblTempVendorCDR_20' ) end [2025-04-09 23:42:18] Production.INFO: ProcessCDR(1,14872973,1,1,2) [2025-04-09 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872973', 'tblTempUsageDetail_20' ) start [2025-04-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872973', 'tblTempUsageDetail_20' ) end [2025-04-09 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:42:22] Production.INFO: ==24500== Releasing lock... [2025-04-09 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:43:05 [end_date_ymd] => 2025-04-09 23:43:05 [RateCDR] => 1 ) [2025-04-09 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:43:05' and `end` < '2025-04-09 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:43:18] Production.INFO: count ==515 [2025-04-09 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:43:05 - End Time 2025-04-09 23:43:05 [2025-04-09 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872978', 'tblTempUsageDetail_20' ) start [2025-04-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872978', 'tblTempUsageDetail_20' ) end [2025-04-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872978', 'tblTempVendorCDR_20' ) start [2025-04-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872978', 'tblTempVendorCDR_20' ) end [2025-04-09 23:43:18] Production.INFO: ProcessCDR(1,14872978,1,1,2) [2025-04-09 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872978', 'tblTempUsageDetail_20' ) start [2025-04-09 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872978', 'tblTempUsageDetail_20' ) end [2025-04-09 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:43:21] Production.INFO: ==24571== Releasing lock... [2025-04-09 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:44:05 [end_date_ymd] => 2025-04-09 23:44:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:44:05' and `end` < '2025-04-09 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-09 23:44:18] Production.INFO: count ==515 [2025-04-09 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:44:05 - End Time 2025-04-09 23:44:05 [2025-04-09 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872983', 'tblTempUsageDetail_20' ) start [2025-04-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872983', 'tblTempUsageDetail_20' ) end [2025-04-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872983', 'tblTempVendorCDR_20' ) start [2025-04-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872983', 'tblTempVendorCDR_20' ) end [2025-04-09 23:44:18] Production.INFO: ProcessCDR(1,14872983,1,1,2) [2025-04-09 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872983', 'tblTempUsageDetail_20' ) start [2025-04-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872983', 'tblTempUsageDetail_20' ) end [2025-04-09 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:44:21] Production.INFO: ==24642== Releasing lock... [2025-04-09 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:45:04 [end_date_ymd] => 2025-04-09 23:45:04 [RateCDR] => 1 ) [2025-04-09 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-09 20:45:04' and `end` < '2025-04-09 23: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-09 23:45:17] Production.INFO: count ==515 [2025-04-09 23:45:17] Production.ERROR: pbx CDR StartTime 2025-04-09 20:45:04 - End Time 2025-04-09 23:45:04 [2025-04-09 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872988', 'tblTempUsageDetail_20' ) start [2025-04-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872988', 'tblTempUsageDetail_20' ) end [2025-04-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872988', 'tblTempVendorCDR_20' ) start [2025-04-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872988', 'tblTempVendorCDR_20' ) end [2025-04-09 23:45:17] Production.INFO: ProcessCDR(1,14872988,1,1,2) [2025-04-09 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872988', 'tblTempUsageDetail_20' ) start [2025-04-09 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872988', 'tblTempUsageDetail_20' ) end [2025-04-09 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:45:21] Production.INFO: ==24711== Releasing lock... [2025-04-09 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:46:05 [end_date_ymd] => 2025-04-09 23:46:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:46:05' and `end` < '2025-04-09 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-09 23:46:18] Production.INFO: count ==515 [2025-04-09 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:46:05 - End Time 2025-04-09 23:46:05 [2025-04-09 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872993', 'tblTempUsageDetail_20' ) start [2025-04-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872993', 'tblTempUsageDetail_20' ) end [2025-04-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872993', 'tblTempVendorCDR_20' ) start [2025-04-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872993', 'tblTempVendorCDR_20' ) end [2025-04-09 23:46:18] Production.INFO: ProcessCDR(1,14872993,1,1,2) [2025-04-09 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872993', 'tblTempUsageDetail_20' ) start [2025-04-09 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872993', 'tblTempUsageDetail_20' ) end [2025-04-09 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:46:22] Production.INFO: ==24783== Releasing lock... [2025-04-09 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:47:06 [end_date_ymd] => 2025-04-09 23:47:06 [RateCDR] => 1 ) [2025-04-09 23: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 20:47:06' and `end` < '2025-04-09 23: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-09 23:47:19] Production.INFO: count ==516 [2025-04-09 23:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:47:06 - End Time 2025-04-09 23:47:06 [2025-04-09 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872998', 'tblTempUsageDetail_20' ) start [2025-04-09 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14872998', 'tblTempUsageDetail_20' ) end [2025-04-09 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872998', 'tblTempVendorCDR_20' ) start [2025-04-09 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14872998', 'tblTempVendorCDR_20' ) end [2025-04-09 23:47:19] Production.INFO: ProcessCDR(1,14872998,1,1,2) [2025-04-09 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14872998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14872998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14872998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14872998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872998', 'tblTempUsageDetail_20' ) start [2025-04-09 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14872998', 'tblTempUsageDetail_20' ) end [2025-04-09 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:47:22] Production.INFO: ==24857== Releasing lock... [2025-04-09 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:48:05 [end_date_ymd] => 2025-04-09 23:48:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:48:05' and `end` < '2025-04-09 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-09 23:48:18] Production.INFO: count ==517 [2025-04-09 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:48:05 - End Time 2025-04-09 23:48:05 [2025-04-09 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873003', 'tblTempUsageDetail_20' ) start [2025-04-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873003', 'tblTempUsageDetail_20' ) end [2025-04-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873003', 'tblTempVendorCDR_20' ) start [2025-04-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873003', 'tblTempVendorCDR_20' ) end [2025-04-09 23:48:18] Production.INFO: ProcessCDR(1,14873003,1,1,2) [2025-04-09 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873003', 'tblTempUsageDetail_20' ) start [2025-04-09 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873003', 'tblTempUsageDetail_20' ) end [2025-04-09 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:48:21] Production.INFO: ==24928== Releasing lock... [2025-04-09 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:49:05 [end_date_ymd] => 2025-04-09 23:49:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:49:05' and `end` < '2025-04-09 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-09 23:49:18] Production.INFO: count ==517 [2025-04-09 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:49:05 - End Time 2025-04-09 23:49:05 [2025-04-09 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873008', 'tblTempUsageDetail_20' ) start [2025-04-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873008', 'tblTempUsageDetail_20' ) end [2025-04-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873008', 'tblTempVendorCDR_20' ) start [2025-04-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873008', 'tblTempVendorCDR_20' ) end [2025-04-09 23:49:18] Production.INFO: ProcessCDR(1,14873008,1,1,2) [2025-04-09 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873008', 'tblTempUsageDetail_20' ) start [2025-04-09 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873008', 'tblTempUsageDetail_20' ) end [2025-04-09 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:49:22] Production.INFO: ==25000== Releasing lock... [2025-04-09 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:50:06 [end_date_ymd] => 2025-04-09 23:50:06 [RateCDR] => 1 ) [2025-04-09 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:50:06' and `end` < '2025-04-09 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:50:18] Production.INFO: count ==515 [2025-04-09 23:50:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:50:06 - End Time 2025-04-09 23:50:06 [2025-04-09 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873014', 'tblTempUsageDetail_20' ) start [2025-04-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873014', 'tblTempUsageDetail_20' ) end [2025-04-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873014', 'tblTempVendorCDR_20' ) start [2025-04-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873014', 'tblTempVendorCDR_20' ) end [2025-04-09 23:50:18] Production.INFO: ProcessCDR(1,14873014,1,1,2) [2025-04-09 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873014', 'tblTempUsageDetail_20' ) start [2025-04-09 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873014', 'tblTempUsageDetail_20' ) end [2025-04-09 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:50:22] Production.INFO: ==25075== Releasing lock... [2025-04-09 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-09 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:51:05 [end_date_ymd] => 2025-04-09 23:51:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:51:05' and `end` < '2025-04-09 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-09 23:51:18] Production.INFO: count ==499 [2025-04-09 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:51:05 - End Time 2025-04-09 23:51:05 [2025-04-09 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873019', 'tblTempUsageDetail_20' ) start [2025-04-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873019', 'tblTempUsageDetail_20' ) end [2025-04-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873019', 'tblTempVendorCDR_20' ) start [2025-04-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873019', 'tblTempVendorCDR_20' ) end [2025-04-09 23:51:18] Production.INFO: ProcessCDR(1,14873019,1,1,2) [2025-04-09 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873019', 'tblTempUsageDetail_20' ) start [2025-04-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873019', 'tblTempUsageDetail_20' ) end [2025-04-09 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:51:21] Production.INFO: ==25147== Releasing lock... [2025-04-09 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:51:21] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:52:05 [end_date_ymd] => 2025-04-09 23:52:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:52:05' and `end` < '2025-04-09 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-09 23:52:18] Production.INFO: count ==499 [2025-04-09 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:52:05 - End Time 2025-04-09 23:52:05 [2025-04-09 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873024', 'tblTempUsageDetail_20' ) start [2025-04-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873024', 'tblTempUsageDetail_20' ) end [2025-04-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873024', 'tblTempVendorCDR_20' ) start [2025-04-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873024', 'tblTempVendorCDR_20' ) end [2025-04-09 23:52:18] Production.INFO: ProcessCDR(1,14873024,1,1,2) [2025-04-09 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873024', 'tblTempUsageDetail_20' ) start [2025-04-09 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873024', 'tblTempUsageDetail_20' ) end [2025-04-09 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:52:21] Production.INFO: ==25219== Releasing lock... [2025-04-09 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:52:21] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:53:05 [end_date_ymd] => 2025-04-09 23:53:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:53:05' and `end` < '2025-04-09 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-09 23:53:18] Production.INFO: count ==497 [2025-04-09 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:53:05 - End Time 2025-04-09 23:53:05 [2025-04-09 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873029', 'tblTempUsageDetail_20' ) start [2025-04-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873029', 'tblTempUsageDetail_20' ) end [2025-04-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873029', 'tblTempVendorCDR_20' ) start [2025-04-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873029', 'tblTempVendorCDR_20' ) end [2025-04-09 23:53:18] Production.INFO: ProcessCDR(1,14873029,1,1,2) [2025-04-09 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873029', 'tblTempUsageDetail_20' ) start [2025-04-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873029', 'tblTempUsageDetail_20' ) end [2025-04-09 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:53:21] Production.INFO: ==25290== Releasing lock... [2025-04-09 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:54:05 [end_date_ymd] => 2025-04-09 23:54:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:54:05' and `end` < '2025-04-09 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-09 23:54:18] Production.INFO: count ==497 [2025-04-09 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:54:05 - End Time 2025-04-09 23:54:05 [2025-04-09 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873034', 'tblTempUsageDetail_20' ) start [2025-04-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873034', 'tblTempUsageDetail_20' ) end [2025-04-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873034', 'tblTempVendorCDR_20' ) start [2025-04-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873034', 'tblTempVendorCDR_20' ) end [2025-04-09 23:54:18] Production.INFO: ProcessCDR(1,14873034,1,1,2) [2025-04-09 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873034', 'tblTempUsageDetail_20' ) start [2025-04-09 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873034', 'tblTempUsageDetail_20' ) end [2025-04-09 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:54:21] Production.INFO: ==25361== Releasing lock... [2025-04-09 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:54:21] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:55:05 [end_date_ymd] => 2025-04-09 23:55:05 [RateCDR] => 1 ) [2025-04-09 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:55:05' and `end` < '2025-04-09 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:55:18] Production.INFO: count ==497 [2025-04-09 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:55:05 - End Time 2025-04-09 23:55:05 [2025-04-09 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873039', 'tblTempUsageDetail_20' ) start [2025-04-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873039', 'tblTempUsageDetail_20' ) end [2025-04-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873039', 'tblTempVendorCDR_20' ) start [2025-04-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873039', 'tblTempVendorCDR_20' ) end [2025-04-09 23:55:18] Production.INFO: ProcessCDR(1,14873039,1,1,2) [2025-04-09 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873039', 'tblTempUsageDetail_20' ) start [2025-04-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873039', 'tblTempUsageDetail_20' ) end [2025-04-09 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:55:21] Production.INFO: ==25469== Releasing lock... [2025-04-09 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:55:21] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:56:06 [end_date_ymd] => 2025-04-09 23:56:06 [RateCDR] => 1 ) [2025-04-09 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-09 20:56:06' and `end` < '2025-04-09 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-09 23:56:19] Production.INFO: count ==499 [2025-04-09 23:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 20:56:06 - End Time 2025-04-09 23:56:06 [2025-04-09 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873044', 'tblTempUsageDetail_20' ) start [2025-04-09 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873044', 'tblTempUsageDetail_20' ) end [2025-04-09 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873044', 'tblTempVendorCDR_20' ) start [2025-04-09 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873044', 'tblTempVendorCDR_20' ) end [2025-04-09 23:56:19] Production.INFO: ProcessCDR(1,14873044,1,1,2) [2025-04-09 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873044', 'tblTempUsageDetail_20' ) start [2025-04-09 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873044', 'tblTempUsageDetail_20' ) end [2025-04-09 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:56:22] Production.INFO: ==25541== Releasing lock... [2025-04-09 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:56:22] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:57:05 [end_date_ymd] => 2025-04-09 23:57:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:57:05' and `end` < '2025-04-09 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-09 23:57:18] Production.INFO: count ==497 [2025-04-09 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:57:05 - End Time 2025-04-09 23:57:05 [2025-04-09 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873049', 'tblTempUsageDetail_20' ) start [2025-04-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873049', 'tblTempUsageDetail_20' ) end [2025-04-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873049', 'tblTempVendorCDR_20' ) start [2025-04-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873049', 'tblTempVendorCDR_20' ) end [2025-04-09 23:57:18] Production.INFO: ProcessCDR(1,14873049,1,1,2) [2025-04-09 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873049', 'tblTempUsageDetail_20' ) start [2025-04-09 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873049', 'tblTempUsageDetail_20' ) end [2025-04-09 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:57:22] Production.INFO: ==25618== Releasing lock... [2025-04-09 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:57:22] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:58:05 [end_date_ymd] => 2025-04-09 23:58:05 [RateCDR] => 1 ) [2025-04-09 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 20:58:05' and `end` < '2025-04-09 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-09 23:58:18] Production.INFO: count ==496 [2025-04-09 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:58:05 - End Time 2025-04-09 23:58:05 [2025-04-09 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873054', 'tblTempUsageDetail_20' ) start [2025-04-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873054', 'tblTempUsageDetail_20' ) end [2025-04-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873054', 'tblTempVendorCDR_20' ) start [2025-04-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873054', 'tblTempVendorCDR_20' ) end [2025-04-09 23:58:18] Production.INFO: ProcessCDR(1,14873054,1,1,2) [2025-04-09 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873054', 'tblTempUsageDetail_20' ) start [2025-04-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873054', 'tblTempUsageDetail_20' ) end [2025-04-09 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:58:22] Production.INFO: ==25688== Releasing lock... [2025-04-09 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:58:22] Production.INFO: 31 MB #Memory Used# [2025-04-09 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 20:59:05 [end_date_ymd] => 2025-04-09 23:59:05 [RateCDR] => 1 ) [2025-04-09 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-09 20:59:05' and `end` < '2025-04-09 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-09 23:59:18] Production.INFO: count ==495 [2025-04-09 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 20:59:05 - End Time 2025-04-09 23:59:05 [2025-04-09 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873058', 'tblTempUsageDetail_20' ) start [2025-04-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873058', 'tblTempUsageDetail_20' ) end [2025-04-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873058', 'tblTempVendorCDR_20' ) start [2025-04-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873058', 'tblTempVendorCDR_20' ) end [2025-04-09 23:59:18] Production.INFO: ProcessCDR(1,14873058,1,1,2) [2025-04-09 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-09 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873058', 'tblTempUsageDetail_20' ) start [2025-04-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873058', 'tblTempUsageDetail_20' ) end [2025-04-09 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-09 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-09 23:59:21] Production.INFO: ==25759== Releasing lock... [2025-04-09 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-09 23:59:21] Production.INFO: 31 MB #Memory Used#